deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise.servlet
Class ServiceLookup

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

public class ServiceLookup
extends java.lang.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(java.lang.String key, java.lang.Class<?> clss)
          Maps a web service to the given class
 void clear()
          Clear the map
 ServiceDispatcher getHandler(java.lang.String serviceName, java.lang.String requestIP)
           
static ServiceLookup getInstance()
           
 java.util.Iterator<java.lang.String> getIterator()
           
 java.lang.Class<?> getService(java.lang.String key)
           
 java.lang.Class<?> removeService(java.lang.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(java.lang.String key,
                       java.lang.Class<?> clss)
Maps a web service to the given class

Parameters:
key -
clss -

removeService

public java.lang.Class<?> removeService(java.lang.String key)
Parameters:
key - to be removed
Returns:
the handler class to which the key is mapped

getService

public java.lang.Class<?> getService(java.lang.String key)
Parameters:
key - the webservice of interest
Returns:
its handler class

getIterator

public java.util.Iterator<java.lang.String> getIterator()
Returns:
an iterator over all the webservices names.

getHandler

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

clear

public void clear()
Clear the map


deegree 2.5 (2011/06/29 09:44 build-8-official)

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