public enum SipLegType extends java.lang.Enum<SipLegType>
Leg
is going to be used,
based on the initial request seen on that leg.Enum Constant and Description |
---|
Call
An INVITE-initiated dialog, which may also include zero or more
subscription usages initiated by subsequent SUBSCRIBEs and REFERs
on the same dialog.
|
Register
A REGISTER-initiated dialog.
|
Subscription
A subscription created by an initial SUBSCRIBE or REFER request.
|
Transaction
A single transaction created by an initial MESSAGE, PUBLISH or OPTIONS request.
|
Undefined
Unknown what this leg is used for.
|
Modifier and Type | Method and Description |
---|---|
static SipLegType |
from(SipRequest initialRequest) |
static SipLegType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SipLegType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SipLegType Call
public static final SipLegType Subscription
public static final SipLegType Transaction
public static final SipLegType Register
public static final SipLegType Undefined
public static SipLegType[] values()
for (SipLegType c : SipLegType.values()) System.out.println(c);
public static SipLegType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SipLegType from(SipRequest initialRequest)
Copyright © OpenCloud. All Rights Reserved.