java.lang.Object
org.apache.wicket.core.request.ClientInfo
org.apache.wicket.protocol.http.request.WebClientInfo
- All Implemented Interfaces:
Serializable
,IClusterable
Default client info object for web applications.
- Author:
- Eelco Hillenius
- See Also:
-
Constructor Summary
ConstructorDescriptionWebClientInfo
(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
Modifier and TypeMethodDescriptionfinal ClientProperties
Gets the client properties object.protected String
getRemoteAddr
(RequestCycle requestCycle) Returns the IP address fromHttpServletRequest.getRemoteAddr()
.final String
returns the user agent string.
-
Constructor Details
-
WebClientInfo
Construct.- Parameters:
requestCycle
- the request cycle
-
WebClientInfo
Construct.- Parameters:
requestCycle
- the request cycle
-
WebClientInfo
Construct.- Parameters:
requestCycle
- the request cycleuserAgent
- The User-Agent string
-
WebClientInfo
Construct.- Parameters:
requestCycle
- the request cycleuserAgent
- The User-Agent stringproperties
- properties of client
-
-
Method Details
-
getProperties
Gets the client properties object.- Returns:
- the client properties object
-
getUserAgent
returns the user agent string.- Returns:
- the user agent string
-
getRemoteAddr
Returns the IP address fromHttpServletRequest.getRemoteAddr()
.- Parameters:
requestCycle
- the request cycle- Returns:
- remoteAddr IP address of the client, using
getHttpServletRequest().getRemoteAddr()
-