public class DefaultRequestProcessChain<RESOURCE> extends java.lang.Object implements ConfigurableRequestProcessChain<RESOURCE>
RequestProcessor starting from list
processors. Every RequestProcessor itself decides if it want to fire the successor.ConfigurableRequestProcessChain.RequestExecution| Constructor and Description |
|---|
DefaultRequestProcessChain() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(RequestProcessor.RequestType type,
java.lang.Object dto,
AbstractResponseBuilder<RESOURCE,?,?> result,
ConfigurableRequestProcessChain.RequestExecution execution)
Configuration method called inside
AbstractResource should be called before RequestProcessChain.doProcess(). |
void |
doProcess()
Method to perform the next element in the chain implementation
DefaultRequestProcessChain from inside of
the
RequestProcessor.doProcess(de.hybris.platform.webservices.processor.RequestProcessor.RequestType, Object, de.hybris.platform.webservices.AbstractResponseBuilder, RequestProcessChain)
. |
void |
setProcessors(java.util.List<RequestProcessor<RESOURCE>> processors) |
public void configure(RequestProcessor.RequestType type, java.lang.Object dto, AbstractResponseBuilder<RESOURCE,?,?> result, ConfigurableRequestProcessChain.RequestExecution execution)
ConfigurableRequestProcessChainAbstractResource should be called before RequestProcessChain.doProcess().
Initializes the chain instance with required in current context - request type, passed in DTO ,
AbstractResponseBuilder and ConfigurableRequestProcessChain.RequestExecution - for the proper chain processing.configure in interface ConfigurableRequestProcessChain<RESOURCE>public void setProcessors(java.util.List<RequestProcessor<RESOURCE>> processors)
public void doProcess()
RequestProcessChainDefaultRequestProcessChain from inside of
the
RequestProcessor.doProcess(de.hybris.platform.webservices.processor.RequestProcessor.RequestType, Object, de.hybris.platform.webservices.AbstractResponseBuilder, RequestProcessChain)
.doProcess in interface RequestProcessChainCopyright © 2018 SAP SE. All Rights Reserved.