Class MappableExceptionWrapperInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor
-
- All Implemented Interfaces:
javax.ws.rs.ext.ReaderInterceptor,javax.ws.rs.ext.WriterInterceptor
@Priority(10) @Singleton public class MappableExceptionWrapperInterceptor extends java.lang.Object implements javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.WriterInterceptorInterceptor that wraps specific exceptions types thrown by wrapped interceptors and by message body readers and writers into a mappable exception. It must have the lowest priority in order to wrap all other interceptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMappableExceptionWrapperInterceptor.BinderBinder registering theException Wrapper Interceptor(used on the client side).
-
Constructor Summary
Constructors Constructor Description MappableExceptionWrapperInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectaroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context)voidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public java.lang.Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext context) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
aroundReadFromin interfacejavax.ws.rs.ext.ReaderInterceptor- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-