Enum Class HttpSC.Code

java.lang.Object
java.lang.Enum<HttpSC.Code>
org.apache.jena.web.HttpSC.Code
All Implemented Interfaces:
Serializable, Comparable<HttpSC.Code>, Constable
Enclosing class:
HttpSC

public static enum HttpSC.Code extends Enum<HttpSC.Code>
  • Enum Constant Details

    • 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 teapot The 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 Details

    • values

      public static HttpSC.Code[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpSC.Code valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • getMessage

      public String getMessage()
    • equals

      public boolean equals(int code)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HttpSC.Code>
    • isInformational

      public boolean isInformational()
      Simple test against an code to determine if it falls into the Informational message 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 Informational messages.
    • isSuccess

      public boolean isSuccess()
      Simple test against an code to determine if it falls into the Success message 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 Success messages.
    • isRedirection

      public boolean isRedirection()
      Simple test against an code to determine if it falls into the Redirection message 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 Redirection messages.
    • isClientError

      public boolean isClientError()
      Simple test against an code to determine if it falls into the Client Error message 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 Error messages.
    • isServerError

      public boolean isServerError()
      Simple test against an code to determine if it falls into the Server Error message 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 Error messages.