org.vfny.geoserver.responses.wms.map
Class SVGMapResponse

java.lang.Object
  extended byorg.vfny.geoserver.responses.wms.map.GetMapDelegate
      extended byorg.vfny.geoserver.responses.wms.map.SVGMapResponse
All Implemented Interfaces:
Response

public class SVGMapResponse
extends GetMapDelegate

Handles a GetMap request that spects a map in SVG format.


Constructor Summary
SVGMapResponse()
           
 
Method Summary
 void abort(GeoServer gs)
          Called when things go horriably wrong.
 boolean canProduce(java.lang.String mapFormat)
          evaluates if this Map producer can generate the map format specified by mapFormat
protected  void execute(FeatureTypeInfo[] requestedLayers, org.geotools.data.FeatureResults[] resultLayers, org.geotools.styling.Style[] styles)
          DOCUMENT ME!
 java.lang.String getContentType(GeoServer gs)
          DOCUMENT ME!
 java.util.List getSupportedFormats()
          Gets A list of the formats this delegate supports.
 void writeTo(java.io.OutputStream out)
          DOCUMENT ME!
 
Methods inherited from class org.vfny.geoserver.responses.wms.map.GetMapDelegate
buildStyles, execute, execute, getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGMapResponse

public SVGMapResponse()
Method Detail

getContentType

public java.lang.String getContentType(GeoServer gs)
DOCUMENT ME!

Parameters:
gs - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSupportedFormats

public java.util.List getSupportedFormats()
Description copied from class: GetMapDelegate
Gets A list of the formats this delegate supports.

Specified by:
getSupportedFormats in class GetMapDelegate
Returns:
A list of strings of the formats supported.

canProduce

public boolean canProduce(java.lang.String mapFormat)
evaluates if this Map producer can generate the map format specified by mapFormat

Specified by:
canProduce in class GetMapDelegate
Parameters:
mapFormat - the mime type of the output map format requiered
Returns:
true if class can produce a map in the passed format

abort

public void abort(GeoServer gs)
Description copied from interface: Response
Called when things go horriably wrong.

Used try and restore application state when things go wrong. This is called by AbstractAction to try and recover when sending out a ServiceException.

Allows a Response a chance to clean up after its self when AbstractionAction is error handling.


execute

protected void execute(FeatureTypeInfo[] requestedLayers,
                       org.geotools.data.FeatureResults[] resultLayers,
                       org.geotools.styling.Style[] styles)
                throws WmsException
DOCUMENT ME!

Specified by:
execute in class GetMapDelegate
Parameters:
requestedLayers - DOCUMENT ME!
resultLayers - DOCUMENT ME!
styles - DOCUMENT ME!
Throws:
WmsException - DOCUMENT ME!

writeTo

public void writeTo(java.io.OutputStream out)
             throws ServiceException,
                    java.io.IOException
DOCUMENT ME!

Parameters:
out - DOCUMENT ME!
Throws:
ServiceException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!