public class ClientInfoServiceImpl extends Object implements ClientInfoService
ClientInfoService that can provide information on DSpace client requests| Constructor and Description |
|---|
ClientInfoServiceImpl(ConfigurationService configurationService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientIp(javax.servlet.http.HttpServletRequest request)
Get the client IP of this request taking into account the X-Forwarded-For header and the "useProxies" setting
|
String |
getClientIp(String remoteIp,
String xForwardedForHeaderValue)
Get the client IP of this request taking into account the X-Forwarded-For header and the "useProxies" setting
|
boolean |
isUseProxiesEnabled()
Does DSpace take into account HTTP proxy headers or not
|
@Autowired(required=true) public ClientInfoServiceImpl(ConfigurationService configurationService)
public String getClientIp(javax.servlet.http.HttpServletRequest request)
ClientInfoServicegetClientIp in interface ClientInfoServicerequest - The client HTTP requestpublic String getClientIp(String remoteIp, String xForwardedForHeaderValue)
ClientInfoServicegetClientIp in interface ClientInfoServiceremoteIp - the remote address of the current requestxForwardedForHeaderValue - The value of the X-Forwarded-For headerpublic boolean isUseProxiesEnabled()
ClientInfoServiceisUseProxiesEnabled in interface ClientInfoServiceCopyright © 2019 DuraSpace. All rights reserved.