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
    • SWITCHING_PROTOCOLS

      public static final HttpSC.Code SWITCHING_PROTOCOLS
    • PROCESSING

      public static final HttpSC.Code PROCESSING
    • EARLY_HINTS

      public static final HttpSC.Code EARLY_HINTS
    • OK

      public static final HttpSC.Code OK
    • CREATED

      public static final HttpSC.Code CREATED
    • ACCEPTED

      public static final HttpSC.Code ACCEPTED
    • NON_AUTHORITATIVE_INFORMATION

      public static final HttpSC.Code NON_AUTHORITATIVE_INFORMATION
    • NO_CONTENT

      public static final HttpSC.Code NO_CONTENT
    • RESET_CONTENT

      public static final HttpSC.Code RESET_CONTENT
    • PARTIAL_CONTENT

      public static final HttpSC.Code PARTIAL_CONTENT
    • MULTI_STATUS

      public static final HttpSC.Code MULTI_STATUS
    • MULTIPLE_CHOICES

      public static final HttpSC.Code MULTIPLE_CHOICES
    • MOVED_PERMANENTLY

      public static final HttpSC.Code MOVED_PERMANENTLY
    • MOVED_TEMPORARILY

      public static final HttpSC.Code MOVED_TEMPORARILY
    • FOUND

      public static final HttpSC.Code FOUND
    • SEE_OTHER

      public static final HttpSC.Code SEE_OTHER
    • NOT_MODIFIED

      public static final HttpSC.Code NOT_MODIFIED
    • USE_PROXY

      public static final HttpSC.Code USE_PROXY
    • TEMPORARY_REDIRECT

      public static final HttpSC.Code TEMPORARY_REDIRECT
    • PERMANENT_REDIRECT

      public static final HttpSC.Code PERMANENT_REDIRECT
    • BAD_REQUEST

      public static final HttpSC.Code BAD_REQUEST
    • UNAUTHORIZED

      public static final HttpSC.Code UNAUTHORIZED
    • PAYMENT_REQUIRED

      public static final HttpSC.Code PAYMENT_REQUIRED
    • FORBIDDEN

      public static final HttpSC.Code FORBIDDEN
    • NOT_FOUND

      public static final HttpSC.Code NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final HttpSC.Code METHOD_NOT_ALLOWED
    • NOT_ACCEPTABLE

      public static final HttpSC.Code NOT_ACCEPTABLE
    • PROXY_AUTHENTICATION_REQUIRED

      public static final HttpSC.Code PROXY_AUTHENTICATION_REQUIRED
    • REQUEST_TIMEOUT

      public static final HttpSC.Code REQUEST_TIMEOUT
    • CONFLICT

      public static final HttpSC.Code CONFLICT
    • GONE

      public static final HttpSC.Code GONE
    • LENGTH_REQUIRED

      public static final HttpSC.Code LENGTH_REQUIRED
    • PRECONDITION_FAILED

      public static final HttpSC.Code PRECONDITION_FAILED
    • PAYLOAD_TOO_LARGE

      public static final HttpSC.Code PAYLOAD_TOO_LARGE
    • URI_TOO_LONG

      public static final HttpSC.Code URI_TOO_LONG
    • UNSUPPORTED_MEDIA_TYPE

      public static final HttpSC.Code UNSUPPORTED_MEDIA_TYPE
    • RANGE_NOT_SATISFIABLE

      public static final HttpSC.Code RANGE_NOT_SATISFIABLE
    • EXPECTATION_FAILED

      public static final HttpSC.Code EXPECTATION_FAILED
    • IM_A_TEAPOT

      public static final HttpSC.Code IM_A_TEAPOT
    • ENHANCE_YOUR_CALM

      public static final HttpSC.Code ENHANCE_YOUR_CALM
    • MISDIRECTED_REQUEST

      public static final HttpSC.Code MISDIRECTED_REQUEST
    • UNPROCESSABLE_ENTITY

      public static final HttpSC.Code UNPROCESSABLE_ENTITY
    • LOCKED

      public static final HttpSC.Code LOCKED
    • FAILED_DEPENDENCY

      public static final HttpSC.Code FAILED_DEPENDENCY
    • UPGRADE_REQUIRED

      public static final HttpSC.Code UPGRADE_REQUIRED
    • PRECONDITION_REQUIRED

      public static final HttpSC.Code PRECONDITION_REQUIRED
    • TOO_MANY_REQUESTS

      public static final HttpSC.Code TOO_MANY_REQUESTS
    • REQUEST_HEADER_FIELDS_TOO_LARGE

      public static final HttpSC.Code REQUEST_HEADER_FIELDS_TOO_LARGE
    • INTERNAL_SERVER_ERROR

      public static final HttpSC.Code INTERNAL_SERVER_ERROR
    • NOT_IMPLEMENTED

      public static final HttpSC.Code NOT_IMPLEMENTED
    • BAD_GATEWAY

      public static final HttpSC.Code BAD_GATEWAY
    • SERVICE_UNAVAILABLE

      public static final HttpSC.Code SERVICE_UNAVAILABLE
    • GATEWAY_TIMEOUT

      public static final HttpSC.Code GATEWAY_TIMEOUT
    • HTTP_VERSION_NOT_SUPPORTED

      public static final HttpSC.Code HTTP_VERSION_NOT_SUPPORTED
    • INSUFFICIENT_STORAGE

      public static final HttpSC.Code INSUFFICIENT_STORAGE
    • LOOP_DETECTED

      public static final HttpSC.Code LOOP_DETECTED
    • NOT_EXTENDED

      public static final HttpSC.Code NOT_EXTENDED
    • NETWORK_AUTHENTICATION_REQUIRED

      public static final HttpSC.Code NETWORK_AUTHENTICATION_REQUIRED
  • 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 7231 - 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 7231 - 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 7231 - 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 7231 - 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 7231 - HTTP/1.1.
      Returns:
      true if within range of codes that belongs to Server Error messages.