Class RequestFilter

  • All Implemented Interfaces:
    javax.ws.rs.ext.WriterInterceptor, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    @Provider
    public class RequestFilter
    extends Object
    implements org.aopalliance.intercept.MethodInterceptor, javax.ws.rs.ext.WriterInterceptor
    Keep track of current Request object.

    The current Request is stored as thread local as soon as it's available and cleared when the web service finishes writing response.

    • Constructor Detail

      • RequestFilter

        public RequestFilter()
    • Method Detail

      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                      throws Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        Throwable
      • aroundWriteTo

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