net.java.slee.resource.diameter.cca.events.avp
Enum RedirectAddressType

java.lang.Object
  extended by java.lang.Enum<RedirectAddressType>
      extended by net.java.slee.resource.diameter.cca.events.avp.RedirectAddressType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RedirectAddressType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum RedirectAddressType
extends java.lang.Enum<RedirectAddressType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

 8.38. Redirect-Address-Type AVP


   The Redirect-Address-Type AVP (AVP Code 433) is of type Enumerated
   and defines the address type of the address given in the Redirect-
   Server-Address AVP.

   The address type can be one of the following:

   IPv4 Address                    0
      The address type is in the form of "dotted-decimal" IPv4 address,
      as defined in [IPv4].

   IPv6 Address                    1
      The address type is in the form of IPv6 address, as defined in
      [IPv6Addr].  The address is a text representation of the address
      in either the preferred or alternate text form [IPv6Addr].
      Conformant implementations MUST support the preferred form and
      SHOULD support the alternate text form for IPv6 addresses.

   URL                             2
      The address type is in the form of Uniform Resource Locator, as
      defined in [URL].

   SIP URI                         3
      The address type is in the form of SIP Uniform Resource
      Identifier, as defined in [SIP].
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
IPv4_Address
           
IPv6_Address
           
SIP_URI
           
URL
           
 
Method Summary
static RedirectAddressType fromInt(int type)
           
 int getValue()
           
 java.lang.String toString()
           
static RedirectAddressType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RedirectAddressType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IPv4_Address

public static final RedirectAddressType IPv4_Address

IPv6_Address

public static final RedirectAddressType IPv6_Address

URL

public static final RedirectAddressType URL

SIP_URI

public static final RedirectAddressType SIP_URI
Method Detail

values

public static RedirectAddressType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RedirectAddressType c : RedirectAddressType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RedirectAddressType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromInt

public static RedirectAddressType fromInt(int type)
                                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<RedirectAddressType>

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated


Copyright © 2012. All Rights Reserved.