org.mobicents.slee.sippresence.server.subscription
Class PresenceSubscriptionControlSbb

java.lang.Object
  extended by org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb
      extended by org.mobicents.slee.sippresence.server.subscription.PresenceSubscriptionControlSbb
All Implemented Interfaces:
javax.slee.Sbb, javax.slee.SbbLocalObject, org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbbLocalObject, PresenceSubscriptionControlSbbLocalObject, PublishedSphereSource, org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

public abstract class PresenceSubscriptionControlSbb
extends org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb
implements PresenceSubscriptionControlSbbLocalObject

Subscription control sbb for a SIP Presence Server.

Author:
eduardomartins

Field Summary
 
Fields inherited from class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb
activityContextNamingfacility, addressFactory, context, headerFactory, messageFactory, sbbContext, sipActivityContextInterfaceFactory, sipProvider, timerFacility
 
Constructor Summary
PresenceSubscriptionControlSbb()
           
 
Method Summary
 void attributeUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, org.openxdm.xcap.common.uri.NodeSelector nodeSelector, org.openxdm.xcap.common.uri.AttributeSelector attributeSelector, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString, java.lang.String attributeValue)
           
 void authorizationChanged(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, int authorizationCode)
           
 void deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String tag)
           
 void documentUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString)
          a pres-rules doc subscribed was updated
 void elementUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, org.openxdm.xcap.common.uri.NodeSelector nodeSelector, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString, java.lang.String elementAsString)
           
protected  java.lang.Object filterContentPerSubscriber(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.Object unmarshalledContent)
           
abstract  java.util.Map getCombinedRules()
           
protected  java.lang.String getContactAddressString()
           
protected  java.lang.String[] getEventPackages()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
protected  org.apache.log4j.Logger getLogger()
           
protected  javax.xml.bind.Marshaller getMarshaller()
           
protected  org.mobicents.slee.sipevent.server.subscription.NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
 org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationChildSbb()
           
abstract  javax.slee.ChildRelation getPublicationControlChildRelation()
           
 void getResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String mimetype, java.lang.String content, java.lang.String tag)
          async get response from xdm client
 java.lang.String getSphere(java.lang.String notifier)
          interface used by rules processor to get sphere for a notifier
 javax.xml.bind.Unmarshaller getUnmarshaller()
           
 org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMChildSbb()
           
abstract  javax.slee.ChildRelation getXDMClientControlChildRelation()
           
protected  void isSubscriberAuthorized(javax.sip.RequestEvent event, java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String eventId, int expires)
           
 void newSubscriptionAuthorization(javax.sip.RequestEvent event, java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.String eventId, int expires, int responseCode)
           
 void putResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String tag)
           
protected  void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
abstract  void setCombinedRules(java.util.Map rules)
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
           
 
Methods inherited from class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb
getDefaultExpires, getDefaultWaitingExpires, getMaxExpires, getMaxForwards, getMinExpires, ies, notifySubscriber, notifySubscribers, onActivityEndEvent, onResponseClientErrorEvent, onResponseServerErrorEvent, onServiceStartedEvent, onSubscribeInDialog, onSubscribeOutOfDialog, onTimerEvent, sbbActivate, sbbCreate, sbbExceptionThrown, sbbLoad, sbbPassivate, sbbPostCreate, sbbRemove, sbbRolledBack, sbbStore, unsetSbbContext
 
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 org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbbLocalObject
notifySubscriber, notifySubscribers
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Constructor Detail

PresenceSubscriptionControlSbb

public PresenceSubscriptionControlSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext sbbContext)
Specified by:
setSbbContext in interface javax.slee.Sbb
Overrides:
setSbbContext in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getPublicationControlChildRelation

public abstract javax.slee.ChildRelation getPublicationControlChildRelation()

getPublicationChildSbb

public org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationChildSbb()
Specified by:
getPublicationChildSbb in interface PresenceSubscriptionControlSbbLocalObject

getXDMClientControlChildRelation

public abstract javax.slee.ChildRelation getXDMClientControlChildRelation()

getXDMChildSbb

public org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMChildSbb()
Specified by:
getXDMChildSbb in interface PresenceSubscriptionControlSbbLocalObject

setCombinedRules

public abstract void setCombinedRules(java.util.Map rules)
Specified by:
setCombinedRules in interface PresenceSubscriptionControlSbbLocalObject

getCombinedRules

public abstract java.util.Map getCombinedRules()
Specified by:
getCombinedRules in interface PresenceSubscriptionControlSbbLocalObject

getLogger

protected org.apache.log4j.Logger getLogger()
Overrides:
getLogger in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getHeaderFactory

public javax.sip.header.HeaderFactory getHeaderFactory()
Specified by:
getHeaderFactory in interface PresenceSubscriptionControlSbbLocalObject

authorizationChanged

public void authorizationChanged(java.lang.String subscriber,
                                 java.lang.String notifier,
                                 java.lang.String eventPackage,
                                 int authorizationCode)
Specified by:
authorizationChanged in interface PresenceSubscriptionControlSbbLocalObject
Overrides:
authorizationChanged in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

newSubscriptionAuthorization

public void newSubscriptionAuthorization(javax.sip.RequestEvent event,
                                         java.lang.String subscriber,
                                         java.lang.String notifier,
                                         java.lang.String eventPackage,
                                         java.lang.String eventId,
                                         int expires,
                                         int responseCode)
Specified by:
newSubscriptionAuthorization in interface PresenceSubscriptionControlSbbLocalObject
Overrides:
newSubscriptionAuthorization in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getContactAddressString

protected java.lang.String getContactAddressString()
Specified by:
getContactAddressString in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getEventPackages

protected java.lang.String[] getEventPackages()
Specified by:
getEventPackages in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

isSubscriberAuthorized

protected void isSubscriberAuthorized(javax.sip.RequestEvent event,
                                      java.lang.String subscriber,
                                      java.lang.String notifier,
                                      java.lang.String eventPackage,
                                      java.lang.String eventId,
                                      int expires)
Specified by:
isSubscriberAuthorized in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getResponse

public void getResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                        int responseCode,
                        java.lang.String mimetype,
                        java.lang.String content,
                        java.lang.String tag)
async get response from xdm client

Specified by:
getResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

removingSubscription

protected void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Specified by:
removingSubscription in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

documentUpdated

public void documentUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                            java.lang.String oldETag,
                            java.lang.String newETag,
                            java.lang.String documentAsString)
a pres-rules doc subscribed was updated

Specified by:
documentUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

attributeUpdated

public void attributeUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                             org.openxdm.xcap.common.uri.NodeSelector nodeSelector,
                             org.openxdm.xcap.common.uri.AttributeSelector attributeSelector,
                             java.util.Map<java.lang.String,java.lang.String> namespaces,
                             java.lang.String oldETag,
                             java.lang.String newETag,
                             java.lang.String documentAsString,
                             java.lang.String attributeValue)
Specified by:
attributeUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

elementUpdated

public void elementUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                           org.openxdm.xcap.common.uri.NodeSelector nodeSelector,
                           java.util.Map<java.lang.String,java.lang.String> namespaces,
                           java.lang.String oldETag,
                           java.lang.String newETag,
                           java.lang.String documentAsString,
                           java.lang.String elementAsString)
Specified by:
elementUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

getSphere

public java.lang.String getSphere(java.lang.String notifier)
interface used by rules processor to get sphere for a notifier

Specified by:
getSphere in interface PublishedSphereSource

getNotifyContent

protected org.mobicents.slee.sipevent.server.subscription.NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Specified by:
getNotifyContent in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

filterContentPerSubscriber

protected java.lang.Object filterContentPerSubscriber(java.lang.String subscriber,
                                                      java.lang.String notifier,
                                                      java.lang.String eventPackage,
                                                      java.lang.Object unmarshalledContent)
Specified by:
filterContentPerSubscriber in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getMarshaller

protected javax.xml.bind.Marshaller getMarshaller()
Specified by:
getMarshaller in class org.mobicents.slee.sipevent.server.subscription.SubscriptionControlSbb

getUnmarshaller

public javax.xml.bind.Unmarshaller getUnmarshaller()
Specified by:
getUnmarshaller in interface PresenceSubscriptionControlSbbLocalObject

deleteResponse

public void deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                           int responseCode,
                           java.lang.String tag)
Specified by:
deleteResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

putResponse

public void putResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                        int responseCode,
                        java.lang.String tag)
Specified by:
putResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject


Copyright © 2008. All Rights Reserved.