org.mobicents.slee.sipevent.server.subscription
Interface EventListSubscriptionControlSbbLocalObject

All Superinterfaces:
EventListSubscriberParentSbbLocalObject, FlatListMakerParentSbbLocalObject, javax.slee.SbbLocalObject, org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

public interface EventListSubscriptionControlSbbLocalObject
extends org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject, FlatListMakerParentSbbLocalObject, EventListSubscriberParentSbbLocalObject


Method Summary
 boolean createSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
          Creates a new subscription to a resource list.
 void initRLSCache()
          Starts the RLS cache.
 void refreshSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
 void removeSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
 void setParentSbb(EventListSubscriptionControlParentSbbLocalObject sbbLocalObject)
          Used to set the call back sbb local object in the sbb implementing this interface.
 void shutdownRLSCache()
          Shuts down the RLS cache.
 int validateSubscribeRequest(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, javax.sip.RequestEvent event)
          Validates a subscribe request, which may be targeting at a resource list.
 
Methods inherited from interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject
attributeUpdated, deleteResponse, documentUpdated, elementUpdated, getResponse, putResponse
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface org.mobicents.slee.sipevent.server.subscription.FlatListMakerParentSbbLocalObject
flatListMade
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface org.mobicents.slee.sipevent.server.subscription.EventListSubscriberParentSbbLocalObject
getFlatList, getSubscription, notifyEventListSubscriber
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Method Detail

initRLSCache

void initRLSCache()
Starts the RLS cache.


shutdownRLSCache

void shutdownRLSCache()
Shuts down the RLS cache.


setParentSbb

void setParentSbb(EventListSubscriptionControlParentSbbLocalObject sbbLocalObject)
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(); EventListSbbLocalObject childSbb = (EventListSbbLocalObject) childRelation.create(); childSbb.setParentSbb( (EventListParentSbbLocalObject)this.getSbbContext().getSbbLocalObject());

Parameters:
parent -

validateSubscribeRequest

int validateSubscribeRequest(java.lang.String subscriber,
                             java.lang.String notifier,
                             java.lang.String eventPackage,
                             javax.sip.RequestEvent event)
Validates a subscribe request, which may be targeting at a resource list. If the notifier is a resource list then the request authorization is also done. If a SIP request event is provided it is validated according to RFC 4826 Section 4.5

Parameters:
event -
notifier -
subscriber -
eventPackage -
Returns:
status code to be returned in response of the request or 404 (NOT FOUND) if the notifier is not a resource list

createSubscription

boolean createSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Creates a new subscription to a resource list. The sbb will create all virtual subscriptions to each entry in the list and provide the event notifications.

Parameters:
subscription -
Returns:
true if subscription is created, false otherwise

refreshSubscription

void refreshSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Parameters:
subscription -

removeSubscription

void removeSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Parameters:
subscription -


Copyright © 2009. All Rights Reserved.