org.mobicents.slee.sipevent.server.publication
Interface ImplementedPublicationControl

All Known Subinterfaces:
ImplementedPublicationControlSbbLocalObject

public interface ImplementedPublicationControl

Author:
martins

Method Summary
 boolean acceptsContentType(java.lang.String eventPackage, javax.sip.header.ContentTypeHeader contentTypeHeader)
          Verifies if the specified content type header can be accepted for the specified event package.
 boolean authorizePublication(java.lang.String entity, java.lang.String eventPackage, org.w3c.dom.Document content)
          verifies if entity is authorized to publish the content
 javax.sip.header.Header getAcceptsHeader(java.lang.String eventPackage)
          Retrieves the accepted content types for the specified event package.
 Publication getAlternativeValueForExpiredPublication(Publication publication)
          Through this method the event package implementation sbb has a chance to define an alternative publication value for the one expired, this can allow a behavior such as defining offline status in a presence resource.
 java.lang.String[] getEventPackages()
          the impl class SIP event packages supported
 javax.xml.validation.Schema getSchema(java.lang.String eventPackage)
          Retrieves the schema needed to validate a publication content.
 StateComposer getStateComposer(java.lang.String eventPackage)
          Retrieves the StateComposer concrete impl, used to combine publications.
 boolean isResponsibleForResource(javax.sip.address.URI uri, java.lang.String eventPackage)
          Checks if this server is responsible for the resource publishing state.
 void notifySubscribers(ComposedPublication composedPublication)
          Notifies subscribers about a publication update for the specified entity regarding the specified event package.
 

Method Detail

getEventPackages

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

Returns:

acceptsContentType

boolean acceptsContentType(java.lang.String eventPackage,
                           javax.sip.header.ContentTypeHeader contentTypeHeader)
Verifies if the specified content type header can be accepted for the specified event package.

Parameters:
eventPackage -
contentTypeHeader -
Returns:

getAcceptsHeader

javax.sip.header.Header getAcceptsHeader(java.lang.String eventPackage)
Retrieves the accepted content types for the specified event package.

Parameters:
eventPackage -
Returns:

notifySubscribers

void notifySubscribers(ComposedPublication composedPublication)
Notifies subscribers about a publication update for the specified entity regarding the specified event package.

Parameters:
composedPublication -

getSchema

javax.xml.validation.Schema getSchema(java.lang.String eventPackage)
Retrieves the schema needed to validate a publication content.

Returns:

getStateComposer

StateComposer getStateComposer(java.lang.String eventPackage)
Retrieves the StateComposer concrete impl, used to combine publications.

Returns:

isResponsibleForResource

boolean isResponsibleForResource(javax.sip.address.URI uri,
                                 java.lang.String eventPackage)
Checks if this server is responsible for the resource publishing state.


authorizePublication

boolean authorizePublication(java.lang.String entity,
                             java.lang.String eventPackage,
                             org.w3c.dom.Document content)
verifies if entity is authorized to publish the content

Parameters:
entity -
content -
Returns:

getAlternativeValueForExpiredPublication

Publication getAlternativeValueForExpiredPublication(Publication publication)
Through this method the event package implementation sbb has a chance to define an alternative publication value for the one expired, this can allow a behavior such as defining offline status in a presence resource.

Parameters:
publication -
Returns:


Copyright © 2011. All Rights Reserved.