deegree 2.3 (2010/04/09 10:10 build-4-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: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

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, String requestIP)
           
static ServiceLookup getInstance()
           
 Iterator<String> 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<String> getIterator()
Returns:
an iterator over all the webservices names.

getHandler

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

clear

public void clear()
Clear the map


deegree 2.3 (2010/04/09 10:10 build-4-official)

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