org.jnetpcap.protocol.voip
Enum Sip.ContentType

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

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

A table of SIP supported content types.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
OTHER
          Content type other.
PKCS7_MIME
          Application pkcs7-mine type.
PKCS7_SIGNATURE
          Application pkcs7-signature.
SPD
          DSP content type.
 
Method Summary
static Sip.ContentType parseContentType(java.lang.String type)
          Parses a string containing content type ot a enum constant.
static Sip.ContentType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Sip.ContentType[] 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

OTHER

public static final Sip.ContentType OTHER
Content type other.


PKCS7_MIME

public static final Sip.ContentType PKCS7_MIME
Application pkcs7-mine type.


PKCS7_SIGNATURE

public static final Sip.ContentType PKCS7_SIGNATURE
Application pkcs7-signature.


SPD

public static final Sip.ContentType SPD
DSP content type.

Method Detail

values

public static Sip.ContentType[] 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.ContentType c : Sip.ContentType.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.ContentType 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

parseContentType

public static Sip.ContentType parseContentType(java.lang.String type)
Parses a string containing content type ot a enum constant.

Parameters:
type - string containing content type
Returns:
constant if found, otherwise returns ContentType.OTHER