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

Method getPeerAddr

java/org/apache/catalina/connector/Request.java:1241–1247  ·  view source on GitHub ↗

Return the peer IP address of the connection making this request. @return the peer IP address

()

Source from the content-addressed store, hash-verified

1239 * @return the peer IP address
1240 */
1241 public String getPeerAddr() {
1242 if (peerAddr == null) {
1243 coyoteRequest.action(ActionCode.REQ_PEER_ADDR_ATTRIBUTE, coyoteRequest);
1244 peerAddr = coyoteRequest.peerAddr().toString();
1245 }
1246 return peerAddr;
1247 }
1248
1249
1250 @Override

Callers 4

addElementMethod · 0.45
cacheMethod · 0.45
invokeMethod · 0.45
invokeMethod · 0.45

Calls 3

peerAddrMethod · 0.80
actionMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected