org.mobicents.slee.sippresence.server.publication
Class PresencePublicationControlSbb

java.lang.Object
  extended by org.mobicents.slee.sippresence.server.publication.PresencePublicationControlSbb
All Implemented Interfaces:
javax.slee.Sbb, ImplementedPublicationControl, PresencePublicationControlSbbInterface

public abstract class PresencePublicationControlSbb
extends java.lang.Object
implements javax.slee.Sbb, PresencePublicationControlSbbInterface

Publication control implementation child sbb that transforms the sip event framework in the PUBLISH interface of a SIP Presence Server.

Author:
eduardomartins

Constructor Summary
PresencePublicationControlSbb()
           
 
Method Summary
 boolean acceptsContentType(java.lang.String eventPackage, javax.sip.header.ContentTypeHeader contentTypeHeader)
           
 boolean authorizePublication(java.lang.String entity, java.lang.String eventPackage, org.w3c.dom.Document content)
           
 javax.sip.header.Header getAcceptsHeader(java.lang.String eventPackage)
           
 Publication getAlternativeValueForExpiredPublication(Publication publication)
           
 java.lang.String[] getEventPackages()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
 ImplementedSubscriptionControlParent getPresenceSubscriptionControl()
           
abstract  org.mobicents.slee.ChildRelationExt getPresenceSubscriptionControlChildRelation()
           
 javax.xml.validation.Schema getSchema(java.lang.String eventPackage)
           
 StateComposer getStateComposer(java.lang.String eventPackage)
           
 boolean isResponsibleForResource(javax.sip.address.URI uri, java.lang.String eventPackage)
           
 void notifySubscribers(ComposedPublication composedPublication)
           
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception arg0, java.lang.Object arg1, javax.slee.ActivityContextInterface arg2)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext arg0)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
          SbbObject's context setting
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresencePublicationControlSbb

public PresencePublicationControlSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext sbbContext)
SbbObject's context setting

Specified by:
setSbbContext in interface javax.slee.Sbb

getHeaderFactory

public javax.sip.header.HeaderFactory getHeaderFactory()
                                                throws javax.naming.NamingException
Specified by:
getHeaderFactory in interface PresencePublicationControlSbbInterface
Throws:
javax.naming.NamingException

getPresenceSubscriptionControlChildRelation

public abstract org.mobicents.slee.ChildRelationExt getPresenceSubscriptionControlChildRelation()

getPresenceSubscriptionControl

public ImplementedSubscriptionControlParent getPresenceSubscriptionControl()
Specified by:
getPresenceSubscriptionControl in interface PresencePublicationControlSbbInterface

getEventPackages

public java.lang.String[] getEventPackages()
Specified by:
getEventPackages in interface ImplementedPublicationControl

notifySubscribers

public void notifySubscribers(ComposedPublication composedPublication)
Specified by:
notifySubscribers in interface ImplementedPublicationControl

authorizePublication

public boolean authorizePublication(java.lang.String entity,
                                    java.lang.String eventPackage,
                                    org.w3c.dom.Document content)
Specified by:
authorizePublication in interface ImplementedPublicationControl

acceptsContentType

public boolean acceptsContentType(java.lang.String eventPackage,
                                  javax.sip.header.ContentTypeHeader contentTypeHeader)
Specified by:
acceptsContentType in interface ImplementedPublicationControl

getAcceptsHeader

public javax.sip.header.Header getAcceptsHeader(java.lang.String eventPackage)
Specified by:
getAcceptsHeader in interface ImplementedPublicationControl

getSchema

public javax.xml.validation.Schema getSchema(java.lang.String eventPackage)
Specified by:
getSchema in interface ImplementedPublicationControl

getStateComposer

public StateComposer getStateComposer(java.lang.String eventPackage)
Specified by:
getStateComposer in interface ImplementedPublicationControl

getAlternativeValueForExpiredPublication

public Publication getAlternativeValueForExpiredPublication(Publication publication)
Specified by:
getAlternativeValueForExpiredPublication in interface ImplementedPublicationControl

isResponsibleForResource

public boolean isResponsibleForResource(javax.sip.address.URI uri,
                                        java.lang.String eventPackage)
Specified by:
isResponsibleForResource in interface ImplementedPublicationControl

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate in interface javax.slee.Sbb

sbbCreate

public void sbbCreate()
               throws javax.slee.CreateException
Specified by:
sbbCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception arg0,
                               java.lang.Object arg1,
                               javax.slee.ActivityContextInterface arg2)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbLoad

public void sbbLoad()
Specified by:
sbbLoad in interface javax.slee.Sbb

sbbPassivate

public void sbbPassivate()
Specified by:
sbbPassivate in interface javax.slee.Sbb

sbbPostCreate

public void sbbPostCreate()
                   throws javax.slee.CreateException
Specified by:
sbbPostCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove in interface javax.slee.Sbb

sbbRolledBack

public void sbbRolledBack(javax.slee.RolledBackContext arg0)
Specified by:
sbbRolledBack in interface javax.slee.Sbb

sbbStore

public void sbbStore()
Specified by:
sbbStore in interface javax.slee.Sbb

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext in interface javax.slee.Sbb


Copyright © 2011. All Rights Reserved.