org.jnetpcap.protocol.voip
Enum Sip.Code

java.lang.Object
  extended by java.lang.Enum<Sip.Code>
      extended by org.jnetpcap.protocol.voip.Sip.Code
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Sip.Code>
Enclosing class:
Sip

public static enum Sip.Code
extends java.lang.Enum<Sip.Code>

A table of SIP protocol codes and their meanings.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
Address_Incomplete
          Address incomplete field (484).
Alternative_Service
          Alternative service (380).
Ambiguous
          Ambiguous (485).
Bad_Extension
          Bad extension (420).
Bad_Gateway
          Bad gateway (502).
Bad_Request
          Bad request (400).
Busy_Everywhere
          Busy everywhere (600).
Busy_Here
          Busy here (486).
Call_Leg_Transaction_Does_Not_Exist
          Call leg transaction does not exist (481).
Decline
          Decline (603).
Does_not_exist_anywhere
          Does not exist anywhere (604).
Extension_Required
          Extension required (421).
Forbidden
          Forbidden (403).
Gone
          Gone (410).
Internal_Server_Error
          Internal Server Error (500).
Interval_Too_Brief
          Interval too brief (423).
Loop_Detected
          Loop detected (482).
Message_Too_Large
          Message too large (513).
Method_Not_Allowed
          Method not allowed (405).
Moved_Permanently
          Moved permanently (301).
Moved_Temporarily
          Moved temporarily (302).
MULTIPLE_CHOICES
          Multiple choices (300).
Not_Acceptable_Here
          Not acceptable here (488).
Not_Acceptable400
          Not acceptable 400 (406).
Not_Acceptable600
          Not acceptable 600 (606).
Not_Found
          Not found (404).
Not_Implemented
          Not implemented (501).
OK
          OK (200).
Payment_Required
          Payment required (402).
Proxy_Authentication_Required
          Proxy authentication required (407).
Request_Entity_Too_Large
          Request entity too large (413).
Request_Pending
          Request pending (491).
Request_Terminated
          Request terminated (487).
Request_Timeout
          Request timeout (408).
Request_URI_Too_Large
          Request uri too large (414).
Server_Time_out
          Server timeout (504).
Service_Unavailable
          Service unavailable (503).
SIP_Version_not_supported
          SIP version not supported (505).
Temporarily_not_available
          Temporarily not available (480).
Too_Many_Hops
          Too many hops (483).
Unauthorized
          Unauthorized (401).
Undecipherable
          Undecipherable (493).
Unsupported_Media_Type
          Unsupported media type (415).
Unsupported_URI_Scheme
          Unsupported uri scheme (416).
Use_Proxy
          Use proxy (305).
 
Method Summary
 int getCode()
          Returns the code for this field.
 java.lang.String getDescription()
          Returns a human readable description of this field.
 Sip.Code valueOf(int code)
          Converts a numerical code into a enum constant.
static Sip.Code valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
 Sip.Code valueOfUsingCode(java.lang.String code)
          Helper method which expects the code in a string and returns a corresponding enum constant.
static Sip.Code[] 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

Address_Incomplete

public static final Sip.Code Address_Incomplete
Address incomplete field (484).


Alternative_Service

public static final Sip.Code Alternative_Service
Alternative service (380).


Ambiguous

public static final Sip.Code Ambiguous
Ambiguous (485).


Bad_Extension

public static final Sip.Code Bad_Extension
Bad extension (420).


Bad_Gateway

public static final Sip.Code Bad_Gateway
Bad gateway (502).


Bad_Request

public static final Sip.Code Bad_Request
Bad request (400).


Busy_Everywhere

public static final Sip.Code Busy_Everywhere
Busy everywhere (600).


Busy_Here

public static final Sip.Code Busy_Here
Busy here (486).


Call_Leg_Transaction_Does_Not_Exist

public static final Sip.Code Call_Leg_Transaction_Does_Not_Exist
Call leg transaction does not exist (481).


Decline

public static final Sip.Code Decline
Decline (603).


Does_not_exist_anywhere

public static final Sip.Code Does_not_exist_anywhere
Does not exist anywhere (604).


Extension_Required

public static final Sip.Code Extension_Required
Extension required (421).


Forbidden

public static final Sip.Code Forbidden
Forbidden (403).


Gone

public static final Sip.Code Gone
Gone (410).


Internal_Server_Error

public static final Sip.Code Internal_Server_Error
Internal Server Error (500).


Interval_Too_Brief

public static final Sip.Code Interval_Too_Brief
Interval too brief (423).


Loop_Detected

public static final Sip.Code Loop_Detected
Loop detected (482).


Message_Too_Large

public static final Sip.Code Message_Too_Large
Message too large (513).


Method_Not_Allowed

public static final Sip.Code Method_Not_Allowed
Method not allowed (405).


Moved_Permanently

public static final Sip.Code Moved_Permanently
Moved permanently (301).


Moved_Temporarily

public static final Sip.Code Moved_Temporarily
Moved temporarily (302).


MULTIPLE_CHOICES

public static final Sip.Code MULTIPLE_CHOICES
Multiple choices (300).


Not_Acceptable_Here

public static final Sip.Code Not_Acceptable_Here
Not acceptable here (488).


Not_Acceptable400

public static final Sip.Code Not_Acceptable400
Not acceptable 400 (406).


Not_Acceptable600

public static final Sip.Code Not_Acceptable600
Not acceptable 600 (606).


Not_Found

public static final Sip.Code Not_Found
Not found (404).


Not_Implemented

public static final Sip.Code Not_Implemented
Not implemented (501).


OK

public static final Sip.Code OK
OK (200).


Payment_Required

public static final Sip.Code Payment_Required
Payment required (402).


Proxy_Authentication_Required

public static final Sip.Code Proxy_Authentication_Required
Proxy authentication required (407).


Request_Entity_Too_Large

public static final Sip.Code Request_Entity_Too_Large
Request entity too large (413).


Request_Pending

public static final Sip.Code Request_Pending
Request pending (491).


Request_Terminated

public static final Sip.Code Request_Terminated
Request terminated (487).


Request_Timeout

public static final Sip.Code Request_Timeout
Request timeout (408).


Request_URI_Too_Large

public static final Sip.Code Request_URI_Too_Large
Request uri too large (414).


Server_Time_out

public static final Sip.Code Server_Time_out
Server timeout (504).


Service_Unavailable

public static final Sip.Code Service_Unavailable
Service unavailable (503).


SIP_Version_not_supported

public static final Sip.Code SIP_Version_not_supported
SIP version not supported (505).


Temporarily_not_available

public static final Sip.Code Temporarily_not_available
Temporarily not available (480).


Too_Many_Hops

public static final Sip.Code Too_Many_Hops
Too many hops (483).


Unauthorized

public static final Sip.Code Unauthorized
Unauthorized (401).


Undecipherable

public static final Sip.Code Undecipherable
Undecipherable (493).


Unsupported_Media_Type

public static final Sip.Code Unsupported_Media_Type
Unsupported media type (415).


Unsupported_URI_Scheme

public static final Sip.Code Unsupported_URI_Scheme
Unsupported uri scheme (416).


Use_Proxy

public static final Sip.Code Use_Proxy
Use proxy (305).

Method Detail

values

public static Sip.Code[] 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 (Sip.Code c : Sip.Code.values())
    System.out.println(c);

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

valueOf

public static Sip.Code 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

getCode

public final int getCode()
Returns the code for this field.

Returns:
numerical code value of this feild

getDescription

public final java.lang.String getDescription()
Returns a human readable description of this field.

Returns:
a string description of this field

valueOf

public Sip.Code valueOf(int code)
Converts a numerical code into a enum constant.

Parameters:
code - numerical code value
Returns:
constant if found or null if not convertable

valueOfUsingCode

public Sip.Code valueOfUsingCode(java.lang.String code)
Helper method which expects the code in a string and returns a corresponding enum constant.

Parameters:
code - string containing iteger value
Returns:
corresponding enum code constant or null if not found