本文整理了Java中org.apache.coyote.Request.localName
方法的一些代码示例,展示了Request.localName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.localName
方法的具体详情如下:
包路径:org.apache.coyote.Request
类名称:Request
方法名:localName
暂无
代码示例来源:origin: line/armeria
coyoteReq.localName().setString(hostName());
coyoteReq.setLocalPort(localAddr.getPort());
代码示例来源:origin: tomcat/catalina
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: jboss.web/jbossweb
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* @return the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ public String getLocalName()
/* */ {
/* 1211 */ if (this.localName == null) {
/* 1212 */ this.coyoteRequest.action(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, this.coyoteRequest);
/* */
/* 1214 */ this.localName = this.coyoteRequest.localName().toString();
/* */ }
/* 1216 */ return this.localName;
/* */ }
/* */
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* @return the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Returns the host name of the Internet Protocol (IP) interface on
* which the request was received.
*/
@Override
public String getLocalName(){
if (localName == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
localName = coyoteRequest.localName().toString();
}
return localName;
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Request the local name attribute
*/
private void requestLocalNameAttr() {
if (localName == null && (channel != null)) {
try {
localName = ((InetSocketAddress) this.channel.getLocalAddress()).getHostName();
} catch (Exception e) {
CoyoteLogger.HTTP_LOGGER.errorGettingSocketInformation(e);
}
}
request.localName().setString(localName);
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* {@inheritDoc}
* <p>
* This implementation populates the server name and port from the local
* name and port provided by the AJP message.
*/
@Override
protected void populateHost() {
// No host information (HTTP/1.0)
request.setServerPort(request.getLocalPort());
try {
request.serverName().duplicate(request.localName());
} catch (IOException e) {
response.setStatus(400);
setErrorState(ErrorState.CLOSE_CLEAN, e);
}
}
代码示例来源:origin: org.jboss.web/jbossweb
request.serverName().duplicate(request.localName());
} catch (IOException e) {
response.setStatus(400);
代码示例来源:origin: org.jboss.web/jbossweb
request.serverName().duplicate(request.localName());
} catch (IOException e) {
response.setStatus(400);
代码示例来源:origin: codefollower/Tomcat-Research
request.serverName().duplicate(request.localName());
} catch (IOException e) {
response.setStatus(400);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
request.serverName().duplicate(request.localName());
} catch (IOException e) {
response.setStatus(400);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
msg.getBytes(req.localName());
req.setLocalPort(msg.getInt());
内容来源于网络,如有侵权,请联系作者删除!