org.vfny.geoserver.responses.wms
Class GetMapResponse

java.lang.Object
  extended byorg.vfny.geoserver.responses.wms.GetMapResponse
All Implemented Interfaces:
Response

public class GetMapResponse
extends java.lang.Object
implements Response

A GetMapResponse object is responsible for generating a map based on a GetMap request. The way the map is generated is independent of this class, wich will use a delegate object based on the output format requested


Constructor Summary
GetMapResponse()
          Creates a new GetMapResponse object.
 
Method Summary
 void abort(GeoServer gs)
          if a GetMapDelegate is set, calls it's abort method.
 void execute(Request request)
          DOCUMENT ME!
 java.lang.String getContentType(GeoServer gs)
          asks the internal GetMapDelegate for the MIME type of the map that it will generate or is ready to, and returns it
 void writeTo(java.io.OutputStream out)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMapResponse

public GetMapResponse()
Creates a new GetMapResponse object.

Method Detail

execute

public void execute(Request request)
             throws ServiceException
DOCUMENT ME!

Specified by:
execute in interface Response
Parameters:
request - DOCUMENT ME!
Throws:
ServiceException - DOCUMENT ME!

getContentType

public java.lang.String getContentType(GeoServer gs)
                                throws java.lang.IllegalStateException
asks the internal GetMapDelegate for the MIME type of the map that it will generate or is ready to, and returns it

Specified by:
getContentType in interface Response
Parameters:
gs - DOCUMENT ME!
Returns:
the MIME type of the map generated or ready to generate
Throws:
java.lang.IllegalStateException - if a GetMapDelegate is not setted yet

abort

public void abort(GeoServer gs)
if a GetMapDelegate is set, calls it's abort method. Elsewere do nothing.

Specified by:
abort in interface Response
Parameters:
gs - DOCUMENT ME!

writeTo

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

Specified by:
writeTo in interface Response
Parameters:
out - DOCUMENT ME!
Throws:
ServiceException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
java.lang.IllegalStateException - DOCUMENT ME!