Class MappableExceptionWrapperInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ReaderInterceptor,jakarta.ws.rs.ext.WriterInterceptor
@Priority(10) @Singleton public class MappableExceptionWrapperInterceptor extends Object implements jakarta.ws.rs.ext.ReaderInterceptor, jakarta.ws.rs.ext.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 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 ObjectaroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context)voidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public Object aroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
aroundReadFromin interfacejakarta.ws.rs.ext.ReaderInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-