Class ObjectHookInterceptor

  • All Implemented Interfaces:
    javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.WriterInterceptor

    @Provider
    public class ObjectHookInterceptor
    extends AbstractServices
    implements javax.ws.rs.ext.ReaderInterceptor, javax.ws.rs.ext.WriterInterceptor
    • Constructor Detail

      • ObjectHookInterceptor

        public ObjectHookInterceptor()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class AbstractServices
        Throws:
        java.lang.Exception
      • aroundReadFrom

        public java.lang.Object aroundReadFrom​(javax.ws.rs.ext.ReaderInterceptorContext context)
                                        throws java.io.IOException,
                                               javax.ws.rs.WebApplicationException
        Specified by:
        aroundReadFrom in interface javax.ws.rs.ext.ReaderInterceptor
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException
      • aroundWriteTo

        public void aroundWriteTo​(javax.ws.rs.ext.WriterInterceptorContext context)
                           throws java.io.IOException,
                                  javax.ws.rs.WebApplicationException
        Specified by:
        aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException