public interface IRemoteClientInfo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCookie(java.lang.String name)
Gets the value of a cookie with a given name.
|
java.lang.String |
getReferrer()
Get the Referer(sic) header sent by the end-user.
|
java.lang.String |
getRemoteIp()
Get the IP address of the end-user.
|
java.lang.String |
getRequestHeader(java.lang.String name)
Get a named header from the request made by the end-user.
|
java.lang.String |
getUserAgent()
Get the User-Agent header sent by the end-user.
|
void |
setCookie(java.lang.String name,
java.lang.String value,
java.time.LocalDateTime expiryTime)
Sets a cookie with a given name, value and expiryTime.
|
java.lang.String getRequestHeader(java.lang.String name)
name
- The name of the header. Can be of any casing.java.lang.String getReferrer()
java.lang.String getUserAgent()
java.lang.String getRemoteIp()
java.lang.String getCookie(java.lang.String name)
setCookie(String, String, LocalDateTime)
name
- Name of the cookievoid setCookie(java.lang.String name, java.lang.String value, java.time.LocalDateTime expiryTime)
getCookie(String)
;name
- Name of the cookie to setexpiryTime
- When the cookie should expirevalue
- What value to set on the cookie