com.voidsearch.voidbase.module
Enum VoidBaseResponseType

java.lang.Object
  extended by java.lang.Enum<VoidBaseResponseType>
      extended by com.voidsearch.voidbase.module.VoidBaseResponseType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VoidBaseResponseType>

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


Enum Constant Summary
CSS
           
HTML
           
JPG
           
JS
           
JSON
           
PNG
           
TEXT
           
UNKNOWN
           
XML
           
 
Method Summary
static VoidBaseResponseType deserialize(java.lang.String type)
           
static VoidBaseResponseType deserializeFromHttpContentType(java.lang.String contentType)
           
 java.lang.String serialize()
           
 java.lang.String serializeToHttpContentType()
           
static VoidBaseResponseType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VoidBaseResponseType[] 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

XML

public static final VoidBaseResponseType XML

TEXT

public static final VoidBaseResponseType TEXT

HTML

public static final VoidBaseResponseType HTML

JS

public static final VoidBaseResponseType JS

CSS

public static final VoidBaseResponseType CSS

JPG

public static final VoidBaseResponseType JPG

JSON

public static final VoidBaseResponseType JSON

PNG

public static final VoidBaseResponseType PNG

UNKNOWN

public static final VoidBaseResponseType UNKNOWN
Method Detail

values

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

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

valueOf

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

deserialize

public static VoidBaseResponseType deserialize(java.lang.String type)

serialize

public java.lang.String serialize()

deserializeFromHttpContentType

public static VoidBaseResponseType deserializeFromHttpContentType(java.lang.String contentType)

serializeToHttpContentType

public java.lang.String serializeToHttpContentType()


Copyright © 2009. All Rights Reserved.