org.lastbamboo.common.sip.bootstrap
Class ProxyRegistrarFactoryImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.bootstrap.ProxyRegistrarFactoryImpl
All Implemented Interfaces:
ProxyRegistrarFactory

public final class ProxyRegistrarFactoryImpl
extends Object
implements ProxyRegistrarFactory

An implementation of the proxy registrar factory interface.


Constructor Summary
ProxyRegistrarFactoryImpl(org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory, org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer, org.lastbamboo.common.sip.stack.transaction.client.SipTransactionTracker transactionTracker, org.lastbamboo.common.sip.client.SipClientTracker clientTracker, org.lastbamboo.common.sip.stack.util.UriUtils uriUtils, org.lastbamboo.common.offer.answer.OfferAnswerFactory offerAnswerFactory, InetSocketAddress serverAddress, org.littleshoot.util.SessionSocketListener callSocketListener, org.lastbamboo.common.sip.stack.IdleSipSessionListener idleSipSessionListener)
          Creates a new factory for creating classes for registering with registrars.
 
Method Summary
 ProxyRegistrar getRegistrar(URI client, URI proxy, org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener)
          Returns a proxy registrar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyRegistrarFactoryImpl

public ProxyRegistrarFactoryImpl(org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory,
                                 org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer,
                                 org.lastbamboo.common.sip.stack.transaction.client.SipTransactionTracker transactionTracker,
                                 org.lastbamboo.common.sip.client.SipClientTracker clientTracker,
                                 org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
                                 org.lastbamboo.common.offer.answer.OfferAnswerFactory offerAnswerFactory,
                                 InetSocketAddress serverAddress,
                                 org.littleshoot.util.SessionSocketListener callSocketListener,
                                 org.lastbamboo.common.sip.stack.IdleSipSessionListener idleSipSessionListener)
Creates a new factory for creating classes for registering with registrars.

Parameters:
messageFactory - The factory for creating SIP messages.
transportLayer - The transport layer for actually writing messages.
transactionTracker - The class for keeping track of SIP transactions.
clientTracker - The class for keeping track of SIP clients.
uriUtils - The class for manipulating SIP URIs.
offerAnswerFactory - The class for creating classes capable of processing offers and answers for an offer/answer protocol.
serverAddress - Listener for incoming sockets.
idleSipSessionListener - Listener for idle SIP sessions.
Method Detail

getRegistrar

public ProxyRegistrar getRegistrar(URI client,
                                   URI proxy,
                                   org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener)
Returns a proxy registrar. The returned registrar will handle registration for a given client and proxy. A given listener will be notified of registration events.

Specified by:
getRegistrar in interface ProxyRegistrarFactory
Parameters:
client - The client for which the registrar will handle registration.
proxy - The proxy with which the registrar will register.
listener - The listener to notify of registration events.
Returns:
A proxy registrar.


Copyright © 2013 LittleShoot. All Rights Reserved.