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

Method getRemoteAddrForwarded

java/org/apache/coyote/RequestInfo.java:162–168  ·  view source on GitHub ↗

Obtain the remote address for this connection as reported by an intermediate proxy (if any). @return The remote address for this connection

()

Source from the content-addressed store, hash-verified

160 * @return The remote address for this connection
161 */
162 public String getRemoteAddrForwarded() {
163 String remoteAddrProxy = (String) req.getAttribute(Constants.REMOTE_ADDR_ATTRIBUTE);
164 if (remoteAddrProxy == null) {
165 return getRemoteAddr();
166 }
167 return remoteAddrProxy;
168 }
169
170 /**
171 * Return the content length.

Callers

nothing calls this directly

Calls 2

getRemoteAddrMethod · 0.95
getAttributeMethod · 0.65

Tested by

no test coverage detected