Package org.jets3t.servlets.gatekeeper
Class ClientInformation
- java.lang.Object
-
- org.jets3t.servlets.gatekeeper.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequest
getHttpServletRequest()
String
getRemoteAddress()
String
getRemoteHost()
int
getRemotePort()
String
getRemoteUser()
javax.servlet.http.HttpSession
getSession()
String
getUserAgent()
Principal
getUserPrincipal()
-
-
-
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.
-
-