public class MapFeatureServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
MapFeatureServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Create a KML file from a map layer.
|
void |
init()
Initialize the servlet state.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
locations
parameter
specifies which items within the geographic layer should be used. The
shape names should match those in the DBF files. Multiple shape names
are separated by |, the pipe character.doGet
in class javax.servlet.http.HttpServlet
req
- the request the client has made of the servletres
- the response the servlet sends to the clientjavax.servlet.ServletException
- if the request could not be handledjava.io.IOException
- if an input or output error is detected when the
servlet handles the requestpublic void init()
baseMapUrl
and mapLayers
, which
determine the locations of the ESRI map files. The parameter
color
specifies the color that the map file is drawn with,
while writerClass
determines the FormatWriter used to write
the data to the output stream.init
in class javax.servlet.GenericServlet