|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.hci.MessageSenderFactory
public abstract class MessageSenderFactory
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.
| Field Summary | |
|---|---|
protected XMLMapping |
xmlMapping
The mapping used by message senders created through this factory |
| Constructor Summary | |
|---|---|
MessageSenderFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XMLMapping xmlMapping
| Constructor Detail |
|---|
public MessageSenderFactory()
| Method Detail |
|---|
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 factory
BadConfigurationException - when properties are not correct
public 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 factory
BadConfigurationException - when method parameters are not correctpublic abstract MessageSender createAdminMessageSender(java.lang.String instanceKey)
instanceKey - The identifier of the system instance which must be contacted
public 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
factory
public 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 properties
MessageSenderFactory
BadConfigurationException - when the set of properties contains
bad configuration settings
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||