Package org.apache.jena.web
Enum HttpSC.Code
- java.lang.Object
-
- java.lang.Enum<HttpSC.Code>
-
- org.apache.jena.web.HttpSC.Code
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpSC.Code>
- Enclosing class:
- HttpSC
public static enum HttpSC.Code extends java.lang.Enum<HttpSC.Code>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTED202 AcceptedBAD_GATEWAY502 Bad GatewayBAD_REQUEST400 Bad RequestCONFLICT409 ConflictCONTINUE100 ContinueCREATED201 CreatedEXPECTATION_FAILED417 Expectation FailedFAILED_DEPENDENCY424 Failed DependencyFORBIDDEN403 ForbiddenFOUND302 FoundGATEWAY_TIMEOUT504 Gateway TimeoutGONE410 GoneHTTP_VERSION_NOT_SUPPORTED505 HTTP Version Not SupportedI_AM_A_TEAPOT417 I'm a teapotThe response MAY be short and stout.INSUFFICIENT_STORAGE507 Insufficient StorageINTERNAL_SERVER_ERROR500 Server ErrorLENGTH_REQUIRED411 Length RequiredLOCKED423 LockedMETHOD_NOT_ALLOWED405 Method Not AllowedMOVED_PERMANENTLY301 Moved PermanentlyMOVED_TEMPORARILY302 Moved TemporarilyMULTI_STATUS207 Multi-StatusMULTIPLE_CHOICES300 Mutliple ChoicesNO_CONTENT204 No ContentNON_AUTHORITATIVE_INFORMATION203 Non Authoritative InformationNOT_ACCEPTABLE406 Not AcceptableNOT_FOUND404 Not FoundNOT_IMPLEMENTED501 Not ImplementedNOT_MODIFIED304 Not ModifiedOK200 OKPARTIAL_CONTENT206 Partial ContentPAYMENT_REQUIRED402 Payment RequiredPRECONDITION_FAILED412 Precondition FailedPROCESSING102 ProcessingPROXY_AUTHENTICATION_REQUIRED407 Proxy Authentication RequiredREQUEST_ENTITY_TOO_LARGE413 Request Entity Too LargeREQUEST_TIMEOUT408 Request TimeoutREQUEST_URI_TOO_LONG414 Request-URI Too LongREQUESTED_RANGE_NOT_SATISFIABLE416 Requested Range Not SatisfiableRESET_CONTENT205 Reset ContentSEE_OTHER303 See OtherSERVICE_UNAVAILABLE503 Service UnavailableSWITCHING_PROTOCOLS101 Switching ProtocolsTEMPORARY_REDIRECT307 Temporary RedirectUNAUTHORIZED401 UnauthorizedUNPROCESSABLE_ENTITY422 Unprocessable EntityUNSUPPORTED_MEDIA_TYPE415 Unsupported Media TypeUSE_PROXY305 Use Proxy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(int code)intgetCode()java.lang.StringgetMessage()booleanisClientError()Simple test against an code to determine if it falls into theClient Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.booleanisInformational()Simple test against an code to determine if it falls into theInformationalmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.booleanisRedirection()Simple test against an code to determine if it falls into theRedirectionmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.booleanisServerError()Simple test against an code to determine if it falls into theServer Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.booleanisSuccess()Simple test against an code to determine if it falls into theSuccessmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.java.lang.StringtoString()static HttpSC.CodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HttpSC.Code[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final HttpSC.Code CONTINUE
100 Continue
-
SWITCHING_PROTOCOLS
public static final HttpSC.Code SWITCHING_PROTOCOLS
101 Switching Protocols
-
PROCESSING
public static final HttpSC.Code PROCESSING
102 Processing
-
OK
public static final HttpSC.Code OK
200 OK
-
CREATED
public static final HttpSC.Code CREATED
201 Created
-
ACCEPTED
public static final HttpSC.Code ACCEPTED
202 Accepted
-
NON_AUTHORITATIVE_INFORMATION
public static final HttpSC.Code NON_AUTHORITATIVE_INFORMATION
203 Non Authoritative Information
-
NO_CONTENT
public static final HttpSC.Code NO_CONTENT
204 No Content
-
RESET_CONTENT
public static final HttpSC.Code RESET_CONTENT
205 Reset Content
-
PARTIAL_CONTENT
public static final HttpSC.Code PARTIAL_CONTENT
206 Partial Content
-
MULTI_STATUS
public static final HttpSC.Code MULTI_STATUS
207 Multi-Status
-
MULTIPLE_CHOICES
public static final HttpSC.Code MULTIPLE_CHOICES
300 Mutliple Choices
-
MOVED_PERMANENTLY
public static final HttpSC.Code MOVED_PERMANENTLY
301 Moved Permanently
-
MOVED_TEMPORARILY
public static final HttpSC.Code MOVED_TEMPORARILY
302 Moved Temporarily
-
FOUND
public static final HttpSC.Code FOUND
302 Found
-
SEE_OTHER
public static final HttpSC.Code SEE_OTHER
303 See Other
-
NOT_MODIFIED
public static final HttpSC.Code NOT_MODIFIED
304 Not Modified
-
USE_PROXY
public static final HttpSC.Code USE_PROXY
305 Use Proxy
-
TEMPORARY_REDIRECT
public static final HttpSC.Code TEMPORARY_REDIRECT
307 Temporary Redirect
-
BAD_REQUEST
public static final HttpSC.Code BAD_REQUEST
400 Bad Request
-
UNAUTHORIZED
public static final HttpSC.Code UNAUTHORIZED
401 Unauthorized
-
PAYMENT_REQUIRED
public static final HttpSC.Code PAYMENT_REQUIRED
402 Payment Required
-
FORBIDDEN
public static final HttpSC.Code FORBIDDEN
403 Forbidden
-
NOT_FOUND
public static final HttpSC.Code NOT_FOUND
404 Not Found
-
METHOD_NOT_ALLOWED
public static final HttpSC.Code METHOD_NOT_ALLOWED
405 Method Not Allowed
-
NOT_ACCEPTABLE
public static final HttpSC.Code NOT_ACCEPTABLE
406 Not Acceptable
-
PROXY_AUTHENTICATION_REQUIRED
public static final HttpSC.Code PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required
-
REQUEST_TIMEOUT
public static final HttpSC.Code REQUEST_TIMEOUT
408 Request Timeout
-
CONFLICT
public static final HttpSC.Code CONFLICT
409 Conflict
-
GONE
public static final HttpSC.Code GONE
410 Gone
-
LENGTH_REQUIRED
public static final HttpSC.Code LENGTH_REQUIRED
411 Length Required
-
PRECONDITION_FAILED
public static final HttpSC.Code PRECONDITION_FAILED
412 Precondition Failed
-
REQUEST_ENTITY_TOO_LARGE
public static final HttpSC.Code REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large
-
REQUEST_URI_TOO_LONG
public static final HttpSC.Code REQUEST_URI_TOO_LONG
414 Request-URI Too Long
-
UNSUPPORTED_MEDIA_TYPE
public static final HttpSC.Code UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type
-
REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpSC.Code REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable
-
EXPECTATION_FAILED
public static final HttpSC.Code EXPECTATION_FAILED
417 Expectation Failed
-
I_AM_A_TEAPOT
public static final HttpSC.Code I_AM_A_TEAPOT
417 I'm a teapotThe response MAY be short and stout.
-
UNPROCESSABLE_ENTITY
public static final HttpSC.Code UNPROCESSABLE_ENTITY
422 Unprocessable Entity
-
LOCKED
public static final HttpSC.Code LOCKED
423 Locked
-
FAILED_DEPENDENCY
public static final HttpSC.Code FAILED_DEPENDENCY
424 Failed Dependency
-
INTERNAL_SERVER_ERROR
public static final HttpSC.Code INTERNAL_SERVER_ERROR
500 Server Error
-
NOT_IMPLEMENTED
public static final HttpSC.Code NOT_IMPLEMENTED
501 Not Implemented
-
BAD_GATEWAY
public static final HttpSC.Code BAD_GATEWAY
502 Bad Gateway
-
SERVICE_UNAVAILABLE
public static final HttpSC.Code SERVICE_UNAVAILABLE
503 Service Unavailable
-
GATEWAY_TIMEOUT
public static final HttpSC.Code GATEWAY_TIMEOUT
504 Gateway Timeout
-
HTTP_VERSION_NOT_SUPPORTED
public static final HttpSC.Code HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported
-
INSUFFICIENT_STORAGE
public static final HttpSC.Code INSUFFICIENT_STORAGE
507 Insufficient Storage
-
-
Method Detail
-
values
public static HttpSC.Code[] 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 (HttpSC.Code c : HttpSC.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpSC.Code 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 namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
-
getMessage
public java.lang.String getMessage()
-
equals
public boolean equals(int code)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<HttpSC.Code>
-
isInformational
public boolean isInformational()
Simple test against an code to determine if it falls into theInformationalmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.- Returns:
- true if within range of codes that belongs to
Informationalmessages.
-
isSuccess
public boolean isSuccess()
Simple test against an code to determine if it falls into theSuccessmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.- Returns:
- true if within range of codes that belongs to
Successmessages.
-
isRedirection
public boolean isRedirection()
Simple test against an code to determine if it falls into theRedirectionmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.- Returns:
- true if within range of codes that belongs to
Redirectionmessages.
-
isClientError
public boolean isClientError()
Simple test against an code to determine if it falls into theClient Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.- Returns:
- true if within range of codes that belongs to
Client Errormessages.
-
isServerError
public boolean isServerError()
Simple test against an code to determine if it falls into theServer Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.- Returns:
- true if within range of codes that belongs to
Server Errormessages.
-
-