本文整理了Java中org.apache.coyote.Request.localAddr
方法的一些代码示例,展示了Request.localAddr
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.localAddr
方法的具体详情如下:
包路径:org.apache.coyote.Request
类名称:Request
方法名:localAddr
暂无
代码示例来源:origin: line/armeria
coyoteReq.localAddr().setString(localAddr.getAddress().getHostAddress());
coyoteReq.localName().setString(hostName());
coyoteReq.setLocalPort(localAddr.getPort());
代码示例来源:origin: jboss.web/jbossweb
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* @return the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: tomcat/catalina
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ public String getLocalAddr()
/* */ {
/* 1224 */ if (this.localAddr == null) {
/* 1225 */ this.coyoteRequest.action(ActionCode.ACTION_REQ_LOCAL_ADDR_ATTRIBUTE, this.coyoteRequest);
/* */
/* 1227 */ this.localAddr = this.coyoteRequest.localAddr().toString();
/* */ }
/* 1229 */ return this.localAddr;
/* */ }
/* */
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* @return the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.ACTION_REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Returns the Internet Protocol (IP) address of the interface on
* which the request was received.
*/
@Override
public String getLocalAddr(){
if (localAddr == null) {
coyoteRequest.action
(ActionCode.REQ_LOCAL_ADDR_ATTRIBUTE, coyoteRequest);
localAddr = coyoteRequest.localAddr().toString();
}
return localAddr;
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Get local host address
*/
private void requestLocalHostAddressAttr() {
if (localAddr == null && (channel != null)) {
try {
localAddr = ((InetSocketAddress) this.channel.getLocalAddress()).getAddress()
.getHostAddress();
} catch (Exception e) {
CoyoteLogger.HTTP_LOGGER.errorGettingSocketInformation(e);
}
}
request.localAddr().setString(localAddr);
}
代码示例来源:origin: jboss.web/jbossweb
request.localAddr().setString(request.localName().toString());
代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote
request.localAddr().setString(request.localName().toString());
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
localAddr = socket.getSocket().getLocalAddress().getHostAddress();
request.localAddr().setString(localAddr);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
request.localAddr().setString(request.localName().toString());
代码示例来源:origin: org.jboss.web/jbossweb
request.localAddr().setString(request.localName().toString());
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
request.localAddr().setString(request.localName().toString());
内容来源于网络,如有侵权,请联系作者删除!