local.server
Class Registrar

java.lang.Object
  |
  +--local.server.ServerEngine
        |
        +--local.server.Registrar
All Implemented Interfaces:
org.zoolu.sip.provider.SipProviderListener
Direct Known Subclasses:
Proxy, Redirect

public class Registrar
extends ServerEngine

Class Registrar implements a Registrar SIP Server. It extends class ServerEngine.


Field Summary
protected  AuthenticationServer as
          AuthenticationServer.
protected static java.lang.String[] AUTHENTICATION_SCHEMES
          List of already supported authentication schemes
protected static java.lang.String[] AUTHENTICATION_SERVER_CLASSES
          List of authentication server Classes (ordered as in AUTHENTICATION_SCHEMES)
protected  AuthenticationService authentication_service
          AuthenticationService (i.e. the repository with authentication credentials).
protected static java.lang.String[] AUTHENTICATION_SERVICE_CLASSES
          List of authentication service Classes (ordered as in AUTHENTICATION_SERVICES)
protected static java.lang.String[] AUTHENTICATION_SERVICES
          List of already supported authentication services
protected  LocationService location_service
          LocationService.
protected static java.lang.String[] LOCATION_SERVICE_CLASSES
          List of location service Classes (ordered as in LOCATION_SERVICES)
protected static java.lang.String[] LOCATION_SERVICES
          List of already supported location services
 
Fields inherited from class local.server.ServerEngine
log, Loop_Tag, server_profile, sip_provider
 
Constructor Summary
protected Registrar()
          Costructs a void Registrar.
  Registrar(org.zoolu.sip.provider.SipProvider provider, ServerProfile profile)
          Costructs a new Registrar.
 
Method Summary
protected  java.util.Vector getTargets(org.zoolu.sip.message.Message msg)
          Gets the request's targets as Vector of String.
static void main(java.lang.String[] args)
          The main method.
 void processRequestToLocalServer(org.zoolu.sip.message.Message msg)
          When a new request is received for the local server.
 void processRequestToLocalUser(org.zoolu.sip.message.Message msg)
          When a new request message is received for a local user.
 void processRequestToRemoteUA(org.zoolu.sip.message.Message msg)
          When a new request message is received for a remote UA.
 void processResponse(org.zoolu.sip.message.Message resp)
          When a new response message is received.
protected  org.zoolu.sip.message.Message updateRegistration(org.zoolu.sip.message.Message msg)
          Updates the registration of a local user.
 
Methods inherited from class local.server.ServerEngine
getLocalDomains, isResponsibleFor, isResponsibleFor, onReceivedMessage, validateRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location_service

protected LocationService location_service
LocationService.

authentication_service

protected AuthenticationService authentication_service
AuthenticationService (i.e. the repository with authentication credentials).

as

protected AuthenticationServer as
AuthenticationServer.

LOCATION_SERVICES

protected static final java.lang.String[] LOCATION_SERVICES
List of already supported location services

LOCATION_SERVICE_CLASSES

protected static final java.lang.String[] LOCATION_SERVICE_CLASSES
List of location service Classes (ordered as in LOCATION_SERVICES)

AUTHENTICATION_SERVICES

protected static final java.lang.String[] AUTHENTICATION_SERVICES
List of already supported authentication services

AUTHENTICATION_SERVICE_CLASSES

protected static final java.lang.String[] AUTHENTICATION_SERVICE_CLASSES
List of authentication service Classes (ordered as in AUTHENTICATION_SERVICES)

AUTHENTICATION_SCHEMES

protected static final java.lang.String[] AUTHENTICATION_SCHEMES
List of already supported authentication schemes

AUTHENTICATION_SERVER_CLASSES

protected static final java.lang.String[] AUTHENTICATION_SERVER_CLASSES
List of authentication server Classes (ordered as in AUTHENTICATION_SCHEMES)
Constructor Detail

Registrar

protected Registrar()
Costructs a void Registrar.

Registrar

public Registrar(org.zoolu.sip.provider.SipProvider provider,
                 ServerProfile profile)
Costructs a new Registrar. The Location Service is stored within the file db_name
Method Detail

processRequestToLocalServer

public void processRequestToLocalServer(org.zoolu.sip.message.Message msg)
When a new request is received for the local server.
Overrides:
processRequestToLocalServer in class ServerEngine

processRequestToLocalUser

public void processRequestToLocalUser(org.zoolu.sip.message.Message msg)
When a new request message is received for a local user.
Overrides:
processRequestToLocalUser in class ServerEngine

processRequestToRemoteUA

public void processRequestToRemoteUA(org.zoolu.sip.message.Message msg)
When a new request message is received for a remote UA.
Overrides:
processRequestToRemoteUA in class ServerEngine

processResponse

public void processResponse(org.zoolu.sip.message.Message resp)
When a new response message is received.
Overrides:
processResponse in class ServerEngine

getTargets

protected java.util.Vector getTargets(org.zoolu.sip.message.Message msg)
Gets the request's targets as Vector of String.
Returns:
It returns a Vector of String representing the target URLs.

updateRegistration

protected org.zoolu.sip.message.Message updateRegistration(org.zoolu.sip.message.Message msg)
Updates the registration of a local user.
Returns:
it returns the response message for the registration.

main

public static void main(java.lang.String[] args)
The main method.