public interface WebApplicationExceptionWrapper<T extends javax.ws.rs.WebApplicationException>
WebApplicationException to be unwrapped.| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
sanitize(javax.ws.rs.core.Response response)
Sanitizes the response by creating a new response with only the status code, allowed methods, entity and the
media type.
|
T |
unwrap()
Returns the original, unwrapped, exception.
|
static javax.ws.rs.WebApplicationException |
unwrap(javax.ws.rs.WebApplicationException e)
Unwraps the exception if the passed in expression is a
WebApplicationExceptionWrapper. |
static javax.ws.rs.WebApplicationException |
wrap(javax.ws.rs.WebApplicationException e)
If the
resteasy.original.webapplicationexception.behavior is set to true or the request is
determined to not be a server side request, then the WebApplicationException passed in will be returned. |
static javax.ws.rs.WebApplicationException wrap(javax.ws.rs.WebApplicationException e)
resteasy.original.webapplicationexception.behavior is set to true or the request is
determined to not be a server side request, then the WebApplicationException passed in will be returned.
If the property is not set to true and this is a server side request then the exception is wrapped and
the response is sanitized.e - the exception to possibly wrapstatic javax.ws.rs.WebApplicationException unwrap(javax.ws.rs.WebApplicationException e)
WebApplicationExceptionWrapper. Otherwise
the exception passed in is returned.e - the exception to unwrapWebApplicationExceptionWrapperstatic javax.ws.rs.core.Response sanitize(javax.ws.rs.core.Response response)
response - the response to sanitize.T unwrap()
Copyright © 2023 JBoss by Red Hat. All rights reserved.