|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.responses.wms.map.GetMapDelegate
org.vfny.geoserver.responses.wms.map.JAIMapResponse
Generates a map using the geotools jai rendering classes. Currently does a fairly poor job of taking advantage of the streaming architecture, but I'm not sure there's a better way to handle it.
| Constructor Summary | |
JAIMapResponse()
|
|
| Method Summary | |
void |
abort(GeoServer gs)
Halts the loading. |
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)
Performs the execute request using geotools rendering. |
void |
formatImageOutputStream(java.lang.String format,
java.awt.image.BufferedImage image,
java.io.OutputStream outStream)
Transforms the rendered image into the appropriate format, streaming to the output stream. |
java.lang.String |
getContentType(GeoServer gs)
Gets the content type. |
java.util.List |
getSupportedFormats()
The formats this delegate supports. |
void |
writeTo(java.io.OutputStream out)
Writes the image to the client. |
| 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 |
public JAIMapResponse()
| Method Detail |
public boolean canProduce(java.lang.String mapFormat)
mapFormat
canProduce in class GetMapDelegatemapFormat - the mime type of the output map format requiered
public java.util.List getSupportedFormats()
getSupportedFormats in class GetMapDelegate
public void writeTo(java.io.OutputStream out)
throws ServiceException,
java.io.IOException
out - The output stream to write to.
ServiceException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
public void formatImageOutputStream(java.lang.String format,
java.awt.image.BufferedImage image,
java.io.OutputStream outStream)
throws WmsException,
java.io.IOException
format - The name of the formatimage - The image to be formatted.outStream - The stream to write to.
WmsException
java.io.IOException - DOCUMENT ME!public void abort(GeoServer gs)
gs - DOCUMENT ME!
public java.lang.String getContentType(GeoServer gs)
throws java.lang.IllegalStateException
gs - DOCUMENT ME!
java.lang.IllegalStateException - DOCUMENT ME!
protected void execute(FeatureTypeInfo[] requestedLayers,
org.geotools.data.FeatureResults[] resultLayers,
org.geotools.styling.Style[] styles)
throws WmsException
execute in class GetMapDelegaterequestedLayers - The information on the types requested.resultLayers - The results of the queries to generate maps with.styles - The styles to be used on the results.
WmsException - For any problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||