org.apache.coyote.Request.setRemotePort()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(236)

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

Request.setRemotePort介绍

暂无

代码示例

代码示例来源:origin: line/armeria

  1. coyoteReq.remoteAddr().setString(remoteAddr.getAddress().getHostAddress());
  2. coyoteReq.remoteHost().setString(remoteAddr.getHostString());
  3. coyoteReq.setRemotePort(remoteAddr.getPort());

代码示例来源:origin: org.jboss.web/jbossweb

  1. /**
  2. * Get remote port
  3. */
  4. private void requestRemotePortAttr() {
  5. if (remotePort == -1 && (channel != null)) {
  6. try {
  7. remotePort = ((InetSocketAddress) this.channel.getRemoteAddress()).getPort();
  8. } catch (Exception e) {
  9. CoyoteLogger.HTTP_LOGGER.errorGettingSocketInformation(e);
  10. }
  11. }
  12. request.setRemotePort(remotePort);
  13. }

代码示例来源:origin: jboss.web/jbossweb

  1. remotePort = socket.getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

  1. remotePort = socket.getSocket().getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

  1. remotePort = socket.getSocket().getPort();
  2. request.setRemotePort(remotePort);

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

  1. remotePort = socket.getSocket().getPort();
  2. request.setRemotePort(remotePort);

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

  1. remotePort = socket.getIOChannel().socket().getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.jboss.web/jbossweb

  1. remotePort = socket.getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

  1. remotePort = socket.getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

  1. remotePort = socket.getIOChannel().socket().getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

  1. remotePort = socket.getSocket().getIOChannel().socket().getPort();
  2. request.setRemotePort(remotePort);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

  1. request.setRemotePort(remotePort);

代码示例来源:origin: codefollower/Tomcat-Research

  1. request.setRemotePort(0);
  2. } else {
  3. if (socketWrapper.getRemotePort() == -1) {
  4. socketWrapper.setRemotePort(socketWrapper.getSocket().getPort());
  5. request.setRemotePort(socketWrapper.getRemotePort());

代码示例来源:origin: codefollower/Tomcat-Research

  1. request.setRemotePort(0);
  2. } else {
  3. if (socketWrapper.getRemotePort() == -1) {
  4. socketWrapper.setRemotePort(socketWrapper.getSocket().getIOChannel().socket().getPort());
  5. request.setRemotePort(socketWrapper.getRemotePort());

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

  1. request.setRemotePort(remotePort);

代码示例来源:origin: codefollower/Tomcat-Research

  1. request.setRemotePort(0);
  2. } else {
  3. if (socketWrapper.getRemotePort() == -1) {
  4. request.setRemotePort(socketWrapper.getRemotePort());

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

  1. req.setRemotePort(Integer.parseInt(v));
  2. } catch (NumberFormatException nfe) {

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

  1. request.setRemotePort(Integer.parseInt(v));
  2. } catch (NumberFormatException nfe) {

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

  1. request.setRemotePort(Integer.parseInt(v));
  2. } catch (NumberFormatException nfe) {

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

  1. request.setRemotePort(Integer.parseInt(v));
  2. } catch (NumberFormatException nfe) {

相关文章

Request类方法