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. |
Object |
getValue()
Get the value represented
|
equals, getAddress, getInstance, getInstance, getMask, getRange, hashCode, toString
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public IPv6AddressAttribute(InetAddress address)
IPv6AddressAttribute
with just the required
address component.address
- a non-null InetAddress
public IPv6AddressAttribute(InetAddress address, InetAddress mask)
IPv6AddressAttribute
with the optional
address mask.address
- a non-null InetAddress
mask
- an InetAddress
or null if there is no maskpublic IPv6AddressAttribute(InetAddress address, PortRange range)
IPv6AddressAttribute
with the optional
port range.address
- a non-null InetAddress
portRange
- a non-null PortRange
public IPv6AddressAttribute(InetAddress address, InetAddress mask, PortRange range)
IPv6AddressAttribute
with all the optional
components.address
- a non-null InetAddress
mask
- an InetAddress
or null if there is no maskportRange
- a non-null PortRange
protected 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 addressIPAddressAttribute
UnknownHostException
- if the address components is invalidParsingException
- if any of the address components is invalidpublic String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valuepublic Object getValue()
AttributeValue
getValue
in class AttributeValue
Copyright © 2023 JBoss by Red Hat. All rights reserved.