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

Method getRemoteHost

java/org/apache/catalina/connector/Request.java:1250–1261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1248
1249
1250 @Override
1251 public String getRemoteHost() {
1252 if (remoteHost == null) {
1253 if (!connector.getEnableLookups()) {
1254 remoteHost = getRemoteAddr();
1255 } else {
1256 coyoteRequest.action(ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
1257 remoteHost = coyoteRequest.remoteHost().toString();
1258 }
1259 }
1260 return remoteHost;
1261 }
1262
1263 @Override
1264 public int getRemotePort() {

Callers

nothing calls this directly

Calls 5

getRemoteAddrMethod · 0.95
remoteHostMethod · 0.80
actionMethod · 0.65
toStringMethod · 0.65
getEnableLookupsMethod · 0.45

Tested by

no test coverage detected