org.glassfish.jersey.message.internal
Class ExceptionWrapperInterceptor
java.lang.Object
org.glassfish.jersey.message.internal.ExceptionWrapperInterceptor
- All Implemented Interfaces:
- javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.WriterInterceptor
@Priority(value=10)
@Singleton
public class ExceptionWrapperInterceptor
- extends java.lang.Object
- implements javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.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)
|
Method Summary |
java.lang.Object |
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)
|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionWrapperInterceptor
public ExceptionWrapperInterceptor()
aroundReadFrom
public java.lang.Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
aroundReadFrom in interface javax.ws.rs.ext.ReaderInterceptor
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.