Package ai.platon.pulsar.common.http
Object HttpStatus.Series.Companion
-
- All Implemented Interfaces:
public class HttpStatus.Series.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static HttpStatus.Series.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final HttpStatus.SeriesvalueOf(HttpStatus status)Return the Seriesenum constant for the suppliedHttpStatus.final HttpStatus.SeriesvalueOf(Integer statusCode)Return the Seriesenum constant for the supplied status code.final HttpStatus.Seriesresolve(Integer statusCode)Resolve the given status code to an HttpStatus.Series, if possible.-
-
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
Seriesenum constant for the suppliedHttpStatus.- Parameters:
status- a standard HTTP status enum constant- Returns:
the
Seriesenum constant for the suppliedHttpStatus
-
valueOf
final HttpStatus.Series valueOf(Integer statusCode)
Return the
Seriesenum constant for the supplied status code.- Parameters:
statusCode- the HTTP status code (potentially non-standard)- Returns:
the
Seriesenum 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, ornullif not found- Since:
5.1.3
-
-
-
-