org.mobicents.slee.sipevent.examples
Class RLSExampleSubscriberSbb
java.lang.Object
org.mobicents.slee.sipevent.examples.RLSExampleSubscriberSbb
- All Implemented Interfaces:
- javax.slee.Sbb, org.mobicents.slee.enabler.xdmc.XDMClientParent, RLSExampleSubscriber, SubscriptionClientControlParent
public abstract class RLSExampleSubscriberSbb
- extends java.lang.Object
- implements javax.slee.Sbb, RLSExampleSubscriber
- Author:
- Eduardo Martins
|
Method Summary |
void |
deleteResponse(java.net.URI uri,
int responseCode,
java.lang.String responseContent,
java.lang.String eTag)
|
protected RLSExampleSubscriberParentSbbLocalObject |
getParent()
|
void |
getResponse(java.net.URI uri,
int responseCode,
java.lang.String mimetype,
java.lang.String content,
java.lang.String eTag)
|
abstract org.mobicents.slee.ChildRelationExt |
getSubscriptionControlChildRelation()
|
abstract org.mobicents.slee.ChildRelationExt |
getXDMClientChildRelation()
|
void |
notifyEvent(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
Subscription.Event terminationReason,
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(java.net.URI uri,
int responseCode,
java.lang.String responseContent,
java.lang.String eTag)
|
void |
resubscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
resubscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
|
void |
resubscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires)
|
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 |
setSbbContext(javax.slee.SbbContext sbbContext)
Called when an sbb object is instantied and enters the pooled state. |
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 |
subscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
subscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
|
void |
subscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires,
int responseCode)
|
void |
subscriptionNotification(org.mobicents.slee.enabler.xdmc.jaxb.xcapdiff.XcapDiff arg0,
org.mobicents.slee.enabler.sip.SubscriptionStatus arg1)
|
void |
subscriptionTerminated(org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg0,
java.lang.String arg1,
org.mobicents.slee.enabler.sip.TerminationReason arg2)
|
void |
unsetSbbContext()
|
void |
unsubscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
|
void |
unsubscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
|
void |
unsubscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RLSExampleSubscriberSbb
public RLSExampleSubscriberSbb()
getSubscriptionControlChildRelation
public abstract org.mobicents.slee.ChildRelationExt getSubscriptionControlChildRelation()
getParent
protected RLSExampleSubscriberParentSbbLocalObject getParent()
getXDMClientChildRelation
public abstract org.mobicents.slee.ChildRelationExt getXDMClientChildRelation()
start
public void start(java.lang.String[] entryURIs)
- Description copied from interface:
RLSExampleSubscriber
- Creates resource list in xdm with the specified entries, then subscribes its uri
- Specified by:
start in interface RLSExampleSubscriber
putResponse
public void putResponse(java.net.URI uri,
int responseCode,
java.lang.String responseContent,
java.lang.String eTag)
- Specified by:
putResponse in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
subscribeOk
public void subscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires,
int responseCode)
- Specified by:
subscribeOk in interface SubscriptionClientControlParent
subscribeError
public void subscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
subscribeError in interface SubscriptionClientControlParent
notifyEvent
public void notifyEvent(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
Subscription.Event terminationReason,
Subscription.Status status,
java.lang.String content,
java.lang.String contentType,
java.lang.String contentSubtype)
- Specified by:
notifyEvent in interface SubscriptionClientControlParent
onTimerEvent
public void onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci)
resubscribeOk
public void resubscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int expires)
- Specified by:
resubscribeOk in interface SubscriptionClientControlParent
resubscribeError
public void resubscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
resubscribeError in interface SubscriptionClientControlParent
stop
public void stop()
- Description copied from interface:
RLSExampleSubscriber
- Unsubscribes resource list and removes it from the xdm
- Specified by:
stop in interface RLSExampleSubscriber
unsubscribeError
public void unsubscribeError(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId,
int error)
- Specified by:
unsubscribeError in interface SubscriptionClientControlParent
unsubscribeOk
public void unsubscribeOk(java.lang.String subscriber,
java.lang.String notifier,
java.lang.String eventPackage,
java.lang.String subscriptionId)
- Specified by:
unsubscribeOk in interface SubscriptionClientControlParent
deleteResponse
public void deleteResponse(java.net.URI uri,
int responseCode,
java.lang.String responseContent,
java.lang.String eTag)
- Specified by:
deleteResponse in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
getResponse
public void getResponse(java.net.URI uri,
int responseCode,
java.lang.String mimetype,
java.lang.String content,
java.lang.String eTag)
- Specified by:
getResponse in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
resubscribeFailed
public void resubscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
- Specified by:
resubscribeFailed in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
subscribeFailed
public void subscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
- Specified by:
subscribeFailed in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
subscriptionNotification
public void subscriptionNotification(org.mobicents.slee.enabler.xdmc.jaxb.xcapdiff.XcapDiff arg0,
org.mobicents.slee.enabler.sip.SubscriptionStatus arg1)
- Specified by:
subscriptionNotification in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
unsubscribeFailed
public void unsubscribeFailed(int arg0,
org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg1,
java.lang.String arg2)
- Specified by:
unsubscribeFailed in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
subscriptionTerminated
public void subscriptionTerminated(org.mobicents.slee.enabler.xdmc.XDMClientChildSbbLocalObject arg0,
java.lang.String arg1,
org.mobicents.slee.enabler.sip.TerminationReason arg2)
- Specified by:
subscriptionTerminated in interface org.mobicents.slee.enabler.xdmc.XDMClientParent
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 © 2011. All Rights Reserved.