deegree 2.5 (2011/06/29 09:44 build-8-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: 23585 $, $Date: 2010-04-13 14:07:18 +0200 (Di, 13 Apr 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
WMSHandler()
           
 
Method Summary
 void determineExceptionFormat(java.lang.String eFormat, java.lang.String format, java.lang.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(java.lang.String eFormat,
                                     java.lang.String format,
                                     java.lang.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.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