Object HttpStatus.Series.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final HttpStatus.Series valueOf(HttpStatus status) Return the Series enum constant for the supplied HttpStatus.
      final HttpStatus.Series valueOf(Integer statusCode) Return the Series enum constant for the supplied status code.
      final HttpStatus.Series resolve(Integer statusCode) Resolve the given status code to an HttpStatus.Series, if possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

        @Deprecated(message = "as of 5.3, in favor of invoking {@link HttpStatus#series()} directly") final HttpStatus.Series valueOf(HttpStatus status)

        Return the Series enum constant for the supplied HttpStatus.

        Parameters:
        status - a standard HTTP status enum constant
        Returns:

        the Series enum constant for the supplied HttpStatus

      • valueOf

         final HttpStatus.Series valueOf(Integer statusCode)

        Return the Series enum constant for the supplied status code.

        Parameters:
        statusCode - the HTTP status code (potentially non-standard)
        Returns:

        the Series enum constant for the supplied status code

      • resolve

        @Nullable() final HttpStatus.Series resolve(Integer statusCode)

        Resolve the given status code to an HttpStatus.Series, if possible.

        Parameters:
        statusCode - the HTTP status code (potentially non-standard)
        Returns:

        the corresponding Series, or null if not found

        Since:

        5.1.3