Class FiftyOneInterceptor

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    @Component
    public class FiftyOneInterceptor
    extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
    The 51Degrees middleware component. This carries out the processing on the device making the request using the Pipeline which has been constructed, and intercepts requests for the 51Degrees JavaScript.
    • Field Detail

      • pipeline

        public fiftyone.pipeline.core.flowelements.Pipeline pipeline
    • Method Detail

      • enableClientsideProperties

        public static void enableClientsideProperties​(org.springframework.web.servlet.config.annotation.ViewControllerRegistry viewControllerRegistry)
      • preHandle

        public boolean preHandle​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 Object handler)
                          throws Exception
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Overrides:
        preHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
        Throws:
        Exception
      • afterCompletion

        public void afterCompletion​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    Object handler,
                                    Exception ex)
                             throws Exception
        Specified by:
        afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
        Overrides:
        afterCompletion in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
        Throws:
        Exception