org.lastbamboo.common.sip.bootstrap
Class RobustProxyRegistrarFactoryImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.bootstrap.RobustProxyRegistrarFactoryImpl
All Implemented Interfaces:
RobustProxyRegistrarFactory

public final class RobustProxyRegistrarFactoryImpl
extends Object
implements RobustProxyRegistrarFactory

An implementation of the robust proxy registrar factory implementation.


Constructor Summary
RobustProxyRegistrarFactoryImpl(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils, org.littleshoot.util.CandidateProvider<InetSocketAddress> sipCandidateProvider, ProxyRegistrarFactory registrarFactory)
          Constructs a new robust proxy registrar factory.
 
Method Summary
 ProxyRegistrar getRegistrar(URI client, 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

RobustProxyRegistrarFactoryImpl

public RobustProxyRegistrarFactoryImpl(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
                                       org.littleshoot.util.CandidateProvider<InetSocketAddress> sipCandidateProvider,
                                       ProxyRegistrarFactory registrarFactory)
Constructs a new robust proxy registrar factory.

Parameters:
uriUtils - Utilities for creating SIP URIs.
sipCandidateProvider - The candidate provider that provides candidate registrars for registration.
registrarFactory - The registrar factory that provides registrars for single registrations.
Method Detail

getRegistrar

public ProxyRegistrar getRegistrar(URI client,
                                   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 RobustProxyRegistrarFactory
Parameters:
client - The client the registrar will handle registration for.
listener - The listener to notify of registration events.
Returns:
A proxy registrar.


Copyright © 2013 LittleShoot. All Rights Reserved.