MCPcopy Create free account
hub / github.com/apache/tomcat / getLocalPort

Method getLocalPort

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

Returns the Internet Protocol (IP) port number of the interface on which the request was received. @return an integer specifying the port number @since Servlet 2.4

()

Source from the content-addressed store, hash-verified

439 * @since Servlet 2.4
440 */
441 int getLocalPort();
442
443 /**
444 * Returns the {@link ServletContext} to which this servlet belongs.

Callers 15

findFreePortMethod · 0.65
ClientMethod · 0.65
doRequestMethod · 0.65
doRequestMethod · 0.65
doRequestMethod · 0.65
testSendAckMethod · 0.65
doRequestMethod · 0.65
doRequestMethod · 0.65
doRequestMethod · 0.65
doRequestMethod · 0.65
testInvalidHeader02Method · 0.65

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

Tested by 15

findFreePortMethod · 0.52
ClientMethod · 0.52
doRequestMethod · 0.52
doRequestMethod · 0.52
doRequestMethod · 0.52
testSendAckMethod · 0.52
doRequestMethod · 0.52
doRequestMethod · 0.52
doRequestMethod · 0.52
doRequestMethod · 0.52
testInvalidHeader02Method · 0.52