public class ClientInformation extends Object
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
.
Constructor and Description |
---|
ClientInformation(String remoteAddress,
String remoteHost,
String remoteUser,
int remotePort,
javax.servlet.http.HttpSession session,
Principal userPrincipal,
String userAgent,
javax.servlet.http.HttpServletRequest httpServletRequest) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
String |
getRemoteAddress() |
String |
getRemoteHost() |
int |
getRemotePort() |
String |
getRemoteUser() |
javax.servlet.http.HttpSession |
getSession() |
String |
getUserAgent() |
Principal |
getUserPrincipal() |
public String getRemoteAddress()
public String getRemoteHost()
public int getRemotePort()
public String getRemoteUser()
public javax.servlet.http.HttpSession getSession()
public Principal getUserPrincipal()
public String getUserAgent()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Copyright © 2006–2018. All rights reserved.