de.janrufmonitor.repository
Class AbstractWebCallerManager

java.lang.Object
  extended by de.janrufmonitor.repository.AbstractConfigurableCallerManager
      extended by de.janrufmonitor.repository.AbstractReadOnlyCallerManager
          extended by de.janrufmonitor.repository.AbstractWebCallerManager
All Implemented Interfaces:
IConfigurable, IManager, IRepositoryManager, ICallerManager, IIdentifyCallerRepository

public abstract class AbstractWebCallerManager
extends AbstractReadOnlyCallerManager

This abstract class can be used as base class for a new call manager implementation using webaccess to the caller persistence.

Author:
Thilo Brandt

Field Summary
 
Fields inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager
CFG_ENABLED, CFG_PRIO, m_configuration, m_externalID, m_logger
 
Constructor Summary
AbstractWebCallerManager()
           
 
Method Summary
protected abstract  AbstractURLRequester createURLRequester(String url, long skip)
           
protected  AbstractURLRequester createURLRequester(String url, long skip, String pn)
           
 ICaller getCaller(IPhonenumber number)
          Gets a caller object from a repository by the specified phone number object.
abstract  String getID()
          Gets the ID of the new caller manager.
abstract  String getNamespace()
          Gets the namespace of the configurable object.
abstract  IRuntime getRuntime()
          Gets the runtime objects.
protected  String getSupportedIntAreaCode()
           
protected  String getUserAgent()
           
 void shutdown()
          This method is called on shutdown time by the runtime object.
 void startup()
          This method is called on startup time by the runtime object.
 
Methods inherited from class de.janrufmonitor.repository.AbstractReadOnlyCallerManager
isSupported
 
Methods inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager
addCreationAttributes, addSystemAttributes, getConfigurableID, getManagerID, getPriority, isActive, isInternalNumber, restart, setConfiguration, setManagerID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractWebCallerManager

public AbstractWebCallerManager()
Method Detail

getRuntime

public abstract IRuntime getRuntime()
Description copied from class: AbstractConfigurableCallerManager
Gets the runtime objects.

Specified by:
getRuntime in class AbstractConfigurableCallerManager
Returns:
the current runtime object.

getID

public abstract String getID()
Description copied from class: AbstractConfigurableCallerManager
Gets the ID of the new caller manager. The ID is taken for registration at caller manager factory and at the configurable notifier.

Specified by:
getID in class AbstractConfigurableCallerManager
Returns:
caller manager ID

getNamespace

public abstract String getNamespace()
Description copied from interface: IConfigurable
Gets the namespace of the configurable object.

Specified by:
getNamespace in interface IConfigurable
Specified by:
getNamespace in class AbstractConfigurableCallerManager
Returns:
a valid and unique namespace

createURLRequester

protected abstract AbstractURLRequester createURLRequester(String url,
                                                           long skip)

createURLRequester

protected AbstractURLRequester createURLRequester(String url,
                                                  long skip,
                                                  String pn)

getSupportedIntAreaCode

protected String getSupportedIntAreaCode()

getCaller

public ICaller getCaller(IPhonenumber number)
                  throws CallerNotFoundException
Description copied from interface: IIdentifyCallerRepository
Gets a caller object from a repository by the specified phone number object.

Parameters:
number - number of the requested caller object.
Returns:
caller object from a repository
Throws:
CallerNotFoundException - is thrown if a caller with specified phone number is not found.

shutdown

public void shutdown()
Description copied from interface: IManager
This method is called on shutdown time by the runtime object.

Specified by:
shutdown in interface IManager
Overrides:
shutdown in class AbstractConfigurableCallerManager

startup

public void startup()
Description copied from interface: IManager
This method is called on startup time by the runtime object.

Specified by:
startup in interface IManager
Overrides:
startup in class AbstractConfigurableCallerManager

getUserAgent

protected String getUserAgent()


Copyright © 2010 by Thilo Brandt. All Rights Reserved.