-
public class ResourceStatus.Series.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ResourceStatus.Series.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ResourceStatus.SeriesvalueOf(ResourceStatus status)Return the Seriesenum constant for the suppliedHttpStatus.final ResourceStatus.SeriesvalueOf(Integer statusCode)Return the Seriesenum constant for the supplied status code.final ResourceStatus.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 ResourceStatus.Series valueOf(ResourceStatus status)
Return the
Seriesenum constant for the suppliedHttpStatus.- Parameters:
status- a standard HTTP status enum constant
-
valueOf
final ResourceStatus.Series valueOf(Integer statusCode)
Return the
Seriesenum constant for the supplied status code.- Parameters:
statusCode- the HTTP status code (potentially non-standard)
-
resolve
final ResourceStatus.Series resolve(Integer statusCode)
Resolve the given status code to an
HttpStatus.Series, if possible.- Parameters:
statusCode- the HTTP status code (potentially non-standard)
-
-
-
-