Enum HttpStatus

  • All Implemented Interfaces:
    ai.platon.pulsar.common.http.HttpStatusCode , java.io.Serializable , kotlin.Comparable

    
    public enum HttpStatus
    extends Enum<HttpStatus> implements HttpStatusCode
                        

    Enumeration of HTTP status codes.

    The HTTP status code series can be retrieved via .series.

    Since:

    3.0

    Author:

    Arjen Poutsma

    Sebastien Deleuze

    Brian Clozel

    • Constructor Detail

    • Method Detail

      • isError

         Boolean isError()

        Whether this status code is in the Client or Server Error class

      • toString

         String toString()

        Return a string representation of this status code.

      • valueOf

         final HttpStatus valueOf(String value)

        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.)

      • values

         final Array<HttpStatus> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.

      • getValue

         Integer getValue()

        Return the integer value of this status code.

      • getEntries

         final EnumEntries<HttpStatus> getEntries()

        Enumeration of HTTP status codes.

        The HTTP status code series can be retrieved via .series.

        Since:

        3.0