Class RemoteAddress
java.lang.Object
com.atlassian.crowd.model.application.RemoteAddress
- All Implemented Interfaces:
Serializable
,Comparable<RemoteAddress>
Represents a valid IP address (IPv4, IPv6) or hostname for an Application
- See Also:
-
Constructor Summary
ConstructorDescriptionRemoteAddress
(String address) Generates a RemoteAddress based on the value provided -
Method Summary
-
Constructor Details
-
RemoteAddress
Generates a RemoteAddress based on the value provided- Parameters:
address
- can be either a hostname or IP address (IPv4 or IPv6) An IPv4, IPv6 address can also have a mask defined in CIDR format Any input that is not recognised as IPv4 or IPv6 format will be treated as a hostname.
-
-
Method Details
-
getAddress
Returns the address. The address could be a hostname, IPv4, IPv6 address or an IP address with a mask defined in CIDR format.- Returns:
- address
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<RemoteAddress>
-
toString
-