Package org.apache.jena.web
Enum HttpSC.Code
- All Implemented Interfaces:
Serializable,Comparable<HttpSC.Code>,java.lang.constant.Constable
- Enclosing class:
- HttpSC
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription202 Accepted502 Bad Gateway400 Bad Request409 Conflict100 Continue201 Created417 Expectation Failed424 Failed Dependency403 Forbidden302 Found504 Gateway Timeout410 Gone505 HTTP Version Not Supported417 I'm a teapotThe response MAY be short and stout.507 Insufficient Storage500 Server Error411 Length Required423 Locked405 Method Not Allowed301 Moved Permanently302 Moved Temporarily207 Multi-Status300 Mutliple Choices204 No Content203 Non Authoritative Information406 Not Acceptable404 Not Found501 Not Implemented304 Not Modified200 OK206 Partial Content402 Payment Required412 Precondition Failed102 Processing407 Proxy Authentication Required413 Request Entity Too Large408 Request Timeout414 Request-URI Too Long416 Requested Range Not Satisfiable205 Reset Content303 See Other503 Service Unavailable101 Switching Protocols307 Temporary Redirect401 Unauthorized422 Unprocessable Entity415 Unsupported Media Type305 Use Proxy -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(int code) intgetCode()booleanSimple 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.booleanSimple 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.booleanSimple 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.booleanSimple 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.booleanSimple 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.toString()static HttpSC.CodeReturns 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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
CONTINUE
100 Continue -
SWITCHING_PROTOCOLS
101 Switching Protocols -
PROCESSING
102 Processing -
OK
200 OK -
CREATED
201 Created -
ACCEPTED
202 Accepted -
NON_AUTHORITATIVE_INFORMATION
203 Non Authoritative Information -
NO_CONTENT
204 No Content -
RESET_CONTENT
205 Reset Content -
PARTIAL_CONTENT
206 Partial Content -
MULTI_STATUS
207 Multi-Status -
MULTIPLE_CHOICES
300 Mutliple Choices -
MOVED_PERMANENTLY
301 Moved Permanently -
MOVED_TEMPORARILY
302 Moved Temporarily -
FOUND
302 Found -
SEE_OTHER
303 See Other -
NOT_MODIFIED
304 Not Modified -
USE_PROXY
305 Use Proxy -
TEMPORARY_REDIRECT
307 Temporary Redirect -
BAD_REQUEST
400 Bad Request -
UNAUTHORIZED
401 Unauthorized -
PAYMENT_REQUIRED
402 Payment Required -
FORBIDDEN
403 Forbidden -
NOT_FOUND
404 Not Found -
METHOD_NOT_ALLOWED
405 Method Not Allowed -
NOT_ACCEPTABLE
406 Not Acceptable -
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required -
REQUEST_TIMEOUT
408 Request Timeout -
CONFLICT
409 Conflict -
GONE
410 Gone -
LENGTH_REQUIRED
411 Length Required -
PRECONDITION_FAILED
412 Precondition Failed -
REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large -
REQUEST_URI_TOO_LONG
414 Request-URI Too Long -
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type -
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable -
EXPECTATION_FAILED
417 Expectation Failed -
I_AM_A_TEAPOT
417 I'm a teapotThe response MAY be short and stout. -
UNPROCESSABLE_ENTITY
422 Unprocessable Entity -
LOCKED
423 Locked -
FAILED_DEPENDENCY
424 Failed Dependency -
INTERNAL_SERVER_ERROR
500 Server Error -
NOT_IMPLEMENTED
501 Not Implemented -
BAD_GATEWAY
502 Bad Gateway -
SERVICE_UNAVAILABLE
503 Service Unavailable -
GATEWAY_TIMEOUT
504 Gateway Timeout -
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported -
INSUFFICIENT_STORAGE
507 Insufficient Storage
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
getMessage
-
equals
public boolean equals(int code) -
toString
- Overrides:
toStringin classEnum<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.
-