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

All Known Subinterfaces:
ImplementedSubscriptionControlSbbLocalObject

public interface ImplementedSubscriptionControl

Author:
martins

Method Summary
 boolean acceptsEventList()
          Indicates if the implementation accepts event lists, that is, if it makes sense to act as a RLS.
 java.lang.Object filterContentPerSubscriber(Subscription subscription, java.lang.Object unmarshalledContent)
          Filters content per subscriber.
 java.lang.String[] getEventPackages()
          the event packages supported
 NotifyContent getNotifyContent(Subscription subscription)
          Retrieves the content for the NOTIFY request of the specified Subscription.
 void isSubscriberAuthorized(java.lang.String subscriber, java.lang.String subscriberDisplayName, Notifier notifier, 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(Subscription subscription)
          notifies the event package impl that a subscription is about to be removed, may have resources to releases
 

Method Detail

isSubscriberAuthorized

void isSubscriberAuthorized(java.lang.String subscriber,
                            java.lang.String subscriberDisplayName,
                            Notifier notifier,
                            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(Subscription subscription)
Retrieves the content for the NOTIFY request of the specified Subscription. This assumes the returned result is filtered if there was any rules that applies to the subscription.

Parameters:
subscription -
Returns:

filterContentPerSubscriber

java.lang.Object filterContentPerSubscriber(Subscription subscription,
                                            java.lang.Object unmarshalledContent)
Filters content per subscriber.

Returns:
content filtered

removingSubscription

void removingSubscription(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:

acceptsEventList

boolean acceptsEventList()
Indicates if the implementation accepts event lists, that is, if it makes sense to act as a RLS.

Returns:


Copyright © 2011. All Rights Reserved.