public class InboundServiceImpl extends Object implements InboundService
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,InboundErrorHandler> |
inboundErrorHandlers |
protected Map<String,InboundStatusHandler> |
inboundStatusHandlers |
| Constructor and Description |
|---|
InboundServiceImpl(List<InboundStatusHandler> inboundStatusHandlers,
List<InboundErrorHandler> inboundErrorHandlers) |
| Modifier and Type | Method and Description |
|---|---|
InboundErrorHandler |
getErrorHandler(String externalSystemId)
Get the inbound error handler responsible for the given
externalSystemId. |
InboundStatusHandler |
getStatusHandler(String externalSystemId)
Get the inbound status handler responsible for the given
externalSystemId. |
protected final Map<String,InboundStatusHandler> inboundStatusHandlers
protected final Map<String,InboundErrorHandler> inboundErrorHandlers
public InboundServiceImpl(List<InboundStatusHandler> inboundStatusHandlers, List<InboundErrorHandler> inboundErrorHandlers)
public InboundStatusHandler getStatusHandler(String externalSystemId)
InboundServiceexternalSystemId.
If there is no status handler then either a default one should be returned
or an exception thrown.getStatusHandler in interface InboundServiceexternalSystemId - the id of the external systemnullpublic InboundErrorHandler getErrorHandler(String externalSystemId)
InboundServiceexternalSystemId.
If there is no error handler then either a default one should be returned
or an exception thrown.getErrorHandler in interface InboundServiceexternalSystemId - the id of the external systemnullCopyright © 2019. All rights reserved.