Class ClientInformation


  • public class ClientInformation
    extends Object
    Stores information about the HTTP client that submitted a request to the Gatekeeper.

    The information available about a client will depend on the server and client configuration, such as whether the client is identified with an existing HttpSession or Principal. It must be assumed that much of the information stored in this class will have a null value in many cases.

    All information in this class is sourced from equivalent methods in HttpServletRequest.

    Author:
    James Murty
    • Constructor Detail

      • ClientInformation

        public ClientInformation​(String remoteAddress,
                                 String remoteHost,
                                 String remoteUser,
                                 int remotePort,
                                 javax.servlet.http.HttpSession session,
                                 Principal userPrincipal,
                                 String userAgent,
                                 javax.servlet.http.HttpServletRequest httpServletRequest)
    • Method Detail

      • getRemoteAddress

        public String getRemoteAddress()
      • getRemoteHost

        public String getRemoteHost()
      • getRemotePort

        public int getRemotePort()
      • getRemoteUser

        public String getRemoteUser()
      • getSession

        public javax.servlet.http.HttpSession getSession()
      • getUserPrincipal

        public Principal getUserPrincipal()
      • getUserAgent

        public String getUserAgent()
      • getHttpServletRequest

        public javax.servlet.http.HttpServletRequest getHttpServletRequest()
        Returns:
        the original servlet request, in case the specific information captured in this class is not sufficient.