Package psiprobe.model
Class IpInfo
- java.lang.Object
-
- psiprobe.model.IpInfo
-
public class IpInfo extends Object
The Class IpInfo.
-
-
Constructor Summary
Constructors Constructor Description IpInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
address
private String address
The address.
-
forwarded
private boolean forwarded
The forwarded.
-
-
Method Detail
-
builder
public IpInfo builder(javax.servlet.http.HttpServletRequest request)
Instantiates a new ip info.- Parameters:
request
- the request- Returns:
- the ip info
-
isForwarded
public boolean isForwarded()
Checks if is forwarded.- Returns:
- true, if is forwarded
-
setForwarded
public void setForwarded(boolean forwarded)
Sets the forwarded.- Parameters:
forwarded
- the new forwarded
-
getAddress
public String getAddress()
Gets the address.- Returns:
- the address
-
setAddress
public void setAddress(String address)
Sets the address.- Parameters:
address
- the new address
-
getClientAddress
public static String getClientAddress(javax.servlet.http.HttpServletRequest request)
Gets the client address.- Parameters:
request
- the request- Returns:
- the client address
-
-