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.OrderableInterceptor for personalization process called in Commerce Web Services (OCC)
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidafterVoteExecution(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Vote vote)Method called after final vote executiondefault voidbeforeGetVote(javax.servlet.http.HttpServletRequest request)Method called before voters will be asked about recalculation actionsdefault voidbeforeVoteExecution(javax.servlet.http.HttpServletRequest request, Vote vote)Method called before final vote will be executeddefault booleanshouldPersonalizeRequest(javax.servlet.http.HttpServletRequest request)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.default CxOccInterceptorVoteshouldPersonalizeRequestVote(javax.servlet.http.HttpServletRequest request)Method to determine if personalization process should be executed for this request
-
-
-
Method Detail
-
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 useshouldPersonalizeRequestVote(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 requestvote- 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 requestresponse- Http responsevote- final vote which was executed
-
-