Class ProxyHeaderParser


  • public class ProxyHeaderParser
    extends java.lang.Object
    Responsible for parsing and returning the information stored in the standard and de facto standard proxy headers.
    Since:
    1.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyHeaderParser​(io.micronaut.http.HttpRequest request)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBy()  
      java.util.List<java.lang.String> getFor()  
      java.lang.String getHost()  
      java.lang.Integer getPort()  
      java.lang.String getScheme()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProxyHeaderParser

        public ProxyHeaderParser​(io.micronaut.http.HttpRequest request)
        Parameters:
        request - The request
    • Method Detail

      • getFor

        @NonNull
        public java.util.List<java.lang.String> getFor()
        Returns:
        The client addresses
      • getBy

        public java.lang.String getBy()
        Returns:
        The proxy
      • getHost

        public java.lang.String getHost()
        Returns:
        The host
      • getScheme

        public java.lang.String getScheme()
        Returns:
        The scheme or protocol
      • getPort

        public java.lang.Integer getPort()
        Returns:
        The port