deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.enterprise.servlet
Class ServiceLookup

java.lang.Object
  extended by org.deegree.enterprise.servlet.ServiceLookup

public class ServiceLookup
extends Object

look up class for deegree service handler. The class is implemented as singleton to ensure that only one instance and so just ine mapping is valid with a service instance

Since:
2.0
Version:
$Revision: 9338 $, 1.0. $Revision: 9338 $, $Date: 2007-12-27 13:31:31 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Method Summary
 void addService(String key, Class clss)
          Maps a web service to the given class
 void clear()
          Clear the map
 ServiceDispatcher getHandler(String serviceName)
           
static ServiceLookup getInstance()
           
 Iterator getIterator()
           
 Class getService(String key)
           
 Class removeService(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceLookup getInstance()
Returns:
static wrapper for a private constructor

addService

public void addService(String key,
                       Class clss)
Maps a web service to the given class

Parameters:
key -
clss -

removeService

public Class removeService(String key)
Parameters:
key - to be removed
Returns:
the handler class to which the key is mapped

getService

public Class getService(String key)
Parameters:
key - the webservice of interest
Returns:
its handler class

getIterator

public Iterator getIterator()
Returns:
an iterator over all the webservices names.

getHandler

public ServiceDispatcher getHandler(String serviceName)
                             throws ServiceException
Parameters:
serviceName -
Returns:
the Handler of the webservice
Throws:
ServiceException

clear

public void clear()
Clear the map


deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net