io.sentry.event.helper.BasicRemoteAddressResolver Maven / Gradle / Ivy
package io.sentry.event.helper;
import javax.servlet.http.HttpServletRequest;
/**
* The simplest (and default) {@link RemoteAddressResolver}.
*/
public class BasicRemoteAddressResolver implements RemoteAddressResolver {
/**
* Uses {@link HttpServletRequest#getRemoteAddr()} to resolve the REMOTE_ADDR.
*
* @param request HttpServletRequest
* @return the IP address of the client or last proxy that sent the request.
*/
public String getRemoteAddress(HttpServletRequest request) {
return request.getRemoteAddr();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy