Class InboundIntegrationObjectInterceptor
java.lang.Object
de.hybris.platform.odata2webservices.interceptor.InboundIntegrationObjectInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class InboundIntegrationObjectInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor
Intercepts requests into the application and verifies whether the URL contains correct reference to an existing integration object.
If the integration object specified in the URL does not exist, 404 Not Found is returned.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o, Exception e) protected StringextractCode(String pathInfo) protected IntegrationObjectServicevoidpostHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o, org.springframework.web.servlet.ModelAndView modelAndView) booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o) voidsetIntegrationObjectService(IntegrationObjectService flexibleSearch)
-
Constructor Details
-
InboundIntegrationObjectInterceptor
public InboundIntegrationObjectInterceptor()
-
-
Method Details
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o) throws IOException - Specified by:
preHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor- Throws:
IOException
-
postHandle
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o, org.springframework.web.servlet.ModelAndView modelAndView) - Specified by:
postHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor
-
afterCompletion
public void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object o, Exception e) - Specified by:
afterCompletionin interfaceorg.springframework.web.servlet.HandlerInterceptor
-
extractCode
-
getIntegrationObjectService
-
setIntegrationObjectService
-