org.glassfish.jersey.message.internal
Class ExceptionWrapperInterceptor
java.lang.Object
org.glassfish.jersey.message.internal.ExceptionWrapperInterceptor
- All Implemented Interfaces:
- ReaderInterceptor, WriterInterceptor
@Singleton
public class ExceptionWrapperInterceptor
- extends Object
- implements ReaderInterceptor, WriterInterceptor
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.
- Author:
- Miroslav Fuksa (miroslav.fuksa at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionWrapperInterceptor
public ExceptionWrapperInterceptor()
aroundReadFrom
public Object aroundReadFrom(ReaderInterceptorContext context)
throws IOException,
WebApplicationException
- Specified by:
aroundReadFrom in interface ReaderInterceptor
- Throws:
IOException
WebApplicationException
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context)
throws IOException,
WebApplicationException
- Specified by:
aroundWriteTo in interface WriterInterceptor
- Throws:
IOException
WebApplicationException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.