public class IpInfo extends Object
| Constructor and Description |
|---|
IpInfo() |
| Modifier and Type | Method and Description |
|---|---|
IpInfo |
builder(javax.servlet.http.HttpServletRequest request)
Instantiates a new ip info.
|
String |
getAddress()
Gets the address.
|
static String |
getClientAddress(javax.servlet.http.HttpServletRequest request)
Gets the client address.
|
boolean |
isForwarded()
Checks if is forwarded.
|
void |
setAddress(String address)
Sets the address.
|
void |
setForwarded(boolean forwarded)
Sets the forwarded.
|
String |
toString() |
public IpInfo builder(javax.servlet.http.HttpServletRequest request)
request - the requestpublic boolean isForwarded()
public void setForwarded(boolean forwarded)
forwarded - the new forwardedpublic String getAddress()
public void setAddress(String address)
address - the new addresspublic static String getClientAddress(javax.servlet.http.HttpServletRequest request)
request - the requestCopyright © 2009–2020 psi-probe. All rights reserved.