org.efaps.ui.webdav.method
Enum AbstractMethod.Status

java.lang.Object
  extended by java.lang.Enum<AbstractMethod.Status>
      extended by org.efaps.ui.webdav.method.AbstractMethod.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AbstractMethod.Status>
Enclosing class:
AbstractMethod

public static enum AbstractMethod.Status
extends java.lang.Enum<AbstractMethod.Status>


Enum Constant Summary
BAD_REQUEST
          Status code (400) indicating the request sent by the client was syntactically incorrect.
CONFLICT
          Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
CREATED
          Status code (201) indicating the request succeeded and created a new resource on the server.
FORBIDDEN
          Status code (403) indicating the server understood the request but refused to fulfill it.
METHOD_NOT_ALLOWED
          Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
NO_CONTENT
          Status code (204) indicating that the request succeeded but that there was no new information to return.
NOT_FOUND
          Status code (404) indicating that the requested resource is not available.
NOT_IMPLEMENTED
          Status code (501) indicating the HTTP server does not support the functionality needed to fulfill the request.
PRECONDITION_FAILED
          Status code (412) indicating that the precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.
 
Field Summary
 int code
          The variable stores the code number of the status flag.
 java.lang.String text
          The variable stores the text to the code of the status flag.
 
Method Summary
static AbstractMethod.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AbstractMethod.Status[] 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

CREATED

public static final AbstractMethod.Status CREATED
Status code (201) indicating the request succeeded and created a new resource on the server.


NO_CONTENT

public static final AbstractMethod.Status NO_CONTENT
Status code (204) indicating that the request succeeded but that there was no new information to return.


BAD_REQUEST

public static final AbstractMethod.Status BAD_REQUEST
Status code (400) indicating the request sent by the client was syntactically incorrect.


FORBIDDEN

public static final AbstractMethod.Status FORBIDDEN
Status code (403) indicating the server understood the request but refused to fulfill it.


NOT_FOUND

public static final AbstractMethod.Status NOT_FOUND
Status code (404) indicating that the requested resource is not available.


CONFLICT

public static final AbstractMethod.Status CONFLICT
Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.


METHOD_NOT_ALLOWED

public static final AbstractMethod.Status METHOD_NOT_ALLOWED
Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.


PRECONDITION_FAILED

public static final AbstractMethod.Status PRECONDITION_FAILED
Status code (412) indicating that the precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.


NOT_IMPLEMENTED

public static final AbstractMethod.Status NOT_IMPLEMENTED
Status code (501) indicating the HTTP server does not support the functionality needed to fulfill the request.

Field Detail

code

public final int code
The variable stores the code number of the status flag.


text

public final java.lang.String text
The variable stores the text to the code of the status flag.

Method Detail

values

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

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

valueOf

public static AbstractMethod.Status 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


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.