Class PatchingInterceptor

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.ReaderInterceptor

    public class PatchingInterceptor
    extends Object
    implements jakarta.ws.rs.ext.ReaderInterceptor
    JAX-RS reader interceptor that implements server-side PATCH support.
    Author:
    Gerard Davison (gerard.davison at oracle.com), Marek Potociar
    • Constructor Detail

      • PatchingInterceptor

        public PatchingInterceptor​(@Context
                                   jakarta.ws.rs.core.UriInfo uriInfo,
                                   @Context
                                   org.glassfish.jersey.message.MessageBodyWorkers workers)
        PatchingInterceptor injection constructor.
        Parameters:
        uriInfo - jakarta.ws.rs.core.UriInfo proxy instance.
        workers - MessageBodyWorkers message body workers.
    • Method Detail

      • aroundReadFrom

        public Object aroundReadFrom​(jakarta.ws.rs.ext.ReaderInterceptorContext readerInterceptorContext)
                              throws IOException,
                                     jakarta.ws.rs.WebApplicationException
        Specified by:
        aroundReadFrom in interface jakarta.ws.rs.ext.ReaderInterceptor
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException