try { final int port = Integer.parseInt(hostHeader.substring(colonPos + 1)); coyoteReq.setServerPort(port); } catch (NumberFormatException e) {
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/* */ public void setServerPort(int port) /* */ { /* 862 */ this.coyoteRequest.setServerPort(port); /* */ } /* */
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * Set the port number of the server to process this request. * * @param port The server port */ public void setServerPort(int port) { coyoteRequest.setServerPort(port); }
/** * {@inheritDoc} * <p> * This implementation provides the server name from the default host and * the server port from the local port. */ @Override protected void populateHost() { // No host information (HTTP/1.0) // Ensure the local port field is populated before using it. request.action(ActionCode.REQ_LOCALPORT_ATTRIBUTE, request); request.setServerPort(request.getLocalPort()); // request.serverName() will be set to the default host name by the // mapper }
request.setServerPort(socket.getLocalPort()); InetAddress localAddress = socket.getLocalAddress(); if (sslSupport == null) { request.setServerPort(80); } else { request.setServerPort(443); mult = 10 * mult; request.setServerPort(port);
/** * {@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); } }
request.setServerPort(request.getLocalPort()); try { request.serverName().duplicate(request.localName()); if (request.scheme().equalsIgnoreCase("https")) { request.setServerPort(443); } else { request.setServerPort(80); mult = 10 * mult; request.setServerPort(port);
request.setServerPort(selectorThread.getPort());
private void setHost(final Request request, final CharSequence host) throws IOException { CharChunk chunk; try { // slightly fancier logic.. final URL newUrl = new URL(host.toString()); final String protocol = newUrl.getProtocol(); final int port = newUrl.getPort(); final String newHost = newUrl.getHost(); request.getCoyoteRequest().serverName().recycle(); chunk = request.getCoyoteRequest().serverName().getCharChunk(); chunk.recycle(); chunk.append(newHost); request.getCoyoteRequest().serverName().toChars(); request.getCoyoteRequest().setServerPort(port); request.getCoyoteRequest().scheme().recycle(); chunk = request.getCoyoteRequest().scheme().getCharChunk(); chunk.recycle(); chunk.append(protocol); request.getCoyoteRequest().scheme().toChars(); } catch (final MalformedURLException e) { // assume we just have the host name request.getCoyoteRequest().serverName().recycle(); chunk = request.getCoyoteRequest().serverName().getCharChunk(); chunk.recycle(); chunk.append(host.toString()); request.getCoyoteRequest().serverName().toChars(); } }