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

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

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

Request.getLocalName介绍

暂无

代码示例

代码示例来源:origin: jphp-group/jphp

@Signature
public String localName() {
  return request.getLocalName();
}

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

String name=getLocalName();
if (name != null)
  return name;

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

private String findServerName()
{
  // Return host from header field
  HttpField host = _metadata.getFields().getField(HttpHeader.HOST);
  if (host!=null)
  {
    // TODO is this needed now?
    HostPortHttpField authority = (host instanceof HostPortHttpField)
      ?((HostPortHttpField)host)
      :new HostPortHttpField(host.getValue());
    _metadata.getURI().setAuthority(authority.getHost(),authority.getPort());
    return authority.getHost();
  }
  // Return host from connection
  String name=getLocalName();
  if (name != null)
    return name;
  // Return the local host
  try
  {
    return InetAddress.getLocalHost().getHostAddress();
  }
  catch (java.net.UnknownHostException e)
  {
    LOG.ignore(e);
  }
  return null;
}

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

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

_serverName = getLocalName();
_port = getLocalPort();
if (_serverName != null && !StringUtil.ALL_INTERFACES.equals(_serverName))

相关文章

Request类方法