org.mobicents.slee.resource.sip11
Class SleeSipProviderImpl
java.lang.Object
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
- Author:
- B.Baranowski, martins
|
Constructor Summary |
SleeSipProviderImpl(javax.sip.address.AddressFactory addressFactory,
javax.sip.header.HeaderFactory headerFactory,
javax.sip.message.MessageFactory messageFactory,
org.mobicents.ha.javax.sip.ClusteredSipStack stack,
SipResourceAdaptor ra,
javax.sip.SipProvider provider)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SleeSipProviderImpl
public SleeSipProviderImpl(javax.sip.address.AddressFactory addressFactory,
javax.sip.header.HeaderFactory headerFactory,
javax.sip.message.MessageFactory messageFactory,
org.mobicents.ha.javax.sip.ClusteredSipStack stack,
SipResourceAdaptor ra,
javax.sip.SipProvider provider)
- Parameters:
addressFactory - headerFactory - messageFactory - stack - ra - provider -
getRealProvider
public javax.sip.SipProvider getRealProvider()
- Returns:
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
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 net.java.slee.resource.sip.SleeSipProvider
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
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 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
acceptCancel
public boolean acceptCancel(net.java.slee.resource.sip.CancelRequestEvent cancelEvent,
boolean isProxy)
- Specified by:
acceptCancel in interface net.java.slee.resource.sip.SleeSipProvider
forwardForkedResponse
public net.java.slee.resource.sip.DialogActivity forwardForkedResponse(javax.sip.ServerTransaction origServerTransaction,
javax.sip.message.Response response)
throws javax.sip.SipException
- Specified by:
forwardForkedResponse in interface net.java.slee.resource.sip.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 © 2011. All Rights Reserved.