Package com.highdeal.hci
Class MessageSenderFactory
java.lang.Object
com.highdeal.hci.MessageSenderFactory
- Direct Known Subclasses:
HttpMessageSenderFactory
This
abstract Java class defines a factory API that enables your client applications (using
the HCI technical interface) to create a
message sender object; Consult the subclasses that extend this Java class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MessageSenderCreates a new administration message sender for communications via HCI to the administration services of a dispatcher instance.abstract MessageSendercreateAdminMessageSender(String instanceKey) Creates a new administration message sender connected to an instance of the distant SAP CC Core Server system.abstract MessageSenderCreates a new message sender that will first connect to thedispatcher instanceof the system then to theupdater instance.abstract MessageSenderCreates a new simple message sender without connecting to the distant SAP CC system.abstract voidInitializes aMessageSenderFactoryfrom the URL of a dispatcher instance of the distant SAP CC system.abstract voidinit(Properties prop) Initializes aMessageSenderFactoryfrom a set of properties.static MessageSenderFactorynewInstance(Properties props) Creates a new instance ofMessageSenderFactoryusing a set of properties.voidsetXMLMapping(XMLMapping mapping) Defines theXML mappingfor the message senders created through this factory.
-
Constructor Details
-
MessageSenderFactory
public MessageSenderFactory()
-
-
Method Details
-
init
Initializes aMessageSenderFactoryfrom a set of properties.- Parameters:
prop- The set of properties used to initialize this factory- Throws:
BadConfigurationException- when properties are not correct
-
init
Initializes aMessageSenderFactoryfrom the URL of a dispatcher instance of the distant SAP CC system.- Parameters:
dipatcherUrl- The set of dispatcherURLsused to initialize this factory- Throws:
BadConfigurationException- when method parameters are not correct
-
createAdminMessageSender
Creates a new administration message sender connected to an instance of the distant SAP CC Core Server system.- Parameters:
instanceKey- The identifier of the system instance which must be contacted- Returns:
- A new message sender for administration services
-
createAdminMessageSender
Creates a new administration message sender for communications via HCI to the administration services of a dispatcher instance.- Returns:
- A new message sender for administration services
-
createMessageSender
Creates a new message sender that will first connect to thedispatcher instanceof the system then to theupdater instance.- Returns:
- A new message sender
-
createSimpleMessageSender
Creates a new simple message sender without connecting to the distant SAP CC system.- Returns:
- A new simple message sender to be initialized (see
init(java.util.Properties)
-
setXMLMapping
Defines theXML mappingfor the message senders created through this factory.- Parameters:
mapping- The XML mapping for the message senders created through this factory
-
newInstance
Creates a new instance ofMessageSenderFactoryusing a set of properties.This set of properties must at least contains a property
hci.sender_factorywhich must be the name of a subclass of MessageSenderFactory.The available message senders are:
com.highdeal.hci.http.HttpMessageSenderFactoryIt can also contain the property
hci.xml_mappingwhich must be the name of an implementation of XMLMapping.The available mapping classes are:
The set of properties is also passed to the- com.highdeal.pnr.hci.PnRXMLMapping
- com.highdeal.components.generic.model.GenericComponentsXMLMapping
- com.highdeal.components.advanced.model.AdvancedComponentsXMLMapping
initmethod of the created MessageSenderFactory.- Parameters:
props- A set of properties- Returns:
- A new instance of
MessageSenderFactory - Throws:
BadConfigurationException- when the set of properties contains bad configuration settings
-