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

All Superinterfaces:
javax.slee.SbbLocalObject

public interface ImplementedSubscriptionControlSbbLocalObject
extends javax.slee.SbbLocalObject


Method Summary
 java.lang.Object filterContentPerSubscriber(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.Object unmarshalledContent)
          Filters content per subscriber.
 java.lang.String[] getEventPackages()
          the event packages supported
 javax.xml.bind.Marshaller getMarshaller()
          Retrieves a JAXB Marshaller to convert a JAXBElement to a String.
 NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
          Retrieves the content for the NOTIFY request of the specified Subscription
 void isSubscriberAuthorized(java.lang.String subscriber, java.lang.String subscriberDisplayName, java.lang.String notifier, org.mobicents.slee.sipevent.server.subscription.pojo.SubscriptionKey key, int expires, java.lang.String content, java.lang.String contentType, java.lang.String contentSubtype, boolean eventList, javax.sip.ServerTransaction serverTransaction)
          Asks authorization to concrete implementation for new subscription request SUBSCRIBE.
 void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
          notifies the event package impl that a subscription is about to be removed, may have resources to releases
 void setParentSbb(ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
          Used to set the call back sbb local object in the sbb implementing this interface.
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Method Detail

setParentSbb

void setParentSbb(ImplementedSubscriptionControlParentSbbLocalObject 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(); ImplementedSubscriptionControlSbbLocalObject childSbb = (ImplementedSubscriptionControlSbbLocalObject) childRelation.create(); childSbb.setParentSbb( (ImplementedSubscriptionControlParentSbbLocalObject)this.getSbbContext().getSbbLocalObject());

Parameters:
parent -

isSubscriberAuthorized

void isSubscriberAuthorized(java.lang.String subscriber,
                            java.lang.String subscriberDisplayName,
                            java.lang.String notifier,
                            org.mobicents.slee.sipevent.server.subscription.pojo.SubscriptionKey key,
                            int expires,
                            java.lang.String content,
                            java.lang.String contentType,
                            java.lang.String contentSubtype,
                            boolean eventList,
                            javax.sip.ServerTransaction serverTransaction)
Asks authorization to concrete implementation for new subscription request SUBSCRIBE. This method is invoked from the abstract sip event subscription control to authorize a subscriber, the concrete implemeentation must then invoke newSubscriptionAuthorization(...) so the new subscription process is completed

Parameters:
eventList -
serverTransaction - in case it is a sip subscription the server transaction must be provided to be used later when providing the response

getNotifyContent

NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Retrieves the content for the NOTIFY request of the specified Subscription

Parameters:
subscription -
Returns:

filterContentPerSubscriber

java.lang.Object filterContentPerSubscriber(java.lang.String subscriber,
                                            java.lang.String notifier,
                                            java.lang.String eventPackage,
                                            java.lang.Object unmarshalledContent)
Filters content per subscriber.

Returns:
content filtered

getMarshaller

javax.xml.bind.Marshaller getMarshaller()
Retrieves a JAXB Marshaller to convert a JAXBElement to a String.

Returns:

removingSubscription

void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
notifies the event package impl that a subscription is about to be removed, may have resources to releases


getEventPackages

java.lang.String[] getEventPackages()
the event packages supported

Returns:


Copyright © 2009. All Rights Reserved.