net.vidageek.crawler
Enum Status
java.lang.Object
java.lang.Enum<Status>
net.vidageek.crawler.Status
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Status>
public enum Status
- extends java.lang.Enum<Status>
- Author:
- jonasabreu
|
Method Summary |
static Status |
fromHttpCode(int code)
|
static Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static 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 |
CREATED_201
public static final Status CREATED_201
ACCEPTED_202
public static final Status ACCEPTED_202
NAI_203
public static final Status NAI_203
NO_CONTENT_204
public static final Status NO_CONTENT_204
RESET_CONTENT_205
public static final Status RESET_CONTENT_205
PARTIAL_CONTENT
public static final Status PARTIAL_CONTENT
OK
public static final Status OK
MOVED_PERMANENTLY_301
public static final Status MOVED_PERMANENTLY_301
FOUND_302
public static final Status FOUND_302
SEE_OTHER_303
public static final Status SEE_OTHER_303
NOT_MODIFIED_304
public static final Status NOT_MODIFIED_304
USE_PROXY_305
public static final Status USE_PROXY_305
TEMPORARY_REDIRECTION
public static final Status TEMPORARY_REDIRECTION
REDIRECTION
public static final Status REDIRECTION
BAD_REQUEST
public static final Status BAD_REQUEST
UNAUTHORIZED
public static final Status UNAUTHORIZED
FORBIDDEN
public static final Status FORBIDDEN
NOT_FOUND
public static final Status NOT_FOUND
METHOD_NOT_ALLOWED
public static final Status METHOD_NOT_ALLOWED
NOT_ACCEPTABLE
public static final Status NOT_ACCEPTABLE
PROXY_AUTHENTICATION_REQUIRED
public static final Status PROXY_AUTHENTICATION_REQUIRED
REQUEST_TIMEOUT
public static final Status REQUEST_TIMEOUT
CONFLICT
public static final Status CONFLICT
GONE
public static final Status GONE
LENGTH_REQUIRED
public static final Status LENGTH_REQUIRED
PRECONDITION_FAILED
public static final Status PRECONDITION_FAILED
REQUEST_ENTITY_TOO_LARGE
public static final Status REQUEST_ENTITY_TOO_LARGE
REQUEST_URI_TOO_LONG
public static final Status REQUEST_URI_TOO_LONG
UNSUPPORTED_MEDIA_TYPE
public static final Status UNSUPPORTED_MEDIA_TYPE
REQUEST_RANGE_NOT_SATISFIABLE
public static final Status REQUEST_RANGE_NOT_SATISFIABLE
EXPECTATION_FAILED
public static final Status EXPECTATION_FAILED
CLIENT_ERROR
public static final Status CLIENT_ERROR
INTERNAL_SERVER_ERROR
public static final Status INTERNAL_SERVER_ERROR
NOT_IMPLEMENTED
public static final Status NOT_IMPLEMENTED
BAD_GATEWAY
public static final Status BAD_GATEWAY
SERVICE_UNAVAILABLE
public static final Status SERVICE_UNAVAILABLE
GATEWAY_TIMEOUT
public static final Status GATEWAY_TIMEOUT
HTTP_VERSION_NOT_SUPPORTED
public static final Status HTTP_VERSION_NOT_SUPPORTED
SERVER_ERROR
public static final Status SERVER_ERROR
UNSPECIFIED_ERROR
public static final Status UNSPECIFIED_ERROR
values
public static 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 (Status c : 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 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
fromHttpCode
public static Status fromHttpCode(int code)
Copyright © 2008-2011 VidaGeek.net. All Rights Reserved.