public class IPv6AddressAttribute extends IPAddressAttribute
IPAddressAttribute that handles the specifics of IPv6. In general, you
shouldn't need to interact with this class except to create an instance directly.identifier| Constructor and Description |
|---|
IPv6AddressAttribute(InetAddress address)
Creates the new
IPv6AddressAttribute with just the required address component. |
IPv6AddressAttribute(InetAddress address,
InetAddress mask)
Creates the new
IPv6AddressAttribute with the optional address mask. |
IPv6AddressAttribute(InetAddress address,
InetAddress mask,
PortRange range)
Creates the new
IPv6AddressAttribute with all the optional components. |
IPv6AddressAttribute(InetAddress address,
PortRange range)
Creates the new
IPv6AddressAttribute 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 |
getV6Instance(String value)
Returns a new
IPv6AddressAttribute that represents the name indicated by the
String provided. |
equals, getAddress, getInstance, getInstance, getMask, getRange, hashCode, toStringencode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBagpublic IPv6AddressAttribute(InetAddress address)
IPv6AddressAttribute with just the required address component.address - a non-null InetAddresspublic IPv6AddressAttribute(InetAddress address, InetAddress mask)
IPv6AddressAttribute with the optional address mask.address - a non-null InetAddressmask - an InetAddress or null if there is no maskpublic IPv6AddressAttribute(InetAddress address, PortRange range)
IPv6AddressAttribute with the optional port range.address - a non-null InetAddressportRange - a non-null PortRangepublic IPv6AddressAttribute(InetAddress address, InetAddress mask, PortRange range)
IPv6AddressAttribute 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 getV6Instance(String value) throws UnknownHostException
IPv6AddressAttribute 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 © 2021 WSO2. All rights reserved.