public class SldServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
CFG_TEKEN_FILTER_SLD |
static String |
DEFAULT_STYLE |
static String |
OGCNS |
static String |
SENS |
static String |
SLDNS |
static String |
SLDTYPE_NAMEDSTYLE |
static String |
SLDTYPE_USERSTYLE |
| Constructor and Description |
|---|
SldServlet() |
| Modifier and Type | Method and Description |
|---|---|
Node |
createFeatureTypeStyle(Document doc,
String attribute,
String[] value,
String geometryType) |
Node |
createFeatureTypeStyle(Document doc,
String attribute,
String[] value,
String geometryType,
String sldPart) |
Node |
createNamedLayer(Document doc,
String featureName,
String attribute,
String[] value,
String geometryType,
String sldType) |
Node |
createNamedLayer(Document doc,
String featureName,
String attribute,
String[] value,
String geometryType,
String sldType,
boolean not,
String sldPart) |
Node |
createNamedLayer(Document doc,
String featureName,
String attribute,
String[] value,
String geometryType,
String sldType,
String sldPart) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
static String |
getDefaultLineStyle() |
static String |
getDefaultPointStyle() |
static String |
getDefaultPolygonStyle() |
Document |
getDefaultSld() |
String |
getServletInfo()
Returns a short description of the servlet.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes sld to response.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String OGCNS
public static final String SLDNS
public static final String SENS
public static final String SLDTYPE_NAMEDSTYLE
public static final String SLDTYPE_USERSTYLE
public static final String DEFAULT_STYLE
public static final String CFG_TEKEN_FILTER_SLD
protected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
request - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occurs
Request kan op twee manieren:
/services/CreateSLD?visibleValue=driehoek&id=5
visibleValue: In de SLD wordt deze waarde gebruikt in de 'LITERAL' voor
de vergelijking. (comme gescheiden) id: Gaat vervallen: gebruik themaId
(comme gescheiden) themaId(optioneel als clusterId is gegeven): de id's
van de themas waarvoor een sld gemaakt moet worden. (comme gescheiden)
clusterId(optioneel als themaId is gegeven): de id's van de clusters
waarvoor een sld gemaakt moet worden. (comme gescheiden)(alle thema's in
een cluster) sldType(o): Het type NamedLayer SLD (Ondersteund: UserStyle
(default/voor highlight), LayerFeatureConstraints)
of /services/CreateSLD/propname/type/propvalue/driehoek/id/5
propname: kolom voor filter propvalue: filter waarde id: themaid van
kaartlaagpublic Node createNamedLayer(Document doc, String featureName, String attribute, String[] value, String geometryType, String sldType)
public Node createNamedLayer(Document doc, String featureName, String attribute, String[] value, String geometryType, String sldType, String sldPart)
public Node createNamedLayer(Document doc, String featureName, String attribute, String[] value, String geometryType, String sldType, boolean not, String sldPart)
public Node createFeatureTypeStyle(Document doc, String attribute, String[] value, String geometryType)
public Node createFeatureTypeStyle(Document doc, String attribute, String[] value, String geometryType, String sldPart)
public static String getDefaultPolygonStyle() throws ParserConfigurationException
ParserConfigurationExceptionpublic static String getDefaultLineStyle() throws ParserConfigurationException
ParserConfigurationExceptionpublic static String getDefaultPointStyle() throws ParserConfigurationException
ParserConfigurationExceptionpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET method.doGet in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occursprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
POST method.doPost in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occurspublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletCopyright © 2016. All rights reserved.