org.mobicents.slee.examples.wakeup
Class WakeUpSbb

java.lang.Object
  extended by org.mobicents.slee.examples.wakeup.WakeUpSbb
All Implemented Interfaces:
javax.slee.Sbb

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


Constructor Summary
WakeUpSbb()
           
 
Method Summary
abstract  WakeUpSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
           
 javax.sip.address.URI findLocalTarget(javax.sip.address.URI uri, org.mobicents.slee.services.sip.common.LocationSbbLocalObject locationSbbLocalObject)
          Attempts to find a locally registered contact address for the given URI, using the location service interface.
abstract  javax.slee.ChildRelation getLocationChildRelation()
          Child relation to the location service
 org.mobicents.slee.services.sip.common.LocationSbbLocalObject getLocationChildSbb()
          creates (if not created yet) and retrieves the child sbb instance for the location service
 void onMessageEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface aci)
          Event handler for the SIP MESSAGE from the UA
 void onTimerEvent(javax.slee.facilities.TimerEvent event, javax.slee.ActivityContextInterface aci)
          Event handler from the timer event, which signals that a message must be sent back to the UA
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception exception, java.lang.Object event, javax.slee.ActivityContextInterface activity)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext context)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext context)
          Initialize the component
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WakeUpSbb

public WakeUpSbb()
Method Detail

getLocationChildRelation

public abstract javax.slee.ChildRelation getLocationChildRelation()
Child relation to the location service

Returns:

getLocationChildSbb

public org.mobicents.slee.services.sip.common.LocationSbbLocalObject getLocationChildSbb()
creates (if not created yet) and retrieves the child sbb instance for the location service

Returns:

onMessageEvent

public void onMessageEvent(javax.sip.RequestEvent event,
                           javax.slee.ActivityContextInterface aci)
Event handler for the SIP MESSAGE from the UA

Parameters:
event -
aci -

onTimerEvent

public void onTimerEvent(javax.slee.facilities.TimerEvent event,
                         javax.slee.ActivityContextInterface aci)
Event handler from the timer event, which signals that a message must be sent back to the UA

Parameters:
event -
aci -

setSbbContext

public void setSbbContext(javax.slee.SbbContext context)
Initialize the component

Specified by:
setSbbContext in interface javax.slee.Sbb

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

sbbActivate

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

sbbPassivate

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

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove 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 activity)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbRolledBack

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

asSbbActivityContextInterface

public abstract WakeUpSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)

findLocalTarget

public javax.sip.address.URI findLocalTarget(javax.sip.address.URI uri,
                                             org.mobicents.slee.services.sip.common.LocationSbbLocalObject locationSbbLocalObject)
                                      throws org.mobicents.slee.services.sip.common.SipSendErrorResponseException
Attempts to find a locally registered contact address for the given URI, using the location service interface.

Throws:
org.mobicents.slee.services.sip.common.SipSendErrorResponseException


Copyright © 2008. All Rights Reserved.