org.mobicents.slee.resource.sip11
Class SleeSipProviderImpl

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

public class SleeSipProviderImpl
extends java.lang.Object
implements net.java.slee.resource.sip.SleeSipProvider


Field Summary
protected  javax.sip.address.AddressFactory addressFactory
           
protected  javax.sip.header.HeaderFactory headerFactory
           
protected static org.apache.log4j.Logger logger
           
protected  javax.sip.message.MessageFactory messageFactory
           
protected  javax.sip.SipProvider provider
           
protected  SipResourceAdaptor ra
           
protected  javax.sip.SipStack stack
           
protected  javax.transaction.TransactionManager txMgr
           
 
Constructor Summary
SleeSipProviderImpl(javax.sip.address.AddressFactory addressFactory, javax.sip.header.HeaderFactory headerFactory, javax.sip.message.MessageFactory messageFactory, javax.sip.SipStack stack, SipResourceAdaptor ra, javax.sip.SipProvider provider, javax.transaction.TransactionManager txMgr)
           
 
Method Summary
 void addListeningPoint(javax.sip.ListeningPoint arg0)
           
 void addSipListener(javax.sip.SipListener arg0)
           
 javax.sip.address.AddressFactory getAddressFactory()
           
 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(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)
           
 javax.sip.ClientTransaction getNewClientTransaction(javax.sip.message.Request request, boolean createActivity)
           
 net.java.slee.resource.sip.DialogActivity getNewDialog(javax.sip.address.Address from, javax.sip.address.Address to)
           
 net.java.slee.resource.sip.DialogActivity getNewDialog(net.java.slee.resource.sip.DialogActivity incomingDialog, boolean useSameCallId)
           
 javax.sip.Dialog getNewDialog(javax.sip.Transaction transaction)
           
 javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request arg0)
           
 javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request request, javax.sip.ServerTransaction serverTransaction, boolean createActivityInSlee)
          getNewServerTransaction
 javax.sip.SipStack getSipStack()
           
 boolean isLocalHostname(java.lang.String host)
           
 boolean isLocalSipURI(javax.sip.address.SipURI uri)
           
 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 javax.sip.SipStack stack

ra

protected SipResourceAdaptor ra

txMgr

protected javax.transaction.TransactionManager txMgr

provider

protected javax.sip.SipProvider provider

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

SleeSipProviderImpl

public SleeSipProviderImpl(javax.sip.address.AddressFactory addressFactory,
                           javax.sip.header.HeaderFactory headerFactory,
                           javax.sip.message.MessageFactory messageFactory,
                           javax.sip.SipStack stack,
                           SipResourceAdaptor ra,
                           javax.sip.SipProvider provider,
                           javax.transaction.TransactionManager txMgr)
Method Detail

getAddressFactory

public javax.sip.address.AddressFactory getAddressFactory()
Specified by:
getAddressFactory in interface net.java.slee.resource.sip.SleeSipProvider

getHeaderFactory

public javax.sip.header.HeaderFactory getHeaderFactory()
Specified by:
getHeaderFactory in interface net.java.slee.resource.sip.SleeSipProvider

getLocalSipURI

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

getLocalVia

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

getMessageFactory

public javax.sip.message.MessageFactory getMessageFactory()
Specified by:
getMessageFactory in interface net.java.slee.resource.sip.SleeSipProvider

getNewDialog

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

getNewDialog

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

isLocalHostname

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

isLocalSipURI

public boolean isLocalSipURI(javax.sip.address.SipURI uri)
Specified by:
isLocalSipURI in interface net.java.slee.resource.sip.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

getNewServerTransaction

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

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,
                                                           boolean createActivity)
                                                    throws javax.sip.TransactionUnavailableException
Throws:
javax.sip.TransactionUnavailableException

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

getNewServerTransaction

public javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request request,
                                                           javax.sip.ServerTransaction serverTransaction,
                                                           boolean createActivityInSlee)
                                                    throws javax.sip.TransactionAlreadyExistsException,
                                                           javax.sip.TransactionUnavailableException
getNewServerTransaction

Parameters:
request - Request
Returns:
ServerTransaction
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
Parameters:
transaction - - object implementing javax.sip.Transaction interface for which dialog should be obtained
Returns:
Newly created dialog for transaction object.
Throws:
javax.sip.TransactionAlreadyExistsException
javax.sip.TransactionUnavailableException
javax.sip.SipException


Copyright © 2008. All Rights Reserved.