javax.servlet.sip.ar
Enum SipRouteModifier

java.lang.Object
  extended by java.lang.Enum<SipRouteModifier>
      extended by javax.servlet.sip.ar.SipRouteModifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SipRouteModifier>

public enum SipRouteModifier
extends java.lang.Enum<SipRouteModifier>

Route modifiers as returned by the Application Router, used to interpret the routes returned from the router.

Since:
1.1
See Also:
SipApplicationRouterInfo.getRouteModifier(), SipApplicationRouterInfo.getRoutes()

Enum Constant Summary
NO_ROUTE
          Indicates that the value returned by SipApplicationRouterInfo.getRoutes() does not contain any valid routes and should be ignored.
ROUTE
          Indicates that the routes returned by SipApplicationRouterInfo.getRoutes() are valid.
ROUTE_BACK
          Tells the container to push a route back to itself before pusing the external routes specified by SipApplicationRouterInfo.getRoutes().
 
Method Summary
static SipRouteModifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SipRouteModifier[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ROUTE

public static final SipRouteModifier ROUTE
Indicates that the routes returned by SipApplicationRouterInfo.getRoutes() are valid.


ROUTE_BACK

public static final SipRouteModifier ROUTE_BACK
Tells the container to push a route back to itself before pusing the external routes specified by SipApplicationRouterInfo.getRoutes().


NO_ROUTE

public static final SipRouteModifier NO_ROUTE
Indicates that the value returned by SipApplicationRouterInfo.getRoutes() does not contain any valid routes and should be ignored.

Method Detail

values

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

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

valueOf

public static SipRouteModifier 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