Package javax.ws.rs.core
Interface Response.StatusType
-
- All Known Implementing Classes:
Response.Status
- Enclosing class:
- Response
public static interface Response.StatusTypeBase interface for statuses used in responses.- Since:
- 1.1
-
-
Method Summary
Modifier and Type Method Description Response.Status.FamilygetFamily()Get the class of status code.StringgetReasonPhrase()Get the reason phrase.intgetStatusCode()Get the associated status code.default Response.StatustoEnum()Get the this Status Type as aResponse.Status.
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Get the associated status code.- Returns:
- the status code.
-
getFamily
Response.Status.Family getFamily()
Get the class of status code.- Returns:
- the class of status code.
-
getReasonPhrase
String getReasonPhrase()
Get the reason phrase.- Returns:
- the reason phrase.
-
toEnum
default Response.Status toEnum()
Get the this Status Type as aResponse.Status.Please note that returned status contains only a status code, the reason phrase is set to default one (corresponding to the status code).
- Returns:
Response.Statusrepresenting this status type.- Since:
- 2.1
-
-