Package com.luciad.wms.server
Class TLcdWMSServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.luciad.wms.server.TLcdWMSServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class TLcdWMSServlet
extends jakarta.servlet.http.HttpServlet
This class represents a servlet implementation with support for the OGC Web Map Service (WMS)
1.1.1 / 1.3.0 standard, including the WMS SLD profile. The initialization of this servlet
(creation of a handler for all requests / responses, data loading, rendering configuration, ...)
is managed by the factory class
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)
.
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ALcdWMSCommandDispatcherFactory
createCommandDispatcherFactory
(jakarta.servlet.ServletConfig aServletConfig) Creates a command dispatcher factory for the given servlet configuration.void
destroy()
void
doGet
(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) void
doPost
(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) void
init
(jakarta.servlet.ServletConfig aServletConfig) static boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Constructor Details
-
TLcdWMSServlet
public TLcdWMSServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig aServletConfig) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Servlet
- Overrides:
destroy
in classjakarta.servlet.GenericServlet
-
createCommandDispatcherFactory
protected ALcdWMSCommandDispatcherFactory createCommandDispatcherFactory(jakarta.servlet.ServletConfig aServletConfig) throws jakarta.servlet.ServletException Creates a command dispatcher factory for the given servlet configuration. The command dispatcher factory configures the operational behavior of this servlet, such as the data to be offered and their styling. It is also responsible for creating acommand dipatcher
, which is used during the lifetime of this servlet to handle incoming requests.The command dispatcher factory class
By default, the implementation looks for the servlet parameterALcdWMSCommandDispatcherFactory
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 ofALcdOGCWMSCommandDispatcherFactory
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.- Parameters:
aServletConfig
- a configuration to initialize this servlet with- Returns:
- a command dispatcher factory for the given servlet configuration
- Throws:
jakarta.servlet.ServletException
- if the instantiation of the command dispatcher factory fails
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException, IOException - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException, IOException - Overrides:
doPost
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
getServletInfo
- Specified by:
getServletInfo
in interfacejakarta.servlet.Servlet
- Overrides:
getServletInfo
in classjakarta.servlet.GenericServlet
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-