org.mobicents.slee.examples.callcontrol.common
Class SubscriptionProfileSbb

java.lang.Object
  extended by org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
All Implemented Interfaces:
javax.slee.Sbb

public abstract class SubscriptionProfileSbb
extends java.lang.Object
implements javax.slee.Sbb

Base SBB offering profile lookup funcationality

Author:
torosvi, iivanov

Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
SubscriptionProfileSbb()
           
 
Method Summary
 javax.slee.InitialEventSelector callIDSelect(javax.slee.InitialEventSelector ies)
           
protected  javax.sip.address.AddressFactory getAddressFactory()
           
abstract  CallControlProfileCMP getCallControlProfileCMP(javax.slee.profile.ProfileID profileID)
           
protected  javax.sip.message.MessageFactory getMessageFactory()
           
protected  javax.slee.profile.ProfileFacility getProfileFacility()
           
protected  javax.slee.SbbContext getSbbContext()
           
protected  javax.slee.SbbLocalObject getSbbLocalObject()
           
protected  net.java.slee.resource.sip.SleeSipProvider getSipFactoryProvider()
           
protected  CallControlProfileCMP lookup(javax.slee.Address address)
          Looking up the called user data -> First we need a Profile CMP object to access them.
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception exception, java.lang.Object event, javax.slee.ActivityContextInterface aci)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext context)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext context)
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected transient org.apache.log4j.Logger log
Constructor Detail

SubscriptionProfileSbb

public SubscriptionProfileSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext context)
Specified by:
setSbbContext in interface javax.slee.Sbb

lookup

protected CallControlProfileCMP lookup(javax.slee.Address address)
Looking up the called user data -> First we need a Profile CMP object to access them.

Parameters:
address: - Called user address.
Returns:
CallControlProfileCMP: The SBB uses the returned Profile CMP object to access the attributes of the Profile identified by the profileID.

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext 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

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

sbbPassivate

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

sbbActivate

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

sbbLoad

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

sbbStore

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

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception exception,
                               java.lang.Object event,
                               javax.slee.ActivityContextInterface aci)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbRolledBack

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

getSbbContext

protected final javax.slee.SbbContext getSbbContext()

getProfileFacility

protected final javax.slee.profile.ProfileFacility getProfileFacility()

getSbbLocalObject

protected final javax.slee.SbbLocalObject getSbbLocalObject()

getSipFactoryProvider

protected final net.java.slee.resource.sip.SleeSipProvider getSipFactoryProvider()

getAddressFactory

protected final javax.sip.address.AddressFactory getAddressFactory()

getMessageFactory

protected final javax.sip.message.MessageFactory getMessageFactory()

getCallControlProfileCMP

public abstract CallControlProfileCMP getCallControlProfileCMP(javax.slee.profile.ProfileID profileID)
                                                        throws javax.slee.profile.UnrecognizedProfileNameException,
                                                               javax.slee.profile.UnrecognizedProfileTableNameException
Throws:
javax.slee.profile.UnrecognizedProfileNameException
javax.slee.profile.UnrecognizedProfileTableNameException

callIDSelect

public javax.slee.InitialEventSelector callIDSelect(javax.slee.InitialEventSelector ies)


Copyright © 2009. All Rights Reserved.