Class CustomInterceptor
- java.lang.Object
-
- org.glassfish.jersey.examples.helloworld.CustomInterceptor
-
- All Implemented Interfaces:
WriterInterceptor
@ApplicationScoped public class CustomInterceptor extends Object implements WriterInterceptor
CDI based JAX-RS interceptor that re-writes the original output with request ID obtained from another CDI bean.- Author:
- Jakub Podlesak
-
-
Constructor Summary
Constructors Constructor Description CustomInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundWriteToin interfaceWriterInterceptor- Throws:
IOExceptionWebApplicationException
-
-