Enum SipLegType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SipLegType>

    public enum SipLegType
    extends java.lang.Enum<SipLegType>
    Describes how a particular Leg is going to be used, based on the initial request seen on that leg.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant 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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SipLegType from​(java.lang.String method)  
      static SipLegType from​(org.jainslee.resources.sip.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Call

        public static final SipLegType Call
        An INVITE-initiated dialog, which may also include zero or more subscription usages initiated by subsequent SUBSCRIBEs and REFERs on the same dialog.
      • Subscription

        public static final SipLegType Subscription
        A subscription created by an initial SUBSCRIBE or REFER request. Legs of this type may only be used for a single subscription.
      • Transaction

        public static final SipLegType Transaction
        A single transaction created by an initial MESSAGE, PUBLISH or OPTIONS request. Legs of this type may only be used for a single transaction.
      • Register

        public static final SipLegType Register
        A REGISTER-initiated dialog.
      • Undefined

        public static final SipLegType Undefined
        Unknown what this leg is used for.
    • Method Detail

      • values

        public static SipLegType[] 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 (SipLegType c : SipLegType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SipLegType 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
      • from

        public static SipLegType from​(org.jainslee.resources.sip.SipRequest initialRequest)
      • from

        public static SipLegType from​(java.lang.String method)