Class FiftyOneInterceptor
- java.lang.Object
-
- org.springframework.web.servlet.handler.HandlerInterceptorAdapter
-
- fiftyone.pipeline.web.mvc.components.FiftyOneInterceptor
-
- All Implemented Interfaces:
org.springframework.web.servlet.AsyncHandlerInterceptor,org.springframework.web.servlet.HandlerInterceptor
@Component public class FiftyOneInterceptor extends org.springframework.web.servlet.handler.HandlerInterceptorAdapterThe 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 Summary
Fields Modifier and Type Field Description fiftyone.pipeline.core.flowelements.Pipelinepipeline
-
Constructor Summary
Constructors Constructor Description FiftyOneInterceptor(FiftyOneInterceptorConfig config, PipelineResultService resultService, FlowDataProvider flowDataProvider, ClientsidePropertyService clientsidePropertyService, FiftyOneJSService fiftyOneJsService, UACHService uachService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex)static voidenableClientsideProperties(org.springframework.web.servlet.config.annotation.ViewControllerRegistry viewControllerRegistry)ClientsidePropertyServicegetClientsidePropertyService()booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
-
-
-
Constructor Detail
-
FiftyOneInterceptor
@Autowired public FiftyOneInterceptor(FiftyOneInterceptorConfig config, PipelineResultService resultService, FlowDataProvider flowDataProvider, ClientsidePropertyService clientsidePropertyService, FiftyOneJSService fiftyOneJsService, UACHService uachService) throws RuntimeException
- Throws:
RuntimeException
-
-
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:
preHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor- Overrides:
preHandlein classorg.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:
afterCompletionin interfaceorg.springframework.web.servlet.HandlerInterceptor- Overrides:
afterCompletionin classorg.springframework.web.servlet.handler.HandlerInterceptorAdapter- Throws:
Exception
-
getClientsidePropertyService
public ClientsidePropertyService getClientsidePropertyService()
-
-