public class TLcdWMSServlet
extends javax.servlet.http.HttpServlet
ALcdOGCWMSCommandDispatcherFactory
, which is created through
the method createCommandDispatcherFactory(ServletConfig)
. By default, it creates an instance
through reflection, based on the class name specified by the servlet configuration parameter
command.dispatcher.factory.class
.
All request and response handling is delegated to a single ALcdWMSCommandDispatcher
instance,
which is created through
ALcdOGCWMSCommandDispatcherFactory.createOGCWMSCommandDispatcherInstance(ServletConfig)
.
Constructor and Description |
---|
TLcdWMSServlet() |
Modifier and Type | Method and Description |
---|---|
protected ALcdWMSCommandDispatcherFactory |
createCommandDispatcherFactory(javax.servlet.ServletConfig aServletConfig)
Creates a command dispatcher factory for the given servlet configuration.
|
void |
destroy() |
void |
doGet(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse) |
void |
doPost(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse) |
String |
getServletInfo() |
void |
init(javax.servlet.ServletConfig aServletConfig) |
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig aServletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected ALcdWMSCommandDispatcherFactory createCommandDispatcherFactory(javax.servlet.ServletConfig aServletConfig) throws javax.servlet.ServletException
command dipatcher
, which is used during the lifetime of
this servlet to handle incoming requests.
The command dispatcher factory class ALcdWMSCommandDispatcherFactory
focuses on supporting
the OGC WMS 1.1.1 / 1.3.0 standard, which defines the GetCapabilities, GetMap and GetFeatureInfo requests.
To support the WMS SLD profile, an instance of ALcdOGCWMSCommandDispatcherFactory
should be returned that registers support for the additional methods DescribeLayer, GetLegendGraphic
and SLD-enabled GetMap requests.
"command.dispatcher.factory.class"
and creates a command dispatcher factory via reflection.aServletConfig
- a configuration to initialize this servlet withjavax.servlet.ServletException
- if the instantiation of the command dispatcher factory failspublic void doGet(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public static boolean isClassTraceOn()
true
if tracing is enabled for this class.