本文整理了Java中org.eclipse.jetty.server.Request.getLocalName
方法的一些代码示例,展示了Request.getLocalName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getLocalName
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称: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))
内容来源于网络,如有侵权,请联系作者删除!