org.eclipse.jetty.server.Request.setQueryEncoding()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.eclipse.jetty.server.Request.setQueryEncoding方法的一些代码示例,展示了Request.setQueryEncoding的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setQueryEncoding方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:setQueryEncoding

Request.setQueryEncoding介绍

[英]Set the character encoding used for the query string. This call will effect the return of getQueryString and getParamaters. It must be called before any getParameter methods. The request attribute "org.eclipse.jetty.server.server.Request.queryEncoding" may be set as an alternate method of calling setQueryEncoding.
[中]设置用于查询字符串的字符编码。此调用将影响getQueryString和GetParameters的返回。必须在任何getParameter方法之前调用它。请求属性“org.eclipse.jetty.server.server.request.queryEncoding”可以设置为调用setQueryEncoding的替代方法。

代码示例

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: jenkinsci/winstone

@Override
public void setAttribute(String name, Object value)
{
  Object old_value = _attributes == null?null:_attributes.getAttribute(name);
  if ("org.eclipse.jetty.server.Request.queryEncoding".equals(name))
    setQueryEncoding(value == null?null:value.toString());
  else if ("org.eclipse.jetty.server.sendContent".equals(name))
    LOG.warn("Deprecated: org.eclipse.jetty.server.sendContent");
  if (_attributes == null)
    _attributes = new AttributesMap();
  _attributes.setAttribute(name,value);
  if (!_requestAttributeListeners.isEmpty())
  {
    final ServletRequestAttributeEvent event = new ServletRequestAttributeEvent(_context,this,name,old_value == null?value:old_value);
    for (ServletRequestAttributeListener l : _requestAttributeListeners)
    {
      if (old_value == null)
        l.attributeAdded(event);
      else if (value == null)
        l.attributeRemoved(event);
      else
        l.attributeReplaced(event);
    }
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public void setAttribute(String name, Object value)
{
  Object old_value = _attributes == null?null:_attributes.getAttribute(name);
  if ("org.eclipse.jetty.server.Request.queryEncoding".equals(name))
    setQueryEncoding(value == null?null:value.toString());
  else if ("org.eclipse.jetty.server.sendContent".equals(name))
    LOG.warn("Deprecated: org.eclipse.jetty.server.sendContent");
  if (_attributes == null)
    _attributes = new AttributesMap();
  _attributes.setAttribute(name,value);
  if (!_requestAttributeListeners.isEmpty())
  {
    final ServletRequestAttributeEvent event = new ServletRequestAttributeEvent(_context,this,name,old_value == null?value:old_value);
    for (ServletRequestAttributeListener l : _requestAttributeListeners)
    {
      if (old_value == null)
        l.attributeAdded(event);
      else if (value == null)
        l.attributeRemoved(event);
      else
        l.attributeReplaced(event);
    }
  }
}

代码示例来源:origin: Nextdoor/bender

@Override
public void setAttribute(String name, Object value)
{
  Object old_value = _attributes == null?null:_attributes.getAttribute(name);
  if ("org.eclipse.jetty.server.Request.queryEncoding".equals(name))
    setQueryEncoding(value == null?null:value.toString());
  else if ("org.eclipse.jetty.server.sendContent".equals(name))
    LOG.warn("Deprecated: org.eclipse.jetty.server.sendContent");
  if (_attributes == null)
    _attributes = new AttributesMap();
  _attributes.setAttribute(name,value);
  if (!_requestAttributeListeners.isEmpty())
  {
    final ServletRequestAttributeEvent event = new ServletRequestAttributeEvent(_context,this,name,old_value == null?value:old_value);
    for (ServletRequestAttributeListener l : _requestAttributeListeners)
    {
      if (old_value == null)
        l.attributeAdded(event);
      else if (value == null)
        l.attributeRemoved(event);
      else
        l.attributeReplaced(event);
    }
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: org.eclipse.jetty/server

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

setQueryEncoding(value == null?null:value.toString());
else if ("org.eclipse.jetty.server.sendContent".equals(name))

相关文章

Request类方法