|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.message.internal.ExceptionWrapperInterceptor
@Priority(value=10) @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 method. |
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 method. |
| 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) method.
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
MessageBodyReader.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) method.
aroundReadFrom in interface ReaderInterceptorcontext - invocation context.
java.io.IOException - if an IO error arises or is thrown by the wrapped
MessageBodyReader.readFrom method.
WebApplicationException - thrown by the wrapped MessageBodyReader.readFrom 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) method.
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 MessageBodyWriter.writeTo method.
aroundWriteTo in interface WriterInterceptorcontext - invocation context.
java.io.IOException - if an IO error arises or is thrown by the wrapped
MessageBodyWriter.writeTo method.
WebApplicationException - thrown by the wrapped MessageBodyWriter.writeTo method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||