org.mobicents.slee.sipevent.examples
Class RLSExampleSubscriberSbb
java.lang.Object
org.mobicents.slee.sipevent.examples.RLSExampleSubscriberSbb
- All Implemented Interfaces:
- javax.slee.Sbb, javax.slee.SbbLocalObject, RLSExampleSubscriberSbbLocalObject, org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject, org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject
public abstract class RLSExampleSubscriberSbb
- extends java.lang.Object
- implements javax.slee.Sbb, RLSExampleSubscriberSbbLocalObject
- Author:
- Eduardo Martins
|
Method Summary |
void |
deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key,
int responseCode,
java.lang.String responseContent,
java.lang.String tag)
|
abstract RLSExampleSubscriberParentSbbLocalObject |
getParentSbbCMP()
|
abstract javax.slee.ChildRelation |
getPresenceClientControlSbbChildRelation()
|
abstract org.mobicents.slee.sippresence.client.PresenceClientControlSbbLocalObject |
getPresenceClientControlSbbCMP()
|
abstract javax.slee.ChildRelation |
getXDMClientControlChildRelation()
|
abstract org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject |
getXDMClientControlChildSbbCMP()
|
org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject |
getXDMClientControlSbb()
|
void |
newSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
newSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires,
int responseCode)
|
void |
notifyEvent(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
org.mobicents.slee.sipevent.server.subscription.pojo.Subscription.Event terminationReason,
org.mobicents.slee.sipevent.server.subscription.pojo.Subscription.Status status,
java.lang.String content,
java.lang.String contentType,
java.lang.String contentSubtype)
|
void |
onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci)
|
void |
putResponse(org.openxdm.xcap.common.key.XcapUriKey key,
int responseCode,
java.lang.String responseContent,
java.lang.String tag)
|
void |
refreshSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
refreshSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires)
|
void |
removeSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
removeSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId)
|
void |
sbbActivate()
|
void |
sbbCreate()
|
void |
sbbExceptionThrown(java.lang.Exception exception,
java.lang.Object event,
javax.slee.ActivityContextInterface activity)
|
void |
sbbLoad()
|
void |
sbbPassivate()
|
void |
sbbPostCreate()
|
void |
sbbRemove()
|
void |
sbbRolledBack(javax.slee.RolledBackContext sbbRolledBack)
|
void |
sbbStore()
|
void |
setParentSbb(RLSExampleSubscriberParentSbbLocalObject parentSbb)
Stores the parent sbb local object, to be used on callbacks |
abstract void |
setParentSbbCMP(RLSExampleSubscriberParentSbbLocalObject value)
|
abstract void |
setPresenceClientControlSbbCMP(org.mobicents.slee.sippresence.client.PresenceClientControlSbbLocalObject value)
|
void |
setSbbContext(javax.slee.SbbContext sbbContext)
Called when an sbb object is instantied and enters the pooled state. |
abstract void |
setXDMClientControlChildSbbCMP(org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject value)
|
void |
start(java.lang.String[] entryURIs)
Creates resource list in xdm with the specified entries, then subscribes its uri |
void |
stop()
Unsubscribes resource list and removes it from the xdm |
void |
unsetSbbContext()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject |
modifyPublicationError, modifyPublicationOk, newPublicationError, newPublicationOk, refreshPublicationError, refreshPublicationOk, removePublicationError, removePublicationOk |
| Methods inherited from interface javax.slee.SbbLocalObject |
getSbbPriority, isIdentical, remove, setSbbPriority |
| Methods inherited from interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject |
attributeUpdated, documentUpdated, elementUpdated, getResponse |
| Methods inherited from interface javax.slee.SbbLocalObject |
getSbbPriority, isIdentical, remove, setSbbPriority |
RLSExampleSubscriberSbb
public RLSExampleSubscriberSbb()
getPresenceClientControlSbbChildRelation
public abstract javax.slee.ChildRelation getPresenceClientControlSbbChildRelation()
getPresenceClientControlSbbCMP
public abstract org.mobicents.slee.sippresence.client.PresenceClientControlSbbLocalObject getPresenceClientControlSbbCMP()
setPresenceClientControlSbbCMP
public abstract void setPresenceClientControlSbbCMP(org.mobicents.slee.sippresence.client.PresenceClientControlSbbLocalObject value)
getXDMClientControlChildRelation
public abstract javax.slee.ChildRelation getXDMClientControlChildRelation()
getXDMClientControlChildSbbCMP
public abstract org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlChildSbbCMP()
setXDMClientControlChildSbbCMP
public abstract void setXDMClientControlChildSbbCMP(org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject value)
getXDMClientControlSbb
public org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlSbb()
setParentSbbCMP
public abstract void setParentSbbCMP(RLSExampleSubscriberParentSbbLocalObject value)
getParentSbbCMP
public abstract RLSExampleSubscriberParentSbbLocalObject getParentSbbCMP()
setParentSbb
public void setParentSbb(RLSExampleSubscriberParentSbbLocalObject parentSbb)
- Description copied from interface:
RLSExampleSubscriberSbbLocalObject
- Stores the parent sbb local object, to be used on callbacks
- Specified by:
setParentSbb in interface RLSExampleSubscriberSbbLocalObject
start
public void start(java.lang.String[] entryURIs)
- Description copied from interface:
RLSExampleSubscriberSbbLocalObject
- Creates resource list in xdm with the specified entries, then subscribes its uri
- Specified by:
start in interface RLSExampleSubscriberSbbLocalObject
putResponse
public void putResponse(org.openxdm.xcap.common.key.XcapUriKey key,
int responseCode,
java.lang.String responseContent,
java.lang.String tag)
- Specified by:
putResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject
newSubscriptionOk
public void newSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires,
int responseCode)
- Specified by:
newSubscriptionOk in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
newSubscriptionError
public void newSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
newSubscriptionError in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
notifyEvent
public void notifyEvent(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
org.mobicents.slee.sipevent.server.subscription.pojo.Subscription.Event terminationReason,
org.mobicents.slee.sipevent.server.subscription.pojo.Subscription.Status status,
java.lang.String content,
java.lang.String contentType,
java.lang.String contentSubtype)
- Specified by:
notifyEvent in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
onTimerEvent
public void onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci)
refreshSubscriptionOk
public void refreshSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires)
- Specified by:
refreshSubscriptionOk in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
refreshSubscriptionError
public void refreshSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
refreshSubscriptionError in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
stop
public void stop()
- Description copied from interface:
RLSExampleSubscriberSbbLocalObject
- Unsubscribes resource list and removes it from the xdm
- Specified by:
stop in interface RLSExampleSubscriberSbbLocalObject
removeSubscriptionError
public void removeSubscriptionError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
removeSubscriptionError in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
removeSubscriptionOk
public void removeSubscriptionOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId)
- Specified by:
removeSubscriptionOk in interface org.mobicents.slee.sippresence.client.PresenceClientControlParentSbbLocalObject
deleteResponse
public void deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key,
int responseCode,
java.lang.String responseContent,
java.lang.String tag)
- Specified by:
deleteResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject
setSbbContext
public void setSbbContext(javax.slee.SbbContext sbbContext)
- Called when an sbb object is instantied and enters the pooled state.
- Specified by:
setSbbContext in interface javax.slee.Sbb
unsetSbbContext
public void unsetSbbContext()
- Specified by:
unsetSbbContext in interface javax.slee.Sbb
sbbCreate
public void sbbCreate()
throws javax.slee.CreateException
- Specified by:
sbbCreate in interface javax.slee.Sbb
- Throws:
javax.slee.CreateException
sbbPostCreate
public void sbbPostCreate()
throws javax.slee.CreateException
- Specified by:
sbbPostCreate in interface javax.slee.Sbb
- Throws:
javax.slee.CreateException
sbbActivate
public void sbbActivate()
- Specified by:
sbbActivate in interface javax.slee.Sbb
sbbPassivate
public void sbbPassivate()
- Specified by:
sbbPassivate in interface javax.slee.Sbb
sbbRemove
public void sbbRemove()
- Specified by:
sbbRemove in interface javax.slee.Sbb
sbbLoad
public void sbbLoad()
- Specified by:
sbbLoad in interface javax.slee.Sbb
sbbStore
public void sbbStore()
- Specified by:
sbbStore in interface javax.slee.Sbb
sbbExceptionThrown
public void sbbExceptionThrown(java.lang.Exception exception,
java.lang.Object event,
javax.slee.ActivityContextInterface activity)
- Specified by:
sbbExceptionThrown in interface javax.slee.Sbb
sbbRolledBack
public void sbbRolledBack(javax.slee.RolledBackContext sbbRolledBack)
- Specified by:
sbbRolledBack in interface javax.slee.Sbb
Copyright © 2009. All Rights Reserved.