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)
InboundService
externalSystemId
.
If there is no status handler then either a default one should be returned
or an exception thrown.getStatusHandler
in interface InboundService
externalSystemId
- the id of the external systemnull
public InboundErrorHandler getErrorHandler(String externalSystemId)
InboundService
externalSystemId
.
If there is no error handler then either a default one should be returned
or an exception thrown.getErrorHandler
in interface InboundService
externalSystemId
- the id of the external systemnull
Copyright © 2019. All rights reserved.