Class PojoIntegrationObjectInterceptor
java.lang.Object
de.hybris.platform.odata2webservices.interceptor.PojoIntegrationObjectInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class PojoIntegrationObjectInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor
An interceptor that intercepts requests and checks
if
IntegrationObjectModel contains IntegrationObjectClassModels, the interceptor only
allows GET metadata request to proceed; otherwise an exception will be thrown.
If IntegrationObjectModel doesn't contain IntegrationObjectClassModel, the interceptor allows all requests to proceed.-
Constructor Summary
ConstructorsConstructorDescriptionPojoIntegrationObjectInterceptor(@NotNull IntegrationObjectService ios) Instantiates interceptor with the dependency on theIntegrationObjectServiceinjected -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion, postHandle
-
Constructor Details
-
PojoIntegrationObjectInterceptor
Instantiates interceptor with the dependency on theIntegrationObjectServiceinjected- Parameters:
ios- to find the integration object
-
-
Method Details
-
preHandle
public boolean preHandle(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, @Nonnull Object o) - Specified by:
preHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor
-