org.mobicents.slee.services.sip.proxy
Class ProxySbb

java.lang.Object
  extended by org.mobicents.slee.services.sip.proxy.ProxySbb
All Implemented Interfaces:
javax.slee.Sbb

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


Constructor Summary
ProxySbb()
           
 
Method Summary
abstract  ProxySbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface ac)
           
 javax.slee.InitialEventSelector callIDSelect(javax.slee.InitialEventSelector ies)
          Generate a custom convergence name so that events with the same call identifier will go to the same root SBB entity.
abstract  ProxyConfigurator getConfiguration()
           
abstract  javax.sip.header.ViaHeader getForwardedInviteViaHeader()
           
 LocationSbbLocalObject getLocationSbb()
           
abstract  javax.slee.ChildRelation getLocationSbbChildRelation()
           
abstract  javax.slee.ChildRelation getRegistrarSbbChildRelation()
           
 javax.sip.ServerTransaction getServerTransaction(javax.sip.ClientTransaction clientTransaction)
           
abstract  boolean getServerTransactionTerminated()
          This flag tells the SBB that the transaction has been terminated, and that any further messages on this transaction (eg.
 void onAckEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onActivityEndEvent(javax.slee.ActivityEndEvent event, javax.slee.ActivityContextInterface aci)
           
 void onByeEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onCancelEvent(net.java.slee.resource.sip.CancelRequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onClientErrorRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onGlobalFailureRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onInfoRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onInviteEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onMessageEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onOptionsEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onRedirRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onRegisterEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
           
 void onServerErrorRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onServiceStarted(javax.slee.serviceactivity.ServiceStartedEvent serviceEvent, javax.slee.ActivityContextInterface aci)
           
 void onSuccessRespEvent(javax.sip.ResponseEvent event, javax.slee.ActivityContextInterface ac)
           
 void onTransactionTimeoutEvent(javax.sip.TimeoutEvent event, javax.slee.ActivityContextInterface ac)
           
 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()
           
 javax.sip.ClientTransaction sendRequest(javax.sip.message.Request request, boolean attach)
           
 void sendStatelessRequest(javax.sip.message.Request request)
           
 void sendStatelessResponse(javax.sip.message.Response response)
           
abstract  void setConfiguration(ProxyConfigurator pc)
           
abstract  void setForwardedInviteViaHeader(javax.sip.header.ViaHeader via)
           
 void setSbbContext(javax.slee.SbbContext context)
           
abstract  void setServerTransactionTerminated(boolean transactionTerminated)
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxySbb

public ProxySbb()
Method Detail

callIDSelect

public javax.slee.InitialEventSelector callIDSelect(javax.slee.InitialEventSelector ies)
Generate a custom convergence name so that events with the same call identifier will go to the same root SBB entity.


getRegistrarSbbChildRelation

public abstract javax.slee.ChildRelation getRegistrarSbbChildRelation()

getLocationSbbChildRelation

public abstract javax.slee.ChildRelation getLocationSbbChildRelation()

getLocationSbb

public LocationSbbLocalObject getLocationSbb()
                                      throws javax.slee.TransactionRequiredLocalException,
                                             javax.slee.SLEEException,
                                             javax.slee.CreateException
Throws:
javax.slee.TransactionRequiredLocalException
javax.slee.SLEEException
javax.slee.CreateException

asSbbActivityContextInterface

public abstract ProxySbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface ac)

setConfiguration

public abstract void setConfiguration(ProxyConfigurator pc)

getConfiguration

public abstract ProxyConfigurator getConfiguration()

getServerTransactionTerminated

public abstract boolean getServerTransactionTerminated()
This flag tells the SBB that the transaction has been terminated, and that any further messages on this transaction (eg. ACKs after the proxy returns 404 NOT_FOUND) should be ignored and not forwarded.


setServerTransactionTerminated

public abstract void setServerTransactionTerminated(boolean transactionTerminated)

setForwardedInviteViaHeader

public abstract void setForwardedInviteViaHeader(javax.sip.header.ViaHeader via)

getForwardedInviteViaHeader

public abstract javax.sip.header.ViaHeader getForwardedInviteViaHeader()

onServiceStarted

public void onServiceStarted(javax.slee.serviceactivity.ServiceStartedEvent serviceEvent,
                             javax.slee.ActivityContextInterface aci)

onActivityEndEvent

public void onActivityEndEvent(javax.slee.ActivityEndEvent event,
                               javax.slee.ActivityContextInterface aci)

onRegisterEvent

public void onRegisterEvent(javax.sip.RequestEvent event,
                            javax.slee.ActivityContextInterface ac)

onInviteEvent

public void onInviteEvent(javax.sip.RequestEvent event,
                          javax.slee.ActivityContextInterface ac)

onByeEvent

public void onByeEvent(javax.sip.RequestEvent event,
                       javax.slee.ActivityContextInterface ac)

onCancelEvent

public void onCancelEvent(net.java.slee.resource.sip.CancelRequestEvent event,
                          javax.slee.ActivityContextInterface ac)

onAckEvent

public void onAckEvent(javax.sip.RequestEvent event,
                       javax.slee.ActivityContextInterface ac)

onMessageEvent

public void onMessageEvent(javax.sip.RequestEvent event,
                           javax.slee.ActivityContextInterface ac)

onOptionsEvent

public void onOptionsEvent(javax.sip.RequestEvent event,
                           javax.slee.ActivityContextInterface ac)

onInfoRespEvent

public void onInfoRespEvent(javax.sip.ResponseEvent event,
                            javax.slee.ActivityContextInterface ac)

onSuccessRespEvent

public void onSuccessRespEvent(javax.sip.ResponseEvent event,
                               javax.slee.ActivityContextInterface ac)

onRedirRespEvent

public void onRedirRespEvent(javax.sip.ResponseEvent event,
                             javax.slee.ActivityContextInterface ac)

onClientErrorRespEvent

public void onClientErrorRespEvent(javax.sip.ResponseEvent event,
                                   javax.slee.ActivityContextInterface ac)

onServerErrorRespEvent

public void onServerErrorRespEvent(javax.sip.ResponseEvent event,
                                   javax.slee.ActivityContextInterface ac)

onGlobalFailureRespEvent

public void onGlobalFailureRespEvent(javax.sip.ResponseEvent event,
                                     javax.slee.ActivityContextInterface ac)

onTransactionTimeoutEvent

public void onTransactionTimeoutEvent(javax.sip.TimeoutEvent event,
                                      javax.slee.ActivityContextInterface ac)

getServerTransaction

public javax.sip.ServerTransaction getServerTransaction(javax.sip.ClientTransaction clientTransaction)

sendRequest

public javax.sip.ClientTransaction sendRequest(javax.sip.message.Request request,
                                               boolean attach)
                                        throws javax.sip.SipException
Throws:
javax.sip.SipException

sendStatelessRequest

public void sendStatelessRequest(javax.sip.message.Request request)
                          throws javax.sip.SipException
Throws:
javax.sip.SipException

sendStatelessResponse

public void sendStatelessResponse(javax.sip.message.Response response)
                           throws javax.sip.SipException
Throws:
javax.sip.SipException

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

setSbbContext

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

unsetSbbContext

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


Copyright © 2011. All Rights Reserved.