Class RequestFilter

java.lang.Object
com.axelor.rpc.RequestFilter
All Implemented Interfaces:
jakarta.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, jakarta.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 Details

    • RequestFilter

      public RequestFilter()
  • Method Details

    • 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(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      aroundWriteTo in interface jakarta.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException