public abstract class XDMClientChildSbb extends Object implements javax.slee.Sbb, XDMClientChild, org.mobicents.slee.enabler.sip.SubscriptionClientParent
| Modifier and Type | Field and Description |
|---|---|
static org.mobicents.slee.enabler.sip.ContentType[] |
ACCEPTED_CONTENT_TYPES |
static org.mobicents.slee.enabler.sip.ContentType |
CONTENT_TYPE |
static String |
EVENT_PACKAGE |
static org.mobicents.slee.enabler.sip.EventPackageParameter[] |
EVENT_PARAMETERS |
protected org.mobicents.slee.SbbContextExt |
sbbContext |
protected XCAPClientActivityContextInterfaceFactory |
xcapClientACIF |
protected XCAPClientResourceAdaptorSbbInterface |
xcapClientSbbInterface |
| Constructor and Description |
|---|
XDMClientChildSbb() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(URI uri,
org.restcomm.xcap.client.auth.Credentials credentials)
Deletes the content related the specified XCAP URI.
|
void |
delete(URI uri,
String assertedUserId)
Deletes the content related the specified XCAP URI.
|
void |
deleteIfMatch(URI uri,
String eTag,
org.restcomm.xcap.client.auth.Credentials credentials)
Deletes the content related the specified XCAP URI, if the specified
ETag matches the current one on the server.
|
void |
deleteIfMatch(URI uri,
String eTag,
String assertedUserId)
Deletes the content related the specified XCAP URI, if the specified
ETag matches the current one on the server.
|
void |
deleteIfNoneMatch(URI uri,
String eTag,
org.restcomm.xcap.client.auth.Credentials credentials)
Deletes the content related the specified XCAP URI, if the specified
ETag does not matches the current one on the server.
|
void |
deleteIfNoneMatch(URI uri,
String eTag,
String assertedUserId)
Deletes the content related the specified XCAP URI, if the specified
ETag does not matches the current one on the server.
|
void |
get(URI uri,
org.restcomm.xcap.client.auth.Credentials credentials)
Retrieves the XML resource from the XCAP server, for the specified uri.
|
void |
get(URI uri,
String assertedUserId)
Retrieves the XML resource from the XCAP server, for the specified uri.
|
org.restcomm.xcap.client.auth.CredentialsFactory |
getCredentialsFactory()
Retrieves the factory to create request authentication credentials.
|
protected XDMClientParentSbbLocalObject |
getParent() |
abstract org.mobicents.slee.ChildRelationExt |
getSubscriptionClientChildSbbChildRelation() |
void |
onDeleteResponseEvent(ResponseEvent event,
javax.slee.ActivityContextInterface aci)
Handles XCAP DELETE response events.
|
void |
onGetResponseEvent(ResponseEvent event,
javax.slee.ActivityContextInterface aci)
Handles XCAP GET response events.
|
void |
onNotify(org.mobicents.slee.enabler.sip.Notify ntfy,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild) |
void |
onPutResponseEvent(ResponseEvent event,
javax.slee.ActivityContextInterface aci)
Handles XCAP PUT response events.
|
void |
put(URI uri,
String mimetype,
byte[] content,
org.restcomm.xcap.client.auth.Credentials credentials)
Puts the specified content in the XCAP Server.
|
void |
put(URI uri,
String mimetype,
byte[] content,
String assertedUserId)
Puts the specified content in the XCAP Server.
|
void |
putIfMatch(URI uri,
String eTag,
String mimetype,
byte[] content,
org.restcomm.xcap.client.auth.Credentials credentials)
Puts the specified content in the XCAP Server, if the specified ETag matches the current one on the server.
|
void |
putIfMatch(URI uri,
String eTag,
String mimetype,
byte[] content,
String assertedUserId)
Puts the specified content in the XCAP Server, if the specified ETag matches the current one on the server.
|
void |
putIfNoneMatch(URI uri,
String eTag,
String mimetype,
byte[] content,
org.restcomm.xcap.client.auth.Credentials credentials)
Puts the specified content in the XCAP Server, if the specified ETag does not matches the current one on the
server.
|
void |
putIfNoneMatch(URI uri,
String eTag,
String mimetype,
byte[] content,
String assertedUserId)
Puts the specified content in the XCAP Server, if the specified ETag does not matches the current one on the
server.
|
void |
resubscribeFailed(int responseCode,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild) |
void |
sbbActivate() |
void |
sbbCreate() |
void |
sbbExceptionThrown(Exception arg0,
Object arg1,
javax.slee.ActivityContextInterface arg2) |
void |
sbbLoad() |
void |
sbbPassivate() |
void |
sbbPostCreate() |
void |
sbbRemove() |
void |
sbbRolledBack(javax.slee.RolledBackContext arg0) |
void |
sbbStore() |
void |
setSbbContext(javax.slee.SbbContext sbbContext) |
void |
subscribe(String subscriber,
String notifier,
int expires,
String[] resourceURIs)
Method which triggers subscription to changes in XDMS resources.
|
void |
subscribeFailed(int responseCode,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild) |
void |
unsetSbbContext() |
void |
unsubscribe(String subscriber,
String notifier)
Terminates a subscription to changes in XDMS resources.
|
void |
unsubscribeFailed(int arg0,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild) |
protected org.mobicents.slee.SbbContextExt sbbContext
protected XCAPClientResourceAdaptorSbbInterface xcapClientSbbInterface
protected XCAPClientActivityContextInterfaceFactory xcapClientACIF
public static final org.mobicents.slee.enabler.sip.ContentType CONTENT_TYPE
public static final org.mobicents.slee.enabler.sip.ContentType[] ACCEPTED_CONTENT_TYPES
public static final String EVENT_PACKAGE
public static final org.mobicents.slee.enabler.sip.EventPackageParameter[] EVENT_PARAMETERS
public org.restcomm.xcap.client.auth.CredentialsFactory getCredentialsFactory()
XDMClientChildgetCredentialsFactory in interface XDMClientChildpublic void delete(URI uri, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChilddelete in interface XDMClientChilduri - the request uricredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void delete(URI uri, String assertedUserId) throws IOException
XDMClientChilddelete in interface XDMClientChilduri - the request uriassertedUserId - user id already authenticatedIOExceptionpublic void deleteIfMatch(URI uri, String eTag, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChilddeleteIfMatch in interface XDMClientChilduri - the request uricredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void deleteIfMatch(URI uri, String eTag, String assertedUserId) throws IOException
XDMClientChilddeleteIfMatch in interface XDMClientChilduri - the request uriassertedUserId - user id already authenticatedIOExceptionpublic void deleteIfNoneMatch(URI uri, String eTag, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChilddeleteIfNoneMatch in interface XDMClientChilduri - the request uricredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void deleteIfNoneMatch(URI uri, String eTag, String assertedUserId) throws IOException
XDMClientChilddeleteIfNoneMatch in interface XDMClientChilduri - the request uriassertedUserId - user id already authenticatedIOExceptionpublic void get(URI uri, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChildget in interface XDMClientChilduri - the request uricredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void get(URI uri, String assertedUserId) throws IOException
XDMClientChildget in interface XDMClientChilduri - the request uriassertedUserId - user id already authenticatedIOExceptionpublic void put(URI uri, String mimetype, byte[] content, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChildput in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.credentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void put(URI uri, String mimetype, byte[] content, String assertedUserId) throws IOException
XDMClientChildput in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.assertedUserId - user id already authenticatedIOExceptionpublic void putIfMatch(URI uri, String eTag, String mimetype, byte[] content, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChildputIfMatch in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.credentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void putIfMatch(URI uri, String eTag, String mimetype, byte[] content, String assertedUserId) throws IOException
XDMClientChildputIfMatch in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.assertedUserId - user id already authenticatedIOExceptionpublic void putIfNoneMatch(URI uri, String eTag, String mimetype, byte[] content, org.restcomm.xcap.client.auth.Credentials credentials) throws IOException
XDMClientChildputIfNoneMatch in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.credentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic void putIfNoneMatch(URI uri, String eTag, String mimetype, byte[] content, String assertedUserId) throws IOException
XDMClientChildputIfNoneMatch in interface XDMClientChilduri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.assertedUserId - user id already authenticatedIOExceptionprotected XDMClientParentSbbLocalObject getParent()
public void onDeleteResponseEvent(ResponseEvent event, javax.slee.ActivityContextInterface aci)
event - aci - public void onGetResponseEvent(ResponseEvent event, javax.slee.ActivityContextInterface aci)
event - aci - public void onPutResponseEvent(ResponseEvent event, javax.slee.ActivityContextInterface aci)
event - aci - public void subscribe(String subscriber, String notifier, int expires, String[] resourceURIs) throws org.mobicents.slee.enabler.sip.SubscriptionException
XDMClientChildsubscribe in interface XDMClientChildsubscriber - - address that identifies local entitynotifier - - address that identifies the resource being subscribed (ie. XCAP Diff entity), ie. sip:tests@xcap.example.comexpires - - duration of subscription, in seconds.resourceURIs - - array of resource uris to which enabler will subscribe, ie. String{}[resource-lists/users/sip:joe@example.com/index,rls-services/users/sip:joe@example.com/index/~~/*\/service%5b@uri='sip:marketing@example.com'%5d]org.mobicents.slee.enabler.sip.SubscriptionExceptionpublic void unsubscribe(String subscriber, String notifier)
XDMClientChildunsubscribe in interface XDMClientChildpublic void onNotify(org.mobicents.slee.enabler.sip.Notify ntfy,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild)
onNotify in interface org.mobicents.slee.enabler.sip.SubscriptionClientParentpublic void resubscribeFailed(int responseCode,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild)
resubscribeFailed in interface org.mobicents.slee.enabler.sip.SubscriptionClientParentpublic void subscribeFailed(int responseCode,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild)
subscribeFailed in interface org.mobicents.slee.enabler.sip.SubscriptionClientParentpublic void unsubscribeFailed(int arg0,
org.mobicents.slee.enabler.sip.SubscriptionClientChildSbbLocalObject subscriptionChild)
unsubscribeFailed in interface org.mobicents.slee.enabler.sip.SubscriptionClientParentpublic abstract org.mobicents.slee.ChildRelationExt getSubscriptionClientChildSbbChildRelation()
public void sbbActivate()
sbbActivate in interface javax.slee.Sbbpublic void sbbCreate()
throws javax.slee.CreateException
sbbCreate in interface javax.slee.Sbbjavax.slee.CreateExceptionpublic void sbbExceptionThrown(Exception arg0, Object arg1, javax.slee.ActivityContextInterface arg2)
sbbExceptionThrown in interface javax.slee.Sbbpublic void sbbLoad()
sbbLoad in interface javax.slee.Sbbpublic void sbbPassivate()
sbbPassivate in interface javax.slee.Sbbpublic void sbbPostCreate()
throws javax.slee.CreateException
sbbPostCreate in interface javax.slee.Sbbjavax.slee.CreateExceptionpublic void sbbRemove()
sbbRemove in interface javax.slee.Sbbpublic void sbbRolledBack(javax.slee.RolledBackContext arg0)
sbbRolledBack in interface javax.slee.Sbbpublic void sbbStore()
sbbStore in interface javax.slee.Sbbpublic void setSbbContext(javax.slee.SbbContext sbbContext)
setSbbContext in interface javax.slee.Sbbpublic void unsetSbbContext()
unsetSbbContext in interface javax.slee.SbbCopyright © 2017. All rights reserved.