|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthr.tis.mgw.client.common.AbstractManager2
hr.tis.mgw.client.message.MessageManager2
Message sending and receiving interface.
| Field Summary | |
static java.lang.String |
REG_ID_ANY
|
| Constructor Summary | |
MessageManager2()
|
|
| Method Summary | |
abstract void |
cancelMessageListenerRegistration(java.lang.String regId)
Cancel message listener defined with registration identifier. |
abstract DeliveryStatusInfo[] |
getMessageDeliveryStatus(MessageId mid)
Retrieve message delivery status information. |
abstract DeliveryStatusInfo[] |
getMessageDeliveryStatus(MessageId mid,
java.lang.String username,
java.lang.String password)
Retrieve message delivery status information. |
abstract ReceivedMms[] |
receiveMmsMessages(java.lang.String regId,
Priority priority)
Receive MMS messages and delivery reports. |
abstract ReceivedMms[] |
receiveMmsMessages(java.lang.String regId,
Priority priority,
java.lang.String username,
java.lang.String password)
Retrieve MMS messages. |
abstract ReceivedSms[] |
receiveSmsMessages(java.lang.String regId)
Retrieve SMS messages and delivery reports. |
abstract ReceivedSms[] |
receiveSmsMessages(java.lang.String regId,
java.lang.String username,
java.lang.String password)
Retrieve SMS messages. |
abstract void |
registerMessageListener(java.lang.String regId,
MessageListener2 listener)
Register message listener defined with registration identifier to asynchronously accept incoming messages. |
abstract void |
registerMessageListener(java.lang.String regId,
MessageListener2 listener,
java.lang.String username,
java.lang.String password)
Register message listener defined with registration identifier to asynchronously accept incoming messages. |
abstract MessageId |
sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
Send message from originator to array of destinations. |
abstract MessageId |
sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging,
java.lang.String username,
java.lang.String password)
Send message from originator to array of destinations. |
abstract SendResult |
sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
Send message from originator to array of destinations. |
abstract SendResult |
sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging,
java.lang.String username,
java.lang.String password)
Send message from originator to array of destinations. |
| Methods inherited from class hr.tis.mgw.client.common.AbstractManager2 |
getPassword, getServerURL, getTimeout, getUsername, isThreadedListener, setPassword, setServerURL, setThreadedListener, setTimeout, setUsername |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String REG_ID_ANY
| Constructor Detail |
public MessageManager2()
| Method Detail |
public abstract MessageId sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
throws GatewayException
Priority is used only for MmsMessage and ignored for all other message types.
Method returns MessageId object which can be used to obtain message delivery information.
To link charging with message sending use charging object returned after reserving currency.
The method throws generic GatewayException which is parent of specific exceptions for various reasons.
message - Message object to senddest - Destination array addressesorig - Originator addresspriority - Priority of messagecharging - Charging
GatewayException - Generic exception base class for all exceptions.MessageId,
Priority,
ChargingManager2,
Charging,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract MessageId sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging,
java.lang.String username,
java.lang.String password)
throws GatewayException
Priority is used only for MmsMessage and ignored for all other message types.
Method returns MessageId object which can be used to obtain message delivery information.
To link charging with message sending use charging object returned after reserving currency.
The method throws generic GatewayException which is parent of specific exceptions for various reasons.
message - Message object to senddest - Destination array addressesorig - Originator addresspriority - Priority of messagecharging - Chargingusername - Authentication usernamepassword - Authentication password
GatewayException - Generic exception base class for all exceptions.MessageId,
Priority,
ChargingManager2,
Charging,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract SendResult sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
throws GatewayException
Priority is used only for
MmsMessage and ignored for all other message types.
Method returns MessageId object which can be used to obtain message
delivery information.
To link charging with message sending use charging object returned after reserving currency.
The method throws generic GatewayException which is parent of specific
exceptions for various reasons.
This method uses a ParlayX extension interface and might not be available with some operators.
message - Message object to senddest - Destination array addressesorig - Originator addresspriority - Priority of messagecharging - Charging
GatewayException - Generic exception base class for all exceptions.SendResult,
Priority,
ChargingManager2,
Charging,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract SendResult sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging,
java.lang.String username,
java.lang.String password)
throws GatewayException
Priority is used only for
MmsMessage and ignored for all other message types.
Method returns MessageId object which can be used to obtain message
delivery information.
To link charging with message sending use charging object returned after reserving currency.
The method throws generic GatewayException which is parent of specific
exceptions for various reasons.
This method uses a ParlayX extension interface and might not be available with some operators.
message - Message object to senddest - Destination array addressesorig - Originator addresspriority - Priority of messagecharging - Chargingusername - Authentication usernamepassword - Authentication password
GatewayException - Generic exception base class for all exceptions.SendResult,
Priority,
ChargingManager2,
Charging,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract DeliveryStatusInfo[] getMessageDeliveryStatus(MessageId mid)
throws GatewayException
MessageId obtained after sending message to retrieve delivery status information.
To every address in destination array specified while sending message corresponds one delivery status information.
The method throws generic GatewayException which is parent of specific exceptions for various reasons.
mid - MessageId
GatewayException - Generic exception base class for all exceptions.MessageId,
DeliveryStatusInfo,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract DeliveryStatusInfo[] getMessageDeliveryStatus(MessageId mid,
java.lang.String username,
java.lang.String password)
throws GatewayException
MessageId obtained after sending message to retrieve delivery status information.
To every address in destination array specified while sending message corresponds one delivery status information.
The method throws generic GatewayException which is parent of specific exceptions for various reasons.
mid - MessageIdusername - Authentication usernamepassword - Authentication password
GatewayException - Generic exception base class for all exceptions.MessageId,
DeliveryStatusInfo,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract ReceivedSms[] receiveSmsMessages(java.lang.String regId)
throws GatewayException
Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
regId - registration identifier
GatewayException - Generic exception base class for all exceptions.MessageHelper,
ReceivedSms,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract ReceivedSms[] receiveSmsMessages(java.lang.String regId,
java.lang.String username,
java.lang.String password)
throws GatewayException
Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
regId - registration identifierusername - authentication usernamepassword - authentication password
GatewayException - Generic exception base class for all exceptions.MessageHelper,
ReceivedSms,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract ReceivedMms[] receiveMmsMessages(java.lang.String regId,
Priority priority)
throws GatewayException
MessageHelper to separate delivery reports
from messages.
regId - registration IDpriority - message priority
GatewayExceptionMessageHelper,
ReceivedMms,
Priority,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract ReceivedMms[] receiveMmsMessages(java.lang.String regId,
Priority priority,
java.lang.String username,
java.lang.String password)
throws GatewayException
Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
regId - registration identifierpriority - message priorityusername - authentication usernamepassword - authentication password
GatewayException - Generic exception base class for all exceptions.MessageHelper,
ReceivedMms,
Priority,
GatewayException,
hr.tis.mgw.client.exceptions
public abstract void registerMessageListener(java.lang.String regId,
MessageListener2 listener)
For details about registration process and restrictions check
MessageListener2 description.
regId - Registration Identifierlistener - Message listener accepting received messagesMessageListener2
public abstract void registerMessageListener(java.lang.String regId,
MessageListener2 listener,
java.lang.String username,
java.lang.String password)
For details about registration process and restrictions check
MessageListener2 description.
regId - Registration Identifierlistener - Message listener accepting received messagesusername - Authentication usernamepassword - Authentication passwordpublic abstract void cancelMessageListenerRegistration(java.lang.String regId)
regId - Registration Identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||