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 Details

    • PojoIntegrationObjectInterceptor

      public PojoIntegrationObjectInterceptor(@NotNull @NotNull IntegrationObjectService ios)
      Instantiates interceptor with the dependency on the IntegrationObjectService injected
      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:
      preHandle in interface org.springframework.web.servlet.HandlerInterceptor