Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.http
Enum XHTTPStatus

java.lang.Object
  extended by java.lang.Enum<XHTTPStatus>
      extended by waggle.core.http.XHTTPStatus

All Implemented Interfaces:
Serializable, Comparable<XHTTPStatus>

public enum XHTTPStatus
extends Enum<XHTTPStatus>

XHTTPStatus.


Enum Constant Summary
OSSO_LOGIN
          Oracle SSO Login (499).
OSSO_LOGOUT
          Oracle SSO Logout (470).
SC_BAD_REQUEST
          Bad Request (400).
SC_CONFLICT
          Conflict (409).
SC_CREATED
          Created (201).
SC_FORBIDDEN
          Forbidden (403).
SC_INSUFFICIENT_STORAGE
          Insufficient Storage (507).
SC_INTERNAL_SERVER_ERROR
          Internal Server Error (500).
SC_LOCKED
          Locked (423).
SC_METHOD_NOT_ALLOWED
          Method Not Allowed (405).
SC_MOVED_TEMPORARILY
          Moved Temporarily (302).
SC_MULTI_STATUS
          Multi-Status (207).
SC_NO_CONTENT
          No Content (204).
SC_NOT_FOUND
          Not Found (404).
SC_NOT_IMPLEMENTED
          Not Implemented (501).
SC_NOT_MODIFIED
          Not Modified (304).
SC_OK
          OK (200).
SC_PARTIAL_CONTENT
          Partial Content (206).
SC_PRECONDITION_FAILED
          Precondition Failed (412).
SC_UNAUTHORIZED
          Unauthorized (401).
SC_UNKNOWN
          Unknown code (599).
SC_UNSUPPORTED_MEDIA_TYPE
          Unsupported Media Type (415).

 

Method Summary
 int getStatus()
          Get the integer status code.
 String getStatusText()
          Get the descriptive status text.
 boolean isSuccess()
          Return true if the status is in the 200's, indicating success.
static XHTTPStatus valueOf(int status)
          Convert integer status codes to enum values.
static XHTTPStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XHTTPStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

SC_OK

public static final XHTTPStatus SC_OK
OK (200).

SC_CREATED

public static final XHTTPStatus SC_CREATED
Created (201).

SC_NO_CONTENT

public static final XHTTPStatus SC_NO_CONTENT
No Content (204).

SC_PARTIAL_CONTENT

public static final XHTTPStatus SC_PARTIAL_CONTENT
Partial Content (206).

SC_MULTI_STATUS

public static final XHTTPStatus SC_MULTI_STATUS
Multi-Status (207).

SC_MOVED_TEMPORARILY

public static final XHTTPStatus SC_MOVED_TEMPORARILY
Moved Temporarily (302).

SC_NOT_MODIFIED

public static final XHTTPStatus SC_NOT_MODIFIED
Not Modified (304).

SC_BAD_REQUEST

public static final XHTTPStatus SC_BAD_REQUEST
Bad Request (400).

SC_UNAUTHORIZED

public static final XHTTPStatus SC_UNAUTHORIZED
Unauthorized (401).

SC_FORBIDDEN

public static final XHTTPStatus SC_FORBIDDEN
Forbidden (403).

SC_NOT_FOUND

public static final XHTTPStatus SC_NOT_FOUND
Not Found (404).

SC_METHOD_NOT_ALLOWED

public static final XHTTPStatus SC_METHOD_NOT_ALLOWED
Method Not Allowed (405).

SC_CONFLICT

public static final XHTTPStatus SC_CONFLICT
Conflict (409).

SC_PRECONDITION_FAILED

public static final XHTTPStatus SC_PRECONDITION_FAILED
Precondition Failed (412). The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.

SC_UNSUPPORTED_MEDIA_TYPE

public static final XHTTPStatus SC_UNSUPPORTED_MEDIA_TYPE
Unsupported Media Type (415). The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.

SC_LOCKED

public static final XHTTPStatus SC_LOCKED
Locked (423).

OSSO_LOGOUT

public static final XHTTPStatus OSSO_LOGOUT
Oracle SSO Logout (470).

OSSO_LOGIN

public static final XHTTPStatus OSSO_LOGIN
Oracle SSO Login (499).

SC_INTERNAL_SERVER_ERROR

public static final XHTTPStatus SC_INTERNAL_SERVER_ERROR
Internal Server Error (500).

SC_NOT_IMPLEMENTED

public static final XHTTPStatus SC_NOT_IMPLEMENTED
Not Implemented (501).

SC_INSUFFICIENT_STORAGE

public static final XHTTPStatus SC_INSUFFICIENT_STORAGE
Insufficient Storage (507).

SC_UNKNOWN

public static final XHTTPStatus SC_UNKNOWN
Unknown code (599).

Method Detail

values

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

valueOf

public static XHTTPStatus valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getStatus

public int getStatus()
Get the integer status code.
Returns:
the integer status code.

getStatusText

public String getStatusText()
Get the descriptive status text.
Returns:
the status text.

isSuccess

public boolean isSuccess()
Return true if the status is in the 200's, indicating success.
Returns:
true if the status code is between 200 and 299, inclusive.

valueOf

public static XHTTPStatus valueOf(int status)
Convert integer status codes to enum values.
Parameters:
status - Integer status code.
Returns:
The corresponding XHTTPStatus or SC_UNKNOWN if not found.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.