public class WebClientInfo extends ClientInfo
| Constructor and Description |
|---|
WebClientInfo(RequestCycle requestCycle)
Construct.
|
WebClientInfo(RequestCycle requestCycle,
ClientProperties properties)
Construct.
|
WebClientInfo(RequestCycle requestCycle,
String userAgent)
Construct.
|
WebClientInfo(RequestCycle requestCycle,
String userAgent,
ClientProperties properties)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
ClientProperties |
getProperties()
Gets the client properties object.
|
protected String |
getRemoteAddr(RequestCycle requestCycle)
Returns the IP address from
HttpServletRequest.getRemoteAddr(). |
String |
getUserAgent()
returns the user agent string.
|
public WebClientInfo(RequestCycle requestCycle)
requestCycle - the request cyclepublic WebClientInfo(RequestCycle requestCycle, ClientProperties properties)
requestCycle - the request cyclepublic WebClientInfo(RequestCycle requestCycle, String userAgent)
requestCycle - the request cycleuserAgent - The User-Agent stringpublic WebClientInfo(RequestCycle requestCycle, String userAgent, ClientProperties properties)
requestCycle - the request cycleuserAgent - The User-Agent stringproperties - properties of clientpublic final ClientProperties getProperties()
public final String getUserAgent()
protected String getRemoteAddr(RequestCycle requestCycle)
HttpServletRequest.getRemoteAddr().requestCycle - the request cyclegetHttpServletRequest().getRemoteAddr()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.