|
||||||||||
| 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
hr.tis.mgw.client.message.MessageManager2Impl
Implementation of MessageManager2 that uses Axis SOAP library for communication
with mGw Parlay X web services.
You have to specify Service URL to communicate with mGw Parlay X web services.
Specify username and password as default values when authenticating to mGw. If specified every method call that don't have username and password parameters will use them for authentication. If not specified exception will be thrown since authentication to mGw is required.
MessageManager2Impl is configured with URL of single mGw server and can communicate with single server.
Multiple MessageManager2Impl instances can be created in application, for instance if partner wants to communicate with multiple servers, hosted at different OPCOs.
| Field Summary |
| Fields inherited from class hr.tis.mgw.client.message.MessageManager2 |
REG_ID_ANY |
| Constructor Summary | |
MessageManager2Impl()
|
|
MessageManager2Impl(java.lang.String serviceURL)
|
|
MessageManager2Impl(java.lang.String serviceURL,
java.lang.String username,
java.lang.String password)
|
|
| Method Summary | |
void |
cancelMessageListenerRegistration(java.lang.String regId)
Cancel message listener defined with registration identifier. |
DeliveryStatusInfo[] |
getMessageDeliveryStatus(MessageId mid)
Retrieve message delivery status information. |
DeliveryStatusInfo[] |
getMessageDeliveryStatus(MessageId mid,
java.lang.String username,
java.lang.String password)
Retrieve message delivery status information. |
void |
notifyLongSmsReception(java.lang.String registrationIdentifier,
java.lang.String smsServiceActivationNumber,
java.lang.String senderAddress,
java.lang.String message,
int sarMsgRefNum,
int sarTotalSegments,
int sarSegmentSeqNum)
|
void |
notifyMessageReception(java.lang.String registrationIdentifier,
org.csapi.www.schema.parlayx.mm.v1_0.MessageRef messageRef)
|
void |
notifySmsReception(java.lang.String registrationIdentifier,
java.lang.String smsServiceActivationNumber,
org.csapi.www.schema.parlayx.common.v1_0.EndUserIdentifier senderAddress,
java.lang.String message)
|
ReceivedMms[] |
receiveMmsMessages(java.lang.String regId,
Priority priority)
Receive MMS messages and delivery reports. |
ReceivedMms[] |
receiveMmsMessages(java.lang.String regId,
Priority priority,
java.lang.String username,
java.lang.String password)
Retrieve MMS messages. |
ReceivedSms[] |
receiveSmsMessages(java.lang.String regId)
Retrieve SMS messages and delivery reports. |
ReceivedSms[] |
receiveSmsMessages(java.lang.String regId,
java.lang.String username,
java.lang.String password)
Retrieve SMS messages. |
void |
registerMessageListener(java.lang.String regId,
MessageListener2 listener)
Register message listener defined with registration identifier to asynchronously accept incoming messages. |
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. |
MessageId |
sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
Send message from originator to array of destinations. |
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. |
SendResult |
sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
Send message from originator to array of destinations. |
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 |
| Constructor Detail |
public MessageManager2Impl()
public MessageManager2Impl(java.lang.String serviceURL)
public MessageManager2Impl(java.lang.String serviceURL,
java.lang.String username,
java.lang.String password)
| Method Detail |
public DeliveryStatusInfo[] getMessageDeliveryStatus(MessageId mid)
throws GatewayException
MessageManager2MessageId 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.
getMessageDeliveryStatus in class MessageManager2mid - MessageId
GatewayException - Generic exception base class for all exceptions.MessageId,
DeliveryStatusInfo,
GatewayException,
hr.tis.mgw.client.exceptions
public DeliveryStatusInfo[] getMessageDeliveryStatus(MessageId mid,
java.lang.String username,
java.lang.String password)
throws GatewayException
MessageManager2MessageId 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.
getMessageDeliveryStatus in class MessageManager2mid - MessageIdusername - Authentication usernamepassword - Authentication password
GatewayException - Generic exception base class for all exceptions.MessageId,
DeliveryStatusInfo,
GatewayException,
hr.tis.mgw.client.exceptions
public ReceivedSms[] receiveSmsMessages(java.lang.String regId)
throws GatewayException
MessageManager2Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
receiveSmsMessages in class MessageManager2regId - registration identifier
GatewayException - Generic exception base class for all exceptions.MessageHelper,
ReceivedSms,
GatewayException,
hr.tis.mgw.client.exceptions
public ReceivedSms[] receiveSmsMessages(java.lang.String regId,
java.lang.String username,
java.lang.String password)
throws GatewayException
MessageManager2Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
receiveSmsMessages in class MessageManager2regId - registration identifierusername - authentication usernamepassword - authentication password
GatewayException - Generic exception base class for all exceptions.MessageHelper,
ReceivedSms,
GatewayException,
hr.tis.mgw.client.exceptions
public ReceivedMms[] receiveMmsMessages(java.lang.String regId,
Priority priority)
throws GatewayException
MessageManager2MessageHelper to separate delivery reports
from messages.
receiveMmsMessages in class MessageManager2regId - registration IDpriority - message priority
GatewayExceptionMessageHelper,
ReceivedMms,
Priority,
GatewayException,
hr.tis.mgw.client.exceptions
public ReceivedMms[] receiveMmsMessages(java.lang.String regId,
Priority priority,
java.lang.String username,
java.lang.String password)
throws GatewayException
MessageManager2Note that some of the messages might be delivery reports. Use MessageHelper to separate delivery
reports from messages.
receiveMmsMessages in class MessageManager2regId - 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 MessageId sendMessage(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
throws GatewayException
MessageManager2Priority 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.
sendMessage in class MessageManager2message - 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 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
MessageManager2Priority 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.
sendMessage in class MessageManager2message - 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 SendResult sendMessageWithResult(Message message,
java.lang.String[] dest,
java.lang.String orig,
Priority priority,
Charging charging)
throws GatewayException
MessageManager2Priority 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.
sendMessageWithResult in class MessageManager2message - 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 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
MessageManager2Priority 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.
sendMessageWithResult in class MessageManager2message - 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 void registerMessageListener(java.lang.String regId,
MessageListener2 listener)
MessageManager2For details about registration process and restrictions check
MessageListener2 description.
registerMessageListener in class MessageManager2regId - Registration Identifierlistener - Message listener accepting received messagesMessageListener2
public void registerMessageListener(java.lang.String regId,
MessageListener2 listener,
java.lang.String username,
java.lang.String password)
MessageManager2For details about registration process and restrictions check
MessageListener2 description.
registerMessageListener in class MessageManager2regId - Registration Identifierlistener - Message listener accepting received messagesusername - Authentication usernamepassword - Authentication passwordpublic void cancelMessageListenerRegistration(java.lang.String regId)
MessageManager2
cancelMessageListenerRegistration in class MessageManager2regId - Registration Identifier
public void notifySmsReception(java.lang.String registrationIdentifier,
java.lang.String smsServiceActivationNumber,
org.csapi.www.schema.parlayx.common.v1_0.EndUserIdentifier senderAddress,
java.lang.String message)
throws java.rmi.RemoteException,
org.csapi.www.wsdl.parlayx.sms.v1_0.notification.ApplicationException
notifySmsReception in interface org.csapi.www.wsdl.parlayx.sms.v1_0.notification.SmsNotificationPortjava.rmi.RemoteException
org.csapi.www.wsdl.parlayx.sms.v1_0.notification.ApplicationException
public void notifyMessageReception(java.lang.String registrationIdentifier,
org.csapi.www.schema.parlayx.mm.v1_0.MessageRef messageRef)
throws java.rmi.RemoteException,
org.csapi.www.wsdl.parlayx.mm.v1_0.notification.ApplicationException
notifyMessageReception in interface org.csapi.www.wsdl.parlayx.mm.v1_0.notification.MmNotificationPortjava.rmi.RemoteException
org.csapi.www.wsdl.parlayx.mm.v1_0.notification.ApplicationException
public void notifyLongSmsReception(java.lang.String registrationIdentifier,
java.lang.String smsServiceActivationNumber,
java.lang.String senderAddress,
java.lang.String message,
int sarMsgRefNum,
int sarTotalSegments,
int sarSegmentSeqNum)
throws java.rmi.RemoteException
notifyLongSmsReception in interface hr.kapsch.wsdl.parlayx.v1_0.notification.NotificationExtensionPortjava.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||