public class OrphanStatusType extends Object implements javax.ws.rs.core.Response.StatusType
| Modifier | Constructor and Description |
|---|---|
protected |
OrphanStatusType(javax.ws.rs.core.Response.Status.Family family,
int statusCode,
String reasonPhrase)
Creates a new instance with given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response.ResponseBuilder |
buildable()
Returns a new response builder for this status type.
|
static javax.ws.rs.core.Response.ResponseBuilder |
buildable(int statusCode,
String reasonPhrase)
Returns a new response builder for given arguments.
|
javax.ws.rs.core.Response |
built()
Returns a new response for this status type.
|
static javax.ws.rs.core.Response |
built(int statusCode,
String reasonPhrase)
Returns a new response for given arguments.
|
javax.ws.rs.core.Response.Status.Family |
getFamily() |
String |
getReasonPhrase() |
int |
getStatusCode() |
static OrphanStatusType |
newInstance(int statusCode,
String reasonPhrase)
Creates a new instance of this status type for given arguments.
|
javax.ws.rs.WebApplicationException |
throwable()
Returns a new web application exception for this status type.
|
static javax.ws.rs.WebApplicationException |
throwable(int statusCode,
String reasonPhrase)
Returns a new web application exception for given arguments.
|
protected OrphanStatusType(javax.ws.rs.core.Response.Status.Family family,
int statusCode,
String reasonPhrase)
family - the familystatusCode - the status codereasonPhrase - the reason phrasepublic static OrphanStatusType newInstance(int statusCode, String reasonPhrase)
statusCode - the HTTP status codereasonPhrase - the HTTP reason phrasepublic static javax.ws.rs.core.Response.ResponseBuilder buildable(int statusCode,
String reasonPhrase)
statusCode - the HTTP status codereasonPhrase - the HTTP reason phrasepublic static javax.ws.rs.core.Response built(int statusCode,
String reasonPhrase)
statusCode - the HTTP status codereasonPhrase - the HTTP reason phrasepublic static javax.ws.rs.WebApplicationException throwable(int statusCode,
String reasonPhrase)
statusCode - the HTTP status codereasonPhrase - the HTTP reason phrasepublic javax.ws.rs.core.Response.Status.Family getFamily()
getFamily in interface javax.ws.rs.core.Response.StatusTypepublic String getReasonPhrase()
getReasonPhrase in interface javax.ws.rs.core.Response.StatusTypepublic int getStatusCode()
getStatusCode in interface javax.ws.rs.core.Response.StatusTypepublic javax.ws.rs.core.Response.ResponseBuilder buildable()
Response.status(javax.ws.rs.core.Response.StatusType)public javax.ws.rs.core.Response built()
#builder()public javax.ws.rs.WebApplicationException throwable()
#build()Copyright © 2011-2013. All Rights Reserved.