Obtain the remote address for this connection as reported by an intermediate proxy (if any). @return The remote address for this connection
()
| 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. |
nothing calls this directly
no test coverage detected