Class WebClientInfo
- java.lang.Object
-
- org.apache.wicket.core.request.ClientInfo
-
- org.apache.wicket.protocol.http.request.WebClientInfo
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class WebClientInfo extends ClientInfo
Default client info object for web applications.- Author:
- Eelco Hillenius
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebClientInfo(RequestCycle requestCycle)
Construct.WebClientInfo(RequestCycle requestCycle, String userAgent)
Construct.WebClientInfo(RequestCycle requestCycle, String userAgent, ClientProperties properties)
Construct.WebClientInfo(RequestCycle requestCycle, ClientProperties properties)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientProperties
getProperties()
Gets the client properties object.protected String
getRemoteAddr(RequestCycle requestCycle)
Returns the IP address fromHttpServletRequest.getRemoteAddr()
.String
getUserAgent()
returns the user agent string.
-
-
-
Constructor Detail
-
WebClientInfo
public WebClientInfo(RequestCycle requestCycle)
Construct.- Parameters:
requestCycle
- the request cycle
-
WebClientInfo
public WebClientInfo(RequestCycle requestCycle, ClientProperties properties)
Construct.- Parameters:
requestCycle
- the request cycle
-
WebClientInfo
public WebClientInfo(RequestCycle requestCycle, String userAgent)
Construct.- Parameters:
requestCycle
- the request cycleuserAgent
- The User-Agent string
-
WebClientInfo
public WebClientInfo(RequestCycle requestCycle, String userAgent, ClientProperties properties)
Construct.- Parameters:
requestCycle
- the request cycleuserAgent
- The User-Agent stringproperties
- properties of client
-
-
Method Detail
-
getProperties
public final ClientProperties getProperties()
Gets the client properties object.- Returns:
- the client properties object
-
getUserAgent
public final String getUserAgent()
returns the user agent string.- Returns:
- the user agent string
-
getRemoteAddr
protected String getRemoteAddr(RequestCycle requestCycle)
Returns the IP address fromHttpServletRequest.getRemoteAddr()
.- Parameters:
requestCycle
- the request cycle- Returns:
- remoteAddr IP address of the client, using
getHttpServletRequest().getRemoteAddr()
-
-