org.mobicents.slee.sippresence.client
Class InternalPresenceClientControlSbb

java.lang.Object
  extended by org.mobicents.slee.sippresence.client.InternalPresenceClientControlSbb
All Implemented Interfaces:
javax.slee.Sbb, javax.slee.SbbLocalObject, org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject, org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject, InternalPresenceClientControlSbbLocalObject, PresenceClientControlSbbLocalObject

public abstract class InternalPresenceClientControlSbb
extends java.lang.Object
implements javax.slee.Sbb, InternalPresenceClientControlSbbLocalObject


Constructor Summary
InternalPresenceClientControlSbb()
           
 
Method Summary
abstract  PresenceClientControlParentSbbLocalObject getParentSbbCMP()
           
abstract  javax.slee.ChildRelation getPublicationClientControlChildRelation()
           
abstract  org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject getPublicationClientControlChildSbbCMP()
           
abstract  javax.slee.ChildRelation getSubscriptionClientControlChildRelation()
           
abstract  org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlSbbLocalObject getSubscriptionClientControlChildSbbCMP()
           
 void modifyPublication(java.lang.Object requestId, java.lang.String entity, java.lang.String eTag, java.lang.String document, java.lang.String contentType, java.lang.String contentSubType, int expires)
          Modifies the publication identified by the specified Entity and ETag.
 void modifyPublicationError(java.lang.Object requestId, int error)
           
 void modifyPublicationOk(java.lang.Object requestId, java.lang.String eTag, int expires)
           
 void newPublication(java.lang.Object requestId, java.lang.String entity, java.lang.String document, java.lang.String contentType, java.lang.String contentSubType, int expires)
          Creates a new publication for the specified Entity.
 void newPublicationError(java.lang.Object requestId, int error)
           
 void newPublicationOk(java.lang.Object requestId, java.lang.String eTag, int expires)
           
 void newSubscription(java.lang.String subscriber, java.lang.String subscriberdisplayName, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int expires)
          Creates a subscription
 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 refreshPublication(java.lang.Object requestId, java.lang.String entity, java.lang.String eTag, int expires)
          Refreshes the publication identified by the specified Entity and ETag.
 void refreshPublicationError(java.lang.Object requestId, int error)
           
 void refreshPublicationOk(java.lang.Object requestId, java.lang.String eTag, int expires)
           
 void refreshSubscription(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int expires)
          Refreshes a subscription
 void removePublication(java.lang.Object requestId, java.lang.String entity, java.lang.String eTag)
          Removes the publication identified by the specified Entity and ETag.
 void removePublicationError(java.lang.Object requestId, int error)
           
 void removePublicationOk(java.lang.Object requestId)
           
 void removeSubscription(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId)
          Terminates a subscription.
 void resubscribeError(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int error)
           
 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 arg0, java.lang.Object arg1, javax.slee.ActivityContextInterface arg2)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext arg0)
           
 void sbbStore()
           
 void setParentSbb(PresenceClientControlParentSbbLocalObject parentSbb)
          Used to set the call back sbb local object in the sbb implementing this interface.
abstract  void setParentSbbCMP(PresenceClientControlParentSbbLocalObject parentSbb)
           
abstract  void setPublicationClientControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject value)
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
          Called when an sbb object is created and enters the pooled state.
abstract  void setSubscriptionClientControlChildSbbCMP(org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlSbbLocalObject value)
           
 void subscribeError(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int error)
           
 void subscribeOk(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int expires, int responseCode)
           
 void unsetSbbContext()
           
 void unsubscribeError(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String subscriptionId, int error)
           
 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
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Constructor Detail

InternalPresenceClientControlSbb

public InternalPresenceClientControlSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext sbbContext)
Called when an sbb object is created and enters the pooled state.

Specified by:
setSbbContext in interface javax.slee.Sbb

setParentSbb

public void setParentSbb(PresenceClientControlParentSbbLocalObject parentSbb)
Description copied from interface: PresenceClientControlSbbLocalObject
Used to set the call back sbb local object in the sbb implementing this interface. Must be used whenever a new object of this interface is created. An example: ChildRelation childRelation = getChildRelation(); PresenceClientControlSbbLocalObject childSbb = (PresenceClientControlSbbLocalObject) childRelation.create(); childSbb.setParentSbb( (PresenceClientControlParentSbbLocalObject)this.getSbbContext().getSbbLocalObject());

Specified by:
setParentSbb in interface PresenceClientControlSbbLocalObject

newPublication

public void newPublication(java.lang.Object requestId,
                           java.lang.String entity,
                           java.lang.String document,
                           java.lang.String contentType,
                           java.lang.String contentSubType,
                           int expires)
Description copied from interface: PresenceClientControlSbbLocalObject
Creates a new publication for the specified Entity.

Specified by:
newPublication in interface PresenceClientControlSbbLocalObject
Parameters:
requestId - an object that identifies the request, the child sbb will return it when providing the response
expires - the time in seconds, which the publication is valid

refreshPublication

public void refreshPublication(java.lang.Object requestId,
                               java.lang.String entity,
                               java.lang.String eTag,
                               int expires)
Description copied from interface: PresenceClientControlSbbLocalObject
Refreshes the publication identified by the specified Entity and ETag.

Specified by:
refreshPublication in interface PresenceClientControlSbbLocalObject
Parameters:
requestId - an object that identifies the request, the child sbb will return it when providing the response
expires - the time in seconds, which the publication is valid

modifyPublication

public void modifyPublication(java.lang.Object requestId,
                              java.lang.String entity,
                              java.lang.String eTag,
                              java.lang.String document,
                              java.lang.String contentType,
                              java.lang.String contentSubType,
                              int expires)
Description copied from interface: PresenceClientControlSbbLocalObject
Modifies the publication identified by the specified Entity and ETag.

Specified by:
modifyPublication in interface PresenceClientControlSbbLocalObject
Parameters:
requestId - an object that identifies the request, the child sbb will return it when providing the response
expires - the time in seconds, which the publication is valid

removePublication

public void removePublication(java.lang.Object requestId,
                              java.lang.String entity,
                              java.lang.String eTag)
Description copied from interface: PresenceClientControlSbbLocalObject
Removes the publication identified by the specified Entity and ETag.

Specified by:
removePublication in interface PresenceClientControlSbbLocalObject
Parameters:
requestId - an object that identifies the request, the child sbb will return it when providing the response

newSubscription

public void newSubscription(java.lang.String subscriber,
                            java.lang.String subscriberdisplayName,
                            java.lang.String notifier,
                            java.lang.String eventPackage,
                            java.lang.String subscriptionId,
                            int expires)
Description copied from interface: PresenceClientControlSbbLocalObject
Creates a subscription

Specified by:
newSubscription in interface PresenceClientControlSbbLocalObject
eventPackage - only event packages "presence" and "presence.winfo" may be supported by the presence server

refreshSubscription

public void refreshSubscription(java.lang.String subscriber,
                                java.lang.String notifier,
                                java.lang.String eventPackage,
                                java.lang.String subscriptionId,
                                int expires)
Description copied from interface: PresenceClientControlSbbLocalObject
Refreshes a subscription

Specified by:
refreshSubscription in interface PresenceClientControlSbbLocalObject
eventPackage - only event packages "presence" and "presence.winfo" may be supported by the presence server

removeSubscription

public void removeSubscription(java.lang.String subscriber,
                               java.lang.String notifier,
                               java.lang.String eventPackage,
                               java.lang.String subscriptionId)
Description copied from interface: PresenceClientControlSbbLocalObject
Terminates a subscription.

Specified by:
removeSubscription in interface PresenceClientControlSbbLocalObject
eventPackage - only event packages "presence" and "presence.winfo" may be supported by the presence server

newPublicationOk

public void newPublicationOk(java.lang.Object requestId,
                             java.lang.String eTag,
                             int expires)
                      throws java.lang.Exception
Specified by:
newPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

newPublicationError

public void newPublicationError(java.lang.Object requestId,
                                int error)
Specified by:
newPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

refreshPublicationOk

public void refreshPublicationOk(java.lang.Object requestId,
                                 java.lang.String eTag,
                                 int expires)
                          throws java.lang.Exception
Specified by:
refreshPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

refreshPublicationError

public void refreshPublicationError(java.lang.Object requestId,
                                    int error)
Specified by:
refreshPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

modifyPublicationOk

public void modifyPublicationOk(java.lang.Object requestId,
                                java.lang.String eTag,
                                int expires)
                         throws java.lang.Exception
Specified by:
modifyPublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

modifyPublicationError

public void modifyPublicationError(java.lang.Object requestId,
                                   int error)
Specified by:
modifyPublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

removePublicationOk

public void removePublicationOk(java.lang.Object requestId)
                         throws java.lang.Exception
Specified by:
removePublicationOk in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject
Throws:
java.lang.Exception

removePublicationError

public void removePublicationError(java.lang.Object requestId,
                                   int error)
Specified by:
removePublicationError in interface org.mobicents.slee.sipevent.server.publication.PublicationClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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 org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

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.sipevent.server.subscription.SubscriptionClientControlParentSbbLocalObject

setParentSbbCMP

public abstract void setParentSbbCMP(PresenceClientControlParentSbbLocalObject parentSbb)

getParentSbbCMP

public abstract PresenceClientControlParentSbbLocalObject getParentSbbCMP()

getPublicationClientControlChildSbbCMP

public abstract org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject getPublicationClientControlChildSbbCMP()

setPublicationClientControlChildSbbCMP

public abstract void setPublicationClientControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationClientControlSbbLocalObject value)

getPublicationClientControlChildRelation

public abstract javax.slee.ChildRelation getPublicationClientControlChildRelation()

getSubscriptionClientControlChildSbbCMP

public abstract org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlSbbLocalObject getSubscriptionClientControlChildSbbCMP()

setSubscriptionClientControlChildSbbCMP

public abstract void setSubscriptionClientControlChildSbbCMP(org.mobicents.slee.sipevent.server.subscription.SubscriptionClientControlSbbLocalObject value)

getSubscriptionClientControlChildRelation

public abstract javax.slee.ChildRelation getSubscriptionClientControlChildRelation()

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate 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

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception arg0,
                               java.lang.Object arg1,
                               javax.slee.ActivityContextInterface arg2)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbLoad

public void sbbLoad()
Specified by:
sbbLoad in interface javax.slee.Sbb

sbbPassivate

public void sbbPassivate()
Specified by:
sbbPassivate in interface javax.slee.Sbb

sbbPostCreate

public void sbbPostCreate()
                   throws javax.slee.CreateException
Specified by:
sbbPostCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove in interface javax.slee.Sbb

sbbRolledBack

public void sbbRolledBack(javax.slee.RolledBackContext arg0)
Specified by:
sbbRolledBack in interface javax.slee.Sbb

sbbStore

public void sbbStore()
Specified by:
sbbStore in interface javax.slee.Sbb

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext in interface javax.slee.Sbb


Copyright © 2009. All Rights Reserved.