org.deegree.services.controller
Class WebServicesConfiguration

java.lang.Object
  extended by org.deegree.services.controller.WebServicesConfiguration

public class WebServicesConfiguration
extends java.lang.Object

Version:
$Revision: 28076 $, $Date: 2010-11-12 13:43:45 +0100 (Fr, 12. Nov 2010) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Constructor Summary
WebServicesConfiguration(org.deegree.commons.config.DeegreeWorkspace workspace)
           
 
Method Summary
 void destroy()
           
 AbstractOGCServiceController determineResponsibleControllerByNS(java.lang.String ns)
          Determines the AbstractOGCServiceController that is responsible for handling requests to a certain service type, e.g.
 AbstractOGCServiceController determineResponsibleControllerByRequestName(java.lang.String requestName)
          Determines the AbstractOGCServiceController that is responsible for handling requests with a certain name, e.g.
 AbstractOGCServiceController determineResponsibleControllerByServiceName(java.lang.String serviceType)
          Determines the AbstractOGCServiceController that is responsible for handling requests to a certain service type, e.g.
 DeegreeServiceControllerType getMainConfiguration()
           
 RequestLogger getRequestLogger()
           
<T extends AbstractOGCServiceController>
T
getServiceController(java.lang.Class<T> c)
          Returns the service controller instance based on the class of the service controller.
 java.util.Map<java.lang.String,AbstractOGCServiceController> getServiceControllers()
          Return all active service controllers.
 void init()
           
 boolean logOnlySuccessful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServicesConfiguration

public WebServicesConfiguration(org.deegree.commons.config.DeegreeWorkspace workspace)
Parameters:
workspace -
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

determineResponsibleControllerByServiceName

public AbstractOGCServiceController determineResponsibleControllerByServiceName(java.lang.String serviceType)
Determines the AbstractOGCServiceController that is responsible for handling requests to a certain service type, e.g. WMS, WFS.

Parameters:
serviceType - service type code, e.g. "WMS" or "WFS"
Returns:
responsible SecuredSubController or null, if no responsible controller was found

determineResponsibleControllerByRequestName

public AbstractOGCServiceController determineResponsibleControllerByRequestName(java.lang.String requestName)
Determines the AbstractOGCServiceController that is responsible for handling requests with a certain name, e.g. GetMap, GetFeature.

Parameters:
requestName - request name, e.g. "GetMap" or "GetFeature"
Returns:
responsible SecuredSubController or null, if no responsible controller was found

determineResponsibleControllerByNS

public AbstractOGCServiceController determineResponsibleControllerByNS(java.lang.String ns)
Determines the AbstractOGCServiceController that is responsible for handling requests to a certain service type, e.g. WMS, WFS.

Parameters:
ns - service type code, e.g. "WMS" or "WFS"
Returns:
responsible SecuredSubController or null, if no responsible controller was found

getServiceControllers

public java.util.Map<java.lang.String,AbstractOGCServiceController> getServiceControllers()
Return all active service controllers.

Returns:
the instance of the requested service used by OGCFrontController, or null if the service is not registered.

getServiceController

public <T extends AbstractOGCServiceController> T getServiceController(java.lang.Class<T> c)
Returns the service controller instance based on the class of the service controller.

Type Parameters:
T -
Parameters:
c - class of the requested service controller, e.g. WPSController.getClass()
Returns:
the instance of the requested service used by OGCFrontController, or null if no such service controller is active

destroy

public void destroy()

getMainConfiguration

public DeegreeServiceControllerType getMainConfiguration()
Returns:
the JAXB main configuration

getRequestLogger

public RequestLogger getRequestLogger()
Returns:
null, if none was configured

logOnlySuccessful

public boolean logOnlySuccessful()
Returns:
true, if the option was set in the logging configuration


Copyright © 2011. All Rights Reserved.