org.lastbamboo.common.sip.bootstrap
Class ProxyRegistrarImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.bootstrap.ProxyRegistrarImpl
All Implemented Interfaces:
ProxyRegistrar

public final class ProxyRegistrarImpl
extends Object
implements ProxyRegistrar

An implementation of the proxy registrar interface.


Constructor Summary
ProxyRegistrarImpl(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils, URI client, URI proxy, org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener, 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.offer.answer.OfferAnswerFactory offerAnswerFactory, InetSocketAddress serverAddress, org.littleshoot.util.SessionSocketListener callSocketListener, org.lastbamboo.common.sip.client.SipClientTracker clientTracker, org.lastbamboo.common.sip.stack.IdleSipSessionListener idleSipSessionListener)
          Creates a new class for registering with an individual SIP proxy.
 
Method Summary
 void register()
          Registers a client with a proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyRegistrarImpl

public ProxyRegistrarImpl(org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
                          URI client,
                          URI proxy,
                          org.lastbamboo.common.sip.client.util.ProxyRegistrationListener listener,
                          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.offer.answer.OfferAnswerFactory offerAnswerFactory,
                          InetSocketAddress serverAddress,
                          org.littleshoot.util.SessionSocketListener callSocketListener,
                          org.lastbamboo.common.sip.client.SipClientTracker clientTracker,
                          org.lastbamboo.common.sip.stack.IdleSipSessionListener idleSipSessionListener)
Creates a new class for registering with an individual SIP proxy.

Parameters:
uriUtils - Utilities for manipulating SIP URIs.
client - The URI of the client.
proxy - The URI of the proxy to connect to.
listener - The listener for registration events, necessary for initiating new registrations as necessary.
messageFactory - The factory for creating new SIP messages.
transportLayer - The class for actually sending SIP messages to the transport layer.
transactionTracker - The class for keeping track of SIP client transactions.
offerAnswerFactory - The class for creating OfferAnswer instances capable of processing offers and answers for an offer/answer protocol.
socketListener - The listener for incoming sockets on the answerer side.
clientTracker - The class for keeping track of SIP clients.
idleSipSessionListener - Listener for idle SIP sessions.
Method Detail

register

public void register()
Description copied from interface: ProxyRegistrar
Registers a client with a proxy. This is expected to be a non-blocking call. Generally, proxy registrars should be supplied with the information necessary for registration during construction. This includes the client to register, the proxy to register with, and a listener to be notified of registration events.

Specified by:
register in interface ProxyRegistrar


Copyright © 2013 LittleShoot. All Rights Reserved.