org.mobicents.slee.resource.sip11
Class SleeSipProviderImpl

java.lang.Object
  extended by org.mobicents.slee.resource.sip11.SleeSipProviderImpl
All Implemented Interfaces:
javax.sip.SipProvider, SleeSipProvider

public class SleeSipProviderImpl
extends java.lang.Object
implements SleeSipProvider

Author:
B.Baranowski, martins

Field Summary
protected  javax.sip.address.AddressFactory addressFactory
           
protected  javax.sip.header.HeaderFactory headerFactory
           
protected  javax.sip.message.MessageFactory messageFactory
           
protected  javax.sip.SipProvider provider
           
protected  SipResourceAdaptor ra
           
protected  org.mobicents.ha.javax.sip.ClusteredSipStack stack
           
protected  javax.slee.facilities.Tracer tracer
           
 
Constructor Summary
SleeSipProviderImpl(SipResourceAdaptor ra)
           
 
Method Summary
 boolean acceptCancel(CancelRequestEvent cancelEvent, boolean isProxy)
           
 void addListeningPoint(javax.sip.ListeningPoint arg0)
           
 void addLoadBalancerToRoute(javax.sip.message.Request r)
           
 void addSipListener(javax.sip.SipListener arg0)
           
 DialogActivity forwardForkedResponse(javax.sip.ServerTransaction origServerTransaction, javax.sip.message.Response response)
           
 javax.sip.address.AddressFactory getAddressFactory()
           
 org.mobicents.ha.javax.sip.ClusteredSipStack getClusteredSipStack()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
 javax.sip.ListeningPoint getListeningPoint()
           
 javax.sip.ListeningPoint getListeningPoint(java.lang.String arg0)
           
 javax.sip.ListeningPoint[] getListeningPoints()
           
 javax.sip.address.SipURI getLocalSipURI(java.lang.String transport)
           
 javax.sip.header.ViaHeader getLocalVia()
           
 javax.sip.header.ViaHeader getLocalVia(java.lang.String transport, java.lang.String branch)
           
 javax.sip.message.MessageFactory getMessageFactory()
           
 javax.sip.header.CallIdHeader getNewCallId()
           
 javax.sip.ClientTransaction getNewClientTransaction(javax.sip.message.Request request)
           
 DialogActivity getNewDialog(javax.sip.address.Address from, javax.sip.address.Address to)
           
 DialogActivity getNewDialog(DialogActivity incomingDialog, boolean useSameCallId)
           
 javax.sip.Dialog getNewDialog(javax.sip.Transaction transaction)
           
 ClientTransactionWrapper getNewDialogActivityClientTransaction(DialogWrapper dialogWrapper, javax.sip.message.Request request)
          Creates a new ClientTransactionWrapper bound to a DialogWrapper, which is not an activity in SLEE.
 javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request request)
           
 javax.sip.SipProvider getRealProvider()
           
 javax.sip.SipStack getSipStack()
           
 boolean isLocalHostname(java.lang.String host)
           
 boolean isLocalSipURI(javax.sip.address.SipURI uri)
           
 void raActive(javax.sip.address.AddressFactory addressFactory, javax.sip.header.HeaderFactory headerFactory, javax.sip.message.MessageFactory messageFactory, org.mobicents.ha.javax.sip.ClusteredSipStack stack, javax.sip.SipProvider provider)
           
 void raInactive()
           
 void removeListeningPoint(javax.sip.ListeningPoint arg0)
           
 void removeSipListener(javax.sip.SipListener arg0)
           
 void sendRequest(javax.sip.message.Request arg0)
           
 void sendResponse(javax.sip.message.Response arg0)
           
 void setAutomaticDialogSupportEnabled(boolean arg0)
           
 void setListeningPoint(javax.sip.ListeningPoint arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addressFactory

protected javax.sip.address.AddressFactory addressFactory

headerFactory

protected javax.sip.header.HeaderFactory headerFactory

messageFactory

protected javax.sip.message.MessageFactory messageFactory

stack

protected org.mobicents.ha.javax.sip.ClusteredSipStack stack

ra

protected SipResourceAdaptor ra

provider

protected javax.sip.SipProvider provider

tracer

protected final javax.slee.facilities.Tracer tracer
Constructor Detail

SleeSipProviderImpl

public SleeSipProviderImpl(SipResourceAdaptor ra)
Method Detail

raActive

public void raActive(javax.sip.address.AddressFactory addressFactory,
                     javax.sip.header.HeaderFactory headerFactory,
                     javax.sip.message.MessageFactory messageFactory,
                     org.mobicents.ha.javax.sip.ClusteredSipStack stack,
                     javax.sip.SipProvider provider)

raInactive

public void raInactive()

getRealProvider

public javax.sip.SipProvider getRealProvider()
Returns:

getAddressFactory

public javax.sip.address.AddressFactory getAddressFactory()
Specified by:
getAddressFactory in interface SleeSipProvider

getHeaderFactory

public javax.sip.header.HeaderFactory getHeaderFactory()
Specified by:
getHeaderFactory in interface SleeSipProvider

getLocalSipURI

public javax.sip.address.SipURI getLocalSipURI(java.lang.String transport)
Specified by:
getLocalSipURI in interface SleeSipProvider

getLocalVia

public javax.sip.header.ViaHeader getLocalVia(java.lang.String transport,
                                              java.lang.String branch)
Specified by:
getLocalVia in interface SleeSipProvider

getLocalVia

public javax.sip.header.ViaHeader getLocalVia()
                                       throws java.text.ParseException,
                                              javax.sip.InvalidArgumentException
Returns:
Throws:
javax.sip.InvalidArgumentException
java.text.ParseException

getMessageFactory

public javax.sip.message.MessageFactory getMessageFactory()
Specified by:
getMessageFactory in interface SleeSipProvider

isLocalHostname

public boolean isLocalHostname(java.lang.String host)
Specified by:
isLocalHostname in interface SleeSipProvider

isLocalSipURI

public boolean isLocalSipURI(javax.sip.address.SipURI uri)
Specified by:
isLocalSipURI in interface SleeSipProvider

addListeningPoint

public void addListeningPoint(javax.sip.ListeningPoint arg0)
                       throws javax.sip.ObjectInUseException,
                              javax.sip.TransportAlreadySupportedException
Specified by:
addListeningPoint in interface javax.sip.SipProvider
Throws:
javax.sip.ObjectInUseException
javax.sip.TransportAlreadySupportedException

addSipListener

public void addSipListener(javax.sip.SipListener arg0)
                    throws java.util.TooManyListenersException
Specified by:
addSipListener in interface javax.sip.SipProvider
Throws:
java.util.TooManyListenersException

getListeningPoint

public javax.sip.ListeningPoint getListeningPoint()
Specified by:
getListeningPoint in interface javax.sip.SipProvider

getListeningPoint

public javax.sip.ListeningPoint getListeningPoint(java.lang.String arg0)
Specified by:
getListeningPoint in interface javax.sip.SipProvider

getListeningPoints

public javax.sip.ListeningPoint[] getListeningPoints()
Specified by:
getListeningPoints in interface javax.sip.SipProvider

getNewCallId

public javax.sip.header.CallIdHeader getNewCallId()
Specified by:
getNewCallId in interface javax.sip.SipProvider

getSipStack

public javax.sip.SipStack getSipStack()
Specified by:
getSipStack in interface javax.sip.SipProvider

removeListeningPoint

public void removeListeningPoint(javax.sip.ListeningPoint arg0)
                          throws javax.sip.ObjectInUseException
Specified by:
removeListeningPoint in interface javax.sip.SipProvider
Throws:
javax.sip.ObjectInUseException

removeSipListener

public void removeSipListener(javax.sip.SipListener arg0)
Specified by:
removeSipListener in interface javax.sip.SipProvider

sendRequest

public void sendRequest(javax.sip.message.Request arg0)
                 throws javax.sip.SipException
Specified by:
sendRequest in interface javax.sip.SipProvider
Throws:
javax.sip.SipException

sendResponse

public void sendResponse(javax.sip.message.Response arg0)
                  throws javax.sip.SipException
Specified by:
sendResponse in interface javax.sip.SipProvider
Throws:
javax.sip.SipException

setAutomaticDialogSupportEnabled

public void setAutomaticDialogSupportEnabled(boolean arg0)
Specified by:
setAutomaticDialogSupportEnabled in interface javax.sip.SipProvider

setListeningPoint

public void setListeningPoint(javax.sip.ListeningPoint arg0)
                       throws javax.sip.ObjectInUseException
Specified by:
setListeningPoint in interface javax.sip.SipProvider
Throws:
javax.sip.ObjectInUseException

getNewClientTransaction

public javax.sip.ClientTransaction getNewClientTransaction(javax.sip.message.Request request)
                                                    throws javax.sip.TransactionUnavailableException
Specified by:
getNewClientTransaction in interface javax.sip.SipProvider
Throws:
javax.sip.TransactionUnavailableException

getNewDialogActivityClientTransaction

public ClientTransactionWrapper getNewDialogActivityClientTransaction(DialogWrapper dialogWrapper,
                                                                      javax.sip.message.Request request)
                                                               throws javax.sip.TransactionUnavailableException
Creates a new ClientTransactionWrapper bound to a DialogWrapper, which is not an activity in SLEE.

Parameters:
dialogWrapper -
request -
Returns:
Throws:
javax.sip.TransactionUnavailableException

getNewServerTransaction

public javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request request)
                                                    throws javax.sip.TransactionAlreadyExistsException,
                                                           javax.sip.TransactionUnavailableException
Specified by:
getNewServerTransaction in interface javax.sip.SipProvider
Throws:
javax.sip.TransactionAlreadyExistsException
javax.sip.TransactionUnavailableException

getNewDialog

public javax.sip.Dialog getNewDialog(javax.sip.Transaction transaction)
                              throws javax.sip.SipException
Specified by:
getNewDialog in interface javax.sip.SipProvider
Throws:
javax.sip.SipException

getNewDialog

public DialogActivity getNewDialog(javax.sip.address.Address from,
                                   javax.sip.address.Address to)
                            throws javax.sip.SipException
Specified by:
getNewDialog in interface SleeSipProvider
Throws:
javax.sip.SipException

getNewDialog

public DialogActivity getNewDialog(DialogActivity incomingDialog,
                                   boolean useSameCallId)
                            throws javax.sip.SipException
Specified by:
getNewDialog in interface SleeSipProvider
Throws:
javax.sip.SipException

acceptCancel

public boolean acceptCancel(CancelRequestEvent cancelEvent,
                            boolean isProxy)
Specified by:
acceptCancel in interface SleeSipProvider

forwardForkedResponse

public DialogActivity forwardForkedResponse(javax.sip.ServerTransaction origServerTransaction,
                                            javax.sip.message.Response response)
                                     throws javax.sip.SipException
Specified by:
forwardForkedResponse in interface SleeSipProvider
Throws:
javax.sip.SipException

getClusteredSipStack

public org.mobicents.ha.javax.sip.ClusteredSipStack getClusteredSipStack()
Returns:
the stack

addLoadBalancerToRoute

public void addLoadBalancerToRoute(javax.sip.message.Request r)
                            throws javax.sip.SipException
Parameters:
r -
Throws:
javax.sip.SipException


Copyright © 2012. All Rights Reserved.