org.lastbamboo.common.sip.proxy
Interface SipRegistrar

All Known Implementing Classes:
SipRegistrarImpl

public interface SipRegistrar

Registrar for SIP clients.


Method Summary
 void addRegistrationListener(RegistrationListener listener)
          Adds the specified listener for registration events.
 org.littleshoot.mina.common.IoSession getIoSession(URI uri)
          Accesses the reader/writer for sending a message to the specified URI.
 Collection<URI> getRegistered()
          Get registered URIs
 void handleRegister(org.lastbamboo.common.sip.stack.message.Register register, org.littleshoot.mina.common.IoSession io)
          Processes the specified register request.
 boolean hasRegistration(URI uri)
          Determines whether or not we have a registration for the specified SIP URI.
 void sessionClosed(org.littleshoot.mina.common.IoSession session)
          Called when an IO session has closed -- we have lost a connection to a client.
 

Method Detail

handleRegister

void handleRegister(org.lastbamboo.common.sip.stack.message.Register register,
                    org.littleshoot.mina.common.IoSession io)
Processes the specified register request.

Parameters:
register - The register request to process.
io - The class for writing message back to the client.

getIoSession

org.littleshoot.mina.common.IoSession getIoSession(URI uri)
Accesses the reader/writer for sending a message to the specified URI.

Parameters:
uri - The URI to send a message to.
Returns:
The reader/writer for the specified URI, or null if we don't have information about the URI.

sessionClosed

void sessionClosed(org.littleshoot.mina.common.IoSession session)
Called when an IO session has closed -- we have lost a connection to a client.

Parameters:
session - The closed session.

hasRegistration

boolean hasRegistration(URI uri)
Determines whether or not we have a registration for the specified SIP URI.

Parameters:
uri - The SIP URI to check for a registration for.
Returns:
true if we have a registration for the URI, otherwise false.

addRegistrationListener

void addRegistrationListener(RegistrationListener listener)
Adds the specified listener for registration events.

Parameters:
listener - The listener to add.

getRegistered

Collection<URI> getRegistered()
Get registered URIs

Returns:
The registered URIs.


Copyright © 2013 LittleShoot. All Rights Reserved.