public class DCDPMessageExchangeDelegate extends Object implements eu.toop.connector.api.as4.IMessageExchangeSPI
This class delegates to an underlying IMessageExchangeSPI implementation
that is configured with respect to the toop-simulator.mockGateway configuration.
If the toop-simulator.mockGateway==true then the gateway communication simulated
and an instance of MockDCDPMessageExchange is used,
otherwise (toop-simulator.mockGateway==true) then the message exchange communication
is not simulated and an instance of DefaultMessageExchangeSPI is used.
In the latter case, the communication with a gateway is configured with the key
toop.mem.as4.endpoint and all
the toop.mem.as4.* configurations (see toop-connector.properties) become significant.
Another important point for the latter case is that; the discovery data will have to be realistic as well. You should not use fake certificates, and the CName property of the x509 certificate has to be compatible with the gateway party id. Please see more on toop wiki
| Constructor and Description |
|---|
DCDPMessageExchangeDelegate()
Create a new DCDPMessageExchangeDelegate.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getID()
Since the id mem-default is already taken, we cannot provide it for the second time.
|
void |
registerIncomingHandler(javax.servlet.ServletContext servletContext,
eu.toop.connector.api.as4.IMEIncomingHandler imeIncomingHandler) |
void |
sendDCOutgoing(eu.toop.connector.api.as4.IMERoutingInformation imeRoutingInformation,
eu.toop.connector.api.as4.MEMessage meMessage) |
void |
sendDPOutgoing(eu.toop.connector.api.as4.IMERoutingInformation imeRoutingInformation,
eu.toop.connector.api.as4.MEMessage meMessage) |
void |
shutdown(javax.servlet.ServletContext servletContext) |
public DCDPMessageExchangeDelegate()
@Nonempty @Nonnull public String getID()
getID in interface eu.toop.connector.api.as4.IMessageExchangeSPIpublic void registerIncomingHandler(@Nonnull javax.servlet.ServletContext servletContext, @Nonnull eu.toop.connector.api.as4.IMEIncomingHandler imeIncomingHandler) throws eu.toop.connector.api.as4.MEException
registerIncomingHandler in interface eu.toop.connector.api.as4.IMessageExchangeSPIeu.toop.connector.api.as4.MEExceptionpublic void sendDCOutgoing(@Nonnull eu.toop.connector.api.as4.IMERoutingInformation imeRoutingInformation, @Nonnull eu.toop.connector.api.as4.MEMessage meMessage) throws eu.toop.connector.api.as4.MEException
sendDCOutgoing in interface eu.toop.connector.api.as4.IMessageExchangeSPIeu.toop.connector.api.as4.MEExceptionpublic void sendDPOutgoing(@Nonnull eu.toop.connector.api.as4.IMERoutingInformation imeRoutingInformation, @Nonnull eu.toop.connector.api.as4.MEMessage meMessage) throws eu.toop.connector.api.as4.MEException
sendDPOutgoing in interface eu.toop.connector.api.as4.IMessageExchangeSPIeu.toop.connector.api.as4.MEExceptionpublic void shutdown(@Nonnull javax.servlet.ServletContext servletContext)
shutdown in interface eu.toop.connector.api.as4.IMessageExchangeSPICopyright © 2019–2020 toop.eu. All rights reserved.