Class CustomInterceptor
- java.lang.Object
-
- org.glassfish.jersey.examples.helloworld.CustomInterceptor
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
@ApplicationScoped public class CustomInterceptor extends Object implements jakarta.ws.rs.ext.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(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
-
-
Method Detail
-
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
-
-