Package | Description |
---|---|
javax.ws.rs |
High-level interfaces and annotations used to create RESTful service
resources.
|
javax.ws.rs.client |
The JAX-RS client API
|
javax.ws.rs.container |
Container-specific JAX-RS API.
|
javax.ws.rs.core |
Low-level interfaces and annotations used to create RESTful service
resources.
|
javax.ws.rs.ext |
APIs that provide extensions to the types supported by the JAX-RS API.
|
Modifier and Type | Field and Description |
---|---|
private Response |
WebApplicationException.response |
Modifier and Type | Method and Description |
---|---|
private static Response |
NotAllowedException.createNotAllowedResponse(java.lang.String allowed,
java.lang.String... moreAllowed) |
private static Response |
NotAuthorizedException.createUnauthorizedResponse(java.lang.Object challenge,
java.lang.Object[] otherChallenges) |
Response |
WebApplicationException.getResponse()
Get the HTTP response.
|
(package private) static Response |
WebApplicationException.validate(Response response,
Response.Status.Family expectedStatusFamily)
Validate that a
Response object has an expected HTTP response
status code set. |
(package private) static Response |
WebApplicationException.validate(Response response,
Response.Status expectedStatus)
Validate that a
Response object has an expected HTTP response
status code set. |
private static Response |
NotAllowedException.validateAllow(Response response) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
WebApplicationException.computeExceptionMessage(Response response) |
(package private) static Response |
WebApplicationException.validate(Response response,
Response.Status.Family expectedStatusFamily)
Validate that a
Response object has an expected HTTP response
status code set. |
(package private) static Response |
WebApplicationException.validate(Response response,
Response.Status expectedStatus)
Validate that a
Response object has an expected HTTP response
status code set. |
private static Response |
NotAllowedException.validateAllow(Response response) |
Constructor and Description |
---|
BadRequestException(Response response)
Construct a new bad client request exception.
|
BadRequestException(Response response,
java.lang.Throwable cause)
Construct a new bad client request exception.
|
BadRequestException(java.lang.String message,
Response response)
Construct a new bad client request exception.
|
BadRequestException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new bad client request exception.
|
ClientErrorException(Response response)
Construct a new client error exception.
|
ClientErrorException(Response response,
java.lang.Throwable cause)
Construct a new client error exception.
|
ClientErrorException(java.lang.String message,
Response response)
Construct a new client error exception.
|
ClientErrorException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new client error exception.
|
ForbiddenException(Response response)
Construct a new "forbidden" exception.
|
ForbiddenException(Response response,
java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message,
Response response)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
InternalServerErrorException(Response response)
Construct a new internal server error exception.
|
InternalServerErrorException(Response response,
java.lang.Throwable cause)
Construct a new internal server error exception.
|
InternalServerErrorException(java.lang.String message,
Response response)
Construct a new internal server error exception.
|
InternalServerErrorException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new internal server error exception.
|
NotAcceptableException(Response response)
Construct a new "request not acceptable" exception.
|
NotAcceptableException(Response response,
java.lang.Throwable cause)
Construct a new "request not acceptable" exception.
|
NotAcceptableException(java.lang.String message,
Response response)
Construct a new "request not acceptable" exception.
|
NotAcceptableException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "request not acceptable" exception.
|
NotAllowedException(Response response)
Construct a new method not allowed exception.
|
NotAllowedException(Response response,
java.lang.Throwable cause)
Construct a new method not allowed exception.
|
NotAllowedException(java.lang.String message,
Response response)
Construct a new method not allowed exception.
|
NotAllowedException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new method not allowed exception.
|
NotAuthorizedException(Response response)
Construct a new "not authorized" exception.
|
NotAuthorizedException(Response response,
java.lang.Throwable cause)
Construct a new "not authorized" exception.
|
NotAuthorizedException(java.lang.String message,
Response response)
Construct a new "not authorized" exception.
|
NotAuthorizedException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "not authorized" exception.
|
NotFoundException(Response response)
Construct a new "not found" exception.
|
NotFoundException(Response response,
java.lang.Throwable cause)
Construct a new "not found" exception.
|
NotFoundException(java.lang.String message,
Response response)
Construct a new "not found" exception.
|
NotFoundException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "not found" exception.
|
NotSupportedException(Response response)
Construct a new unsupported media type exception.
|
NotSupportedException(Response response,
java.lang.Throwable cause)
Construct a new unsupported media type exception.
|
NotSupportedException(java.lang.String message,
Response response)
Construct a new unsupported media type exception.
|
NotSupportedException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new unsupported media type exception.
|
RedirectionException(Response response)
Construct a new redirection exception.
|
RedirectionException(java.lang.String message,
Response response)
Construct a new redirection exception.
|
ServerErrorException(Response response)
Construct a new server error exception.
|
ServerErrorException(Response response,
java.lang.Throwable cause)
Construct a new server error exception.
|
ServerErrorException(java.lang.String message,
Response response)
Construct a new server error exception.
|
ServerErrorException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new server error exception.
|
ServiceUnavailableException(Response response)
Construct a new "service unavailable" exception.
|
ServiceUnavailableException(Response response,
java.lang.Throwable cause)
Construct a new "service unavailable" exception.
|
ServiceUnavailableException(java.lang.String message,
Response response)
Construct a new "service unavailable" exception.
|
ServiceUnavailableException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "service unavailable" exception.
|
WebApplicationException(Response response)
Construct a new instance using the supplied response
and a default message generated from the response's HTTP status code and the associated HTTP status reason phrase.
|
WebApplicationException(java.lang.String message,
Response response)
Construct a new instance using the supplied message and response.
|
WebApplicationException(java.lang.String message,
java.lang.Throwable cause,
Response response)
Construct a new instance with the supplied message, root cause and response.
|
WebApplicationException(java.lang.Throwable cause,
Response response)
Construct a new instance with the supplied root cause, response
and a default message generated from the response's HTTP status code and the associated HTTP status reason phrase.
|
Modifier and Type | Field and Description |
---|---|
private Response |
ResponseProcessingException.response |
Modifier and Type | Method and Description |
---|---|
Response |
SyncInvoker.delete()
Invoke HTTP DELETE method for the current request synchronously.
|
Response |
SyncInvoker.get()
Invoke HTTP GET method for the current request synchronously.
|
Response |
ResponseProcessingException.getResponse()
Get the HTTP response for which the processing has failed.
|
Response |
SyncInvoker.head()
Invoke HTTP HEAD method for the current request synchronously.
|
Response |
Invocation.invoke()
Synchronously invoke the request and receive a response back.
|
Response |
SyncInvoker.method(java.lang.String name)
Invoke an arbitrary method for the current request synchronously.
|
Response |
SyncInvoker.method(java.lang.String name,
Entity<?> entity)
Invoke an arbitrary method for the current request synchronously.
|
Response |
SyncInvoker.options()
Invoke HTTP OPTIONS method for the current request synchronously.
|
Response |
SyncInvoker.post(Entity<?> entity)
Invoke HTTP POST method for the current request synchronously.
|
Response |
SyncInvoker.put(Entity<?> entity)
Invoke HTTP PUT method for the current request synchronously.
|
Response |
SyncInvoker.trace()
Invoke HTTP TRACE method for the current request synchronously.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<Response> |
AsyncInvoker.delete()
Invoke HTTP DELETE method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.get()
Invoke HTTP GET method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.head()
Invoke HTTP HEAD method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.head(InvocationCallback<Response> callback)
Invoke HTTP HEAD method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.method(java.lang.String name)
Invoke an arbitrary method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.method(java.lang.String name,
Entity<?> entity)
Invoke an arbitrary method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.options()
Invoke HTTP OPTIONS method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.post(Entity<?> entity)
Invoke HTTP POST method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.put(Entity<?> entity)
Invoke HTTP PUT method for the current request asynchronously.
|
java.util.concurrent.Future<Response> |
Invocation.submit()
Submit the request for an asynchronous invocation and receive a future
response back.
|
java.util.concurrent.Future<Response> |
AsyncInvoker.trace()
Invoke HTTP TRACE method for the current request asynchronously.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientRequestContext.abortWith(Response response)
Abort the filter chain with a response.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<Response> |
AsyncInvoker.head(InvocationCallback<Response> callback)
Invoke HTTP HEAD method for the current request asynchronously.
|
Constructor and Description |
---|
ResponseProcessingException(Response response,
java.lang.String message)
Constructs a new JAX-RS runtime processing exception with the specified detail
message.
|
ResponseProcessingException(Response response,
java.lang.String message,
java.lang.Throwable cause)
Constructs a new JAX-RS runtime response processing exception with the specified detail
message and cause.
|
ResponseProcessingException(Response response,
java.lang.Throwable cause)
Constructs a new JAX-RS runtime response processing exception
for a specific
response with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause ). |
Modifier and Type | Method and Description |
---|---|
void |
ContainerRequestContext.abortWith(Response response)
Abort the filter chain with a response.
|
Modifier and Type | Method and Description |
---|---|
abstract Response |
Response.ResponseBuilder.build()
Create a Response instance from the current ResponseBuilder.
|
Modifier and Type | Method and Description |
---|---|
static Response.ResponseBuilder |
Response.fromResponse(Response response)
Create a new ResponseBuilder by performing a shallow copy of an
existing Response.
|
Modifier and Type | Method and Description |
---|---|
Response |
ExceptionMapper.toResponse(E exception)
Map an exception to a
Response . |