public class IPv4AddressAttribute extends IPAddressAttribute
IPAddressAttribute that handles the specifics of IPv4. In general, you
shouldn't need to interact with this class except to create an instance directly.identifier| Constructor and Description |
|---|
IPv4AddressAttribute(InetAddress address)
Creates the new
IPv4AddressAttribute with just the required address component. |
IPv4AddressAttribute(InetAddress address,
InetAddress mask)
Creates the new
IPv4AddressAttribute with the optional address mask. |
IPv4AddressAttribute(InetAddress address,
InetAddress mask,
PortRange range)
Creates the new
IPv4AddressAttribute with all the optional components. |
IPv4AddressAttribute(InetAddress address,
PortRange range)
Creates the new
IPv4AddressAttribute with the optional port range. |
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an
obligation.
|
protected static IPAddressAttribute |
getV4Instance(String value)
Returns a new
IPv4AddressAttribute that represents the name indicated by the
String provided. |
equals, getAddress, getInstance, getInstance, getMask, getRange, hashCode, toStringencode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBagpublic IPv4AddressAttribute(InetAddress address)
IPv4AddressAttribute with just the required address component.address - a non-null InetAddresspublic IPv4AddressAttribute(InetAddress address, InetAddress mask)
IPv4AddressAttribute with the optional address mask.address - a non-null InetAddressmask - an InetAddress or null if there is no maskpublic IPv4AddressAttribute(InetAddress address, PortRange range)
IPv4AddressAttribute with the optional port range.address - a non-null InetAddressportRange - a non-null PortRangepublic IPv4AddressAttribute(InetAddress address, InetAddress mask, PortRange range)
IPv4AddressAttribute with all the optional components.address - a non-null InetAddressmask - an InetAddress or null if there is no maskportRange - a non-null PortRangeprotected static IPAddressAttribute getV4Instance(String value) throws UnknownHostException
IPv4AddressAttribute that represents the name indicated by the
String provided. This is a protected method because you should never call it
directly. Instead, you should call getInstance on
IPAddressAttribute which provides versions that take both a String
and a Node and will determine the protocol version correctly.value - a string representing the addressIPAddressAttributeUnknownHostException - if the address components is invalidParsingException - if any of the address components is invalidpublic String encode()
AttributeValueencode in class AttributeValueString form of the valueCopyright © 2018 WSO2. All rights reserved.