Class MappableExceptionWrapperInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor
-
- All Implemented Interfaces:
ReaderInterceptor
,WriterInterceptor
@Priority(10) @Singleton public class MappableExceptionWrapperInterceptor extends Object implements ReaderInterceptor, WriterInterceptor
Interceptor 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.- Author:
- Miroslav Fuksa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MappableExceptionWrapperInterceptor.Binder
Binder 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 Object
aroundReadFrom(ReaderInterceptorContext context)
void
aroundWriteTo(WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundReadFrom
in interfaceReaderInterceptor
- Throws:
IOException
WebApplicationException
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundWriteTo
in interfaceWriterInterceptor
- Throws:
IOException
WebApplicationException
-
-