Class HttpRequesterIdentity


  • public class HttpRequesterIdentity
    extends RequesterIdentity
    Identity container for HTTP requests with (optional) authorization headers
    • Constructor Detail

      • HttpRequesterIdentity

        public HttpRequesterIdentity()
    • Method Detail

      • fromRequest

        public static HttpRequesterIdentity fromRequest​(org.glassfish.grizzly.http.server.Request request)
      • getHttpHeaders

        public com.google.common.collect.Multimap<String,​String> getHttpHeaders()
      • setHttpHeaders

        public void setHttpHeaders​(com.google.common.collect.Multimap<String,​String> httpHeaders)
      • getEndpointUrl

        public String getEndpointUrl()
      • setEndpointUrl

        public void setEndpointUrl​(String endpointUrl)
      • getClientIp

        public String getClientIp()
        If reverse proxy is used X-Forwarded-For will be populated If X-Forwarded-For is not present, check if x-real-ip is present Since X-Forwarded-For can contain comma separated list of values, we convert it to ";" delimiter to avoid downstream parsing errors for other fields where "," is being used
        Overrides:
        getClientIp in class RequesterIdentity