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.
protected  void clearENV()
           
abstract  java.lang.Object getConfiguration()
           
abstract  javax.sip.header.ViaHeader getForwardedInviteViaHeader()
           
abstract  javax.slee.ChildRelation getLocationSbbChild()
           
abstract  javax.slee.ChildRelation getRegistrarSbbChild()
           
protected  javax.slee.SbbContext getSbbContext()
           
 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.
 javax.sip.ServerTransaction getServerTX(java.lang.String method)
           
protected  java.lang.String getTraceMessageType()
           
 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(javax.sip.RequestEvent 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)
           
protected  void prepareENV()
           
protected  boolean proxyProcess(ProxySbbActivityContextInterface proxyACI)
          Checks if proxys ancestor has processed call, if so it sets attribute aliased with "handledByProxy" to true and returns false.
 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(java.lang.Object pc)
           
abstract  void setForwardedInviteViaHeader(javax.sip.header.ViaHeader via)
           
 void setSbbContext(javax.slee.SbbContext context)
           
abstract  void setServerTransactionTerminated(boolean transactionTerminated)
           
protected  void startMBeanConfigurator()
           
 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.


getTraceMessageType

protected java.lang.String getTraceMessageType()

getRegistrarSbbChild

public abstract javax.slee.ChildRelation getRegistrarSbbChild()

getLocationSbbChild

public abstract javax.slee.ChildRelation getLocationSbbChild()

asSbbActivityContextInterface

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

setConfiguration

public abstract void setConfiguration(java.lang.Object pc)

getConfiguration

public abstract java.lang.Object 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()

getServerTX

public javax.sip.ServerTransaction getServerTX(java.lang.String method)

prepareENV

protected void prepareENV()

clearENV

protected void clearENV()

proxyProcess

protected boolean proxyProcess(ProxySbbActivityContextInterface proxyACI)
Checks if proxys ancestor has processed call, if so it sets attribute aliased with "handledByProxy" to true and returns false.
If proxys ancestor hasnt processed this call it sets attribute aliased with "handledByProxy" to true and retuns true
Variable alliased by "handledByProxy" is always set to true!!!

Parameters:
aci - - proxys aci.
Returns:
  • true - if proxy should process this message.
  • false - otherwise.

  • startMBeanConfigurator

    protected void startMBeanConfigurator()

    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(javax.sip.RequestEvent 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

    getSbbContext

    protected javax.slee.SbbContext getSbbContext()

    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 © 2008. All Rights Reserved.