public abstract class MessageSenderFactory
extends java.lang.Object
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 and Description |
|---|
MessageSenderFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract MessageSender |
createAdminMessageSender()
Creates a new administration message sender for communications via HCI to the administration services of a dispatcher instance.
|
abstract MessageSender |
createAdminMessageSender(java.lang.String instanceKey)
Creates a new administration message sender connected to an instance of the distant SAP CC Core Server system.
|
abstract MessageSender |
createMessageSender()
Creates a new message sender that will first connect to the
dispatcher instance of the system
then to the updater instance. |
abstract MessageSender |
createSimpleMessageSender()
Creates a new simple message sender without connecting to the distant SAP CC system.
|
abstract void |
init(java.util.Properties prop)
Initializes a
MessageSenderFactory from a set of properties. |
abstract void |
init(java.net.URL... dipatcherUrl)
Initializes a
MessageSenderFactory from the URL of a dispatcher instance of the distant SAP CC system. |
static MessageSenderFactory |
newInstance(java.util.Properties props)
Creates a new instance of
MessageSenderFactory using a
set of properties. |
void |
setXMLMapping(XMLMapping mapping)
Defines the
XML mapping for the message senders created through this
factory. |
public abstract void init(java.util.Properties prop)
throws BadConfigurationException
MessageSenderFactory from a set of properties.prop - The set of properties used to initialize this factoryBadConfigurationException - when properties are not correctpublic abstract void init(java.net.URL... dipatcherUrl)
throws BadConfigurationException
MessageSenderFactory from the URL of a dispatcher instance of the distant SAP CC system.dipatcherUrl - The set of dispatcher URLs used to initialize this factoryBadConfigurationException - when method parameters are not correctpublic abstract MessageSender createAdminMessageSender(java.lang.String instanceKey)
instanceKey - The identifier of the system instance which must be contactedpublic abstract MessageSender createAdminMessageSender()
public abstract MessageSender createMessageSender()
dispatcher instance of the system
then to the updater instance.public abstract MessageSender createSimpleMessageSender()
init(java.util.Properties)public void setXMLMapping(XMLMapping mapping)
XML mapping for the message senders created through this
factory.mapping - The XML mapping for the message senders created through this
factorypublic static MessageSenderFactory newInstance(java.util.Properties props) throws BadConfigurationException
MessageSenderFactory using a
set of properties.
This set of properties must at least contains a property
hci.sender_factory which must be the name of
a subclass of MessageSenderFactory.
The available message senders are:
com.highdeal.hci.http.HttpMessageSenderFactory
It can also contain the property
hci.xml_mapping which must be the name of
an implementation of XMLMapping.
The available mapping classes are:
The set of properties is also passed to the
init
method of the created MessageSenderFactory.
props - A set of propertiesMessageSenderFactoryBadConfigurationException - when the set of properties contains
bad configuration settings