dk.i1.diameter
Class AVP_Address

Object
  extended by dk.i1.diameter.AVP
      extended by dk.i1.diameter.AVP_OctetString
          extended by dk.i1.diameter.AVP_Address

public class AVP_Address
extends AVP_OctetString

An internet address AVP. This class reflects the Address type AVP described in RFC3588. It supports both IPv4 and IPv6.

Note:Values not conforming to RFC3588 has been seen in the wild.


Field Summary
 
Fields inherited from class dk.i1.diameter.AVP
code, vendor_id
 
Constructor Summary
AVP_Address(AVP a)
           
AVP_Address(int code, java.net.InetAddress ia)
           
AVP_Address(int code, int vendor_id, java.net.InetAddress ia)
           
 
Method Summary
 java.net.InetAddress queryAddress()
           
 void setAddress(java.net.InetAddress ia)
           
 
Methods inherited from class dk.i1.diameter.AVP_OctetString
queryValue, setValue
 
Methods inherited from class dk.i1.diameter.AVP
isMandatory, isPrivate, isVendorSpecific, queryPayload, setM, setMandatory, setPrivate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVP_Address

public AVP_Address(AVP a)
            throws InvalidAVPLengthException,
                   InvalidAddressTypeException
Throws:
InvalidAVPLengthException
InvalidAddressTypeException

AVP_Address

public AVP_Address(int code,
                   java.net.InetAddress ia)

AVP_Address

public AVP_Address(int code,
                   int vendor_id,
                   java.net.InetAddress ia)
Method Detail

queryAddress

public java.net.InetAddress queryAddress()
                                  throws InvalidAVPLengthException,
                                         InvalidAddressTypeException
Throws:
InvalidAVPLengthException
InvalidAddressTypeException

setAddress

public void setAddress(java.net.InetAddress ia)