public class HLRClientImpl extends OneAPIBaseClientImpl implements HLRClient
CHARSET, JSON_CONTENT_TYPE, LOGGER, URL_ENCODED_CONTENT_TYPE| Constructor and Description |
|---|
HLRClientImpl(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPushHLRNotificationsListener(HLRNotificationsListener listener)
Add OneAPI PUSH 'HLR' Notifications listener and start push server simulator
|
RoamingNotification |
convertJsonToHLRNotificationExample(String json)
Convert JSON to HLR Notification
|
DeliveryReportSubscription[] |
getHLRDeliveryNotificationsSubscriptionsById(String subscriptionId)
Get HLR delivery notifications subscriptions by subscription id
|
List<HLRNotificationsListener> |
getHLRPushNotificationListeners()
Returns HLR Notifications PUSH Listeners list
|
Roaming |
queryHLR(String address)
Query the customer’s roaming status for a single network-connected mobile device and get HLR as the response
|
void |
queryHLR(String address,
String notifyURL)
Query the customer’s roaming status for a single network-connected mobile device and get HLR to the specified notify url
|
void |
queryHLR(String address,
String notifyURL,
String clientCorrelator,
String callbackData)
Query the customer’s roaming status for a single network-connected mobile device and get HLR to the specified notify url
|
void |
queryHLRAsync(String address,
ResponseListener<Roaming> responseListener)
Query asynchronously the customer’s roaming status for a single network-connected mobile device and get HLR as the response
|
void |
removeHLRDeliveryNotificationsSubscription(String subscriptionId)
Stop subscribing to HLR delivery notifications over OneAPI
|
void |
removePushHLRNotificationsListeners()
Remove PUSH HLR listeners and stop server
|
String |
subscribeToHLRDeliveryNotifications(SubscribeToHLRDeliveryNotificationsRequest subscribeToHLRDeliveryNotificationsRequest)
Start subscribing to HLR delivery notifications over OneAPI
|
convertJSONToObject, convertJSONToObject, encodeURLParam, executeMethod, executeMethod, executeMethodAsync, getConfiguration, getIdFromResourceUrlpublic HLRClientImpl(Configuration configuration)
public void queryHLR(String address, String notifyURL, String clientCorrelator, String callbackData)
queryHLR in interface HLRClientaddress - (mandatory) mobile device number being queriednotifyURL - (mandatory) URL to receive the roaming status asynchronouslyclientCorrelator - (optional) Active only if notifyURL is specified, otherwise ignored. Uniquely identifies this request. If there is a communication failure during the request, using the same clientCorrelator when retrying the request helps the operator to avoid call the same request twice.callbackData - (optional) Active only if notifyURL is specified, otherwise ignored. This is custom data to pass back in notification to notifyURL, so you can use it to identify the request or any other useful data, such as a function name.public void queryHLR(String address, String notifyURL)
public Roaming queryHLR(String address)
public void queryHLRAsync(String address, ResponseListener<Roaming> responseListener)
queryHLRAsync in interface HLRClientaddress - (mandatory) mobile device number being queriedresponseListener - (mandatory) method to call after receiving HLR responsepublic RoamingNotification convertJsonToHLRNotificationExample(String json)
convertJsonToHLRNotificationExample in interface HLRClientpublic String subscribeToHLRDeliveryNotifications(SubscribeToHLRDeliveryNotificationsRequest subscribeToHLRDeliveryNotificationsRequest)
subscribeToHLRDeliveryNotifications in interface HLRClientpublic DeliveryReportSubscription[] getHLRDeliveryNotificationsSubscriptionsById(String subscriptionId)
getHLRDeliveryNotificationsSubscriptionsById in interface HLRClientpublic void removeHLRDeliveryNotificationsSubscription(String subscriptionId)
removeHLRDeliveryNotificationsSubscription in interface HLRClientsubscriptionId - (mandatory) contains the subscriptionId of a previously created HLR delivery receipt subscriptionpublic void addPushHLRNotificationsListener(HLRNotificationsListener listener)
addPushHLRNotificationsListener in interface HLRClientpublic List<HLRNotificationsListener> getHLRPushNotificationListeners()
getHLRPushNotificationListeners in interface HLRClientpublic void removePushHLRNotificationsListeners()
removePushHLRNotificationsListeners in interface HLRClientCopyright © 2014. All rights reserved.