|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.message.internal.ExceptionWrapperInterceptor
@Singleton public class ExceptionWrapperInterceptor
Interceptor that transforms WebApplicationException to
MessageBodyProcessingException. This should be used on the client. It must have
the lowest priority in order to wrap all other interceptors.
| Nested Class Summary | |
|---|---|
static class |
ExceptionWrapperInterceptor.Binder
Binder registering the Exception Wrapper Interceptor
(used on the client side). |
| Constructor Summary | |
|---|---|
ExceptionWrapperInterceptor()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
aroundReadFrom(ReaderInterceptorContext context)
Interceptor method wrapping calls to MessageBodyReader.readFrom(java.lang.Class. |
void |
aroundWriteTo(WriterInterceptorContext context)
Interceptor method wrapping calls to MessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionWrapperInterceptor()
| Method Detail |
|---|
public java.lang.Object aroundReadFrom(ReaderInterceptorContext context)
throws java.io.IOException,
WebApplicationException
ReaderInterceptorMessageBodyReader.readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream) . The parameters
of the wrapped method called are available from context.
Implementations of this method SHOULD explicitly call
ReaderInterceptorContext.proceed() to invoke
the next interceptor in the chain, and ultimately the wrapped method.
aroundReadFrom in interface ReaderInterceptorcontext - invocation context.
java.io.IOException - if an IO error arises.
WebApplicationException - thrown by wrapped method.
public void aroundWriteTo(WriterInterceptorContext context)
throws java.io.IOException,
WebApplicationException
WriterInterceptorMessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream) .
The parameters of the wrapped method called are available from context.
Implementations of this method SHOULD explicitly call
WriterInterceptorContext.proceed() to invoke the next interceptor in the chain,
and ultimately the wrapped method.
aroundWriteTo in interface WriterInterceptorcontext - invocation context.
java.io.IOException - if an IO error arises.
WebApplicationException - thrown by wrapped method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||