| java.lang.Object org.vfny.geoserver.wms.responses.GetMapResponse
GetMapResponse | public class GetMapResponse implements Response(Code) | | A GetMapResponse object is responsible of 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
author: Gabriel Roldan, Axios Engineering author: Simone Giannecchini - GeoSolutions SAS version: $Id: GetMapResponse.java 8438 2008-02-25 08:52:45Z aaime $ |
Constructor Summary | |
public | GetMapResponse(WMS wms, ApplicationContext applicationContext) Creates a new GetMapResponse object. |
headerContentDisposition | String headerContentDisposition(Code) | | |
GetMapResponse | public GetMapResponse(WMS wms, ApplicationContext applicationContext)(Code) | | Creates a new GetMapResponse object.
Parameters: applicationContext - |
abort | public void abort(Service gs)(Code) | | if a GetMapDelegate is set, calls it's abort method. Elsewere do nothing.
Parameters: gs - DOCUMENT ME! |
clearMapContext | void clearMapContext()(Code) | | Clearing the map context is paramount, otherwise we end up with a memory leak
|
getContentDisposition | public String getContentDisposition()(Code) | | |
getContentEncoding | public String getContentEncoding()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
getContentType | public String getContentType(GeoServer gs) throws IllegalStateException(Code) | | asks the internal GetMapDelegate for the MIME type of the map that it
will generate or is ready to, and returns it
Parameters: gs - DOCUMENT ME! the MIME type of the map generated or ready to generate throws: IllegalStateException - if a GetMapDelegate is not setted yet |
getMapFormats | public Set getMapFormats()(Code) | | Convenient mehtod to inspect the available
GetMapProducerFactorySpi and return the set of all the map
formats' MIME types that the producers can handle
a Set<String> with the supported mime types. |
getResponseHeaders | public HashMap getResponseHeaders()(Code) | | Returns any extra headers that this service might want to set in the HTTP
response object.
|
loadImageFormats | public static Set loadImageFormats(ApplicationContext applicationContext)(Code) | | Convenience method for processing the GetMapProducerFactorySpi extension
point and returning the set of available image formats.
Parameters: applicationContext - The application context. |
writeTo | public void writeTo(OutputStream out) throws ServiceException, IOException(Code) | | delegates the writing and encoding of the results of the request to the
GetMapDelegate wich is actually processing it, and has
been obtained when execute(Request) was called
Parameters: out - the output to where the map must be written throws: ServiceException - if the delegate throws a ServiceException inside itswriteTo(OuptutStream) , mostly due to throws: IOException - if the delegate throws an IOException inside itswriteTo(OuptutStream) , mostly due to throws: IllegalStateException - if this method is called before execute(Request) has succeed |
|
|