MCPcopy Index your code
hub / github.com/apache/tomcat / getServerPort

Method getServerPort

java/jakarta/servlet/ServletRequest.java:295–295  ·  view source on GitHub ↗

Returns the port number to which the request was sent. It is the value of the part after ":" in the Host header value, if any, or the server port where the client connection was accepted on. @return an integer specifying the port number

()

Source from the content-addressed store, hash-verified

293 * @return an integer specifying the port number
294 */
295 int getServerPort();
296
297 /**
298 * Retrieves the body of the request as character data using a <code>BufferedReader</code>. The reader translates

Implementers 4

ServletRequestWrapperjava/jakarta/servlet/ServletRequestWra
TesterHttpServletRequesttest/org/apache/catalina/filters/Teste
Requestjava/org/apache/catalina/connector/Req
RequestFacadejava/org/apache/catalina/connector/Req

Calls

no outgoing calls