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

org.deegree.enterprise.servlet
Class WMSHandler

java.lang.Object
  extended by org.deegree.enterprise.servlet.AbstractOWServiceHandler
      extended by org.deegree.enterprise.servlet.WMSHandler
All Implemented Interfaces:
ServiceDispatcher

public class WMSHandler
extends AbstractOWServiceHandler

WMSHandler is the handler class for WMS requests and their results.

Since:
2.0
Version:
2.0, $Revision: 20537 $, $Date: 2009-11-03 17:29:02 +0100 (Di, 03. Nov 2009) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
WMSHandler()
           
 
Method Summary
 void determineExceptionFormat(String eFormat, String format, String version, javax.servlet.http.HttpServletResponse response)
           
 void handleGetMapResponse(GetMapResult response)
          handles the response to a get map request
 void perform(OGCWebServiceRequest request, javax.servlet.http.HttpServletResponse response)
          performs the passed OGCWebServiceRequest by accessing service from the pool and passing the request to it
 void setRequest(OGCWebServiceRequest request)
          It's a workaround to make the 'API' more usable.
 void writeServiceExceptionReport(OGCWebServiceException exception)
          writes an service exception report into the OutputStream back to the client. the method considers the format an exception shall be returned to the client as defined in the request.
 
Methods inherited from class org.deegree.enterprise.servlet.AbstractOWServiceHandler
sendException, sendException, sendExceptionReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSHandler

public WMSHandler()
Method Detail

perform

public void perform(OGCWebServiceRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws ServiceException
performs the passed OGCWebServiceRequest by accessing service from the pool and passing the request to it

Throws:
ServiceException

handleGetMapResponse

public void handleGetMapResponse(GetMapResult response)
                          throws InvalidFormatException
handles the response to a get map request

Parameters:
response -
Throws:
InvalidFormatException

determineExceptionFormat

public void determineExceptionFormat(String eFormat,
                                     String format,
                                     String version,
                                     javax.servlet.http.HttpServletResponse response)
Parameters:
eFormat -
format -
version -
response -

writeServiceExceptionReport

public void writeServiceExceptionReport(OGCWebServiceException exception)
writes an service exception report into the OutputStream back to the client. the method considers the format an exception shall be returned to the client as defined in the request.

Parameters:
exception - the exception object containing the code and message

setRequest

public void setRequest(OGCWebServiceRequest request)
It's a workaround to make the 'API' more usable.

Parameters:
request -

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