本文整理了Java中org.apache.coyote.Request.setLocalPort
方法的一些代码示例,展示了Request.setLocalPort
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setLocalPort
方法的具体详情如下:
包路径:org.apache.coyote.Request
类名称:Request
方法名:setLocalPort
暂无
代码示例来源:origin: line/armeria
coyoteReq.localAddr().setString(localAddr.getAddress().getHostAddress());
coyoteReq.localName().setString(hostName());
coyoteReq.setLocalPort(localAddr.getPort());
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Get local port
*/
private void requestLocalPortAttr() {
if (localPort == -1 && (channel != null)) {
try {
localPort = ((InetSocketAddress) this.channel.getLocalAddress()).getPort();
} catch (Exception e) {
CoyoteLogger.HTTP_LOGGER.errorGettingSocketInformation(e);
}
}
request.setLocalPort(localPort);
}
代码示例来源:origin: codefollower/Tomcat-Research
localPort = endpoint.getPort();
request.setLocalPort(localPort);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
localPort = socket.getSocket().getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: jboss.web/jbossweb
localPort = socket.getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote
localPort = socket.getSocket().getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
localPort = socket.getSocket().getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
localPort = socket.getIOChannel().socket().getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: org.jboss.web/jbossweb
localPort = socket.getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
localPort = socket.getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
localPort = socket.getIOChannel().socket().getLocalPort();
request.setLocalPort(localPort);
代码示例来源:origin: codefollower/Tomcat-Research
request.setLocalPort(0);
} else {
if (socketWrapper.getLocalPort() == -1) {
socketWrapper.setLocalPort(socketWrapper.getSocket().getLocalPort());
request.setLocalPort(socketWrapper.getLocalPort());
代码示例来源:origin: codefollower/Tomcat-Research
request.setLocalPort(0);
} else {
if (socketWrapper.getLocalPort() == -1) {
socketWrapper.setLocalPort(socketWrapper.getSocket().getIOChannel().socket().getLocalPort());
request.setLocalPort(socketWrapper.getLocalPort());
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
request.setLocalPort(localPort);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
request.setLocalPort(localPort);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
msg.getBytes(req.remoteHost());
msg.getBytes(req.localName());
req.setLocalPort(msg.getInt());
代码示例来源:origin: jboss.web/jbossweb
requestHeaderMessage.getBytes(request.remoteHost());
requestHeaderMessage.getBytes(request.localName());
request.setLocalPort(requestHeaderMessage.getInt());
代码示例来源:origin: jboss.web/jbossweb
requestHeaderMessage.getBytes(request.remoteHost());
requestHeaderMessage.getBytes(request.localName());
request.setLocalPort(requestHeaderMessage.getInt());
代码示例来源:origin: org.jboss.web/jbossweb
requestHeaderMessage.getBytes(request.remoteHost());
requestHeaderMessage.getBytes(request.localName());
request.setLocalPort(requestHeaderMessage.getInt());
代码示例来源:origin: org.jboss.web/jbossweb
requestHeaderMessage.getBytes(request.remoteHost());
requestHeaderMessage.getBytes(request.localName());
request.setLocalPort(requestHeaderMessage.getInt());
内容来源于网络,如有侵权,请联系作者删除!