Interface CxOccInterceptor

All Superinterfaces:
org.springframework.integration.context.Orderable, org.springframework.core.Ordered
All Known Implementing Classes:
AbstractCxOccInterceptor, CdsCxOccInterceptor, DefaultCxOccInterceptor, PreviewTicketCxOccInterceptor

public interface CxOccInterceptor extends org.springframework.integration.context.Orderable
Interceptor for personalization process called in Commerce Web Services (OCC)
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    afterVoteExecution(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Vote vote)
    Method called after final vote execution
    default void
    beforeGetVote(javax.servlet.http.HttpServletRequest request)
    Method called before voters will be asked about recalculation actions
    default void
    beforeVoteExecution(javax.servlet.http.HttpServletRequest request, Vote vote)
    Method called before final vote will be executed
    default boolean
    shouldPersonalizeRequest(javax.servlet.http.HttpServletRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 1905.
    shouldPersonalizeRequestVote(javax.servlet.http.HttpServletRequest request)
    Method to determine if personalization process should be executed for this request

    Methods inherited from interface org.springframework.integration.context.Orderable

    setOrder

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • shouldPersonalizeRequest

      @Deprecated(since="1905", forRemoval=true) default boolean shouldPersonalizeRequest(javax.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1905. Please use shouldPersonalizeRequestVote(HttpServletRequest) instead.
      Method to determine if personalization process should be executed for this request
      Parameters:
      request - Http request
      Returns:
      true - when personalization process should be continued
      false - when personalization process should be omitted
    • shouldPersonalizeRequestVote

      default CxOccInterceptorVote shouldPersonalizeRequestVote(javax.servlet.http.HttpServletRequest request)
      Method to determine if personalization process should be executed for this request
      Parameters:
      request - Http request
      Returns:
      CxOccInterceptorVote - vote with information if personalization process should be continued
    • beforeGetVote

      default void beforeGetVote(javax.servlet.http.HttpServletRequest request)
      Method called before voters will be asked about recalculation actions
      Parameters:
      request - Http request
    • beforeVoteExecution

      default void beforeVoteExecution(javax.servlet.http.HttpServletRequest request, Vote vote)
      Method called before final vote will be executed
      Parameters:
      request - Http request
      vote - Final vote which will be executed
    • afterVoteExecution

      default void afterVoteExecution(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Vote vote)
      Method called after final vote execution
      Parameters:
      request - Http request
      response - Http response
      vote - final vote which was executed