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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcdWMSCommandDispatcherFactorycreateCommandDispatcherFactory(jakarta.servlet.ServletConfig aServletConfig) Creates a command dispatcher factory for the given servlet configuration.voiddestroy()voiddoGet(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) voiddoPost(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) voidinit(jakarta.servlet.ServletConfig aServletConfig) static booleanDeprecated.This method has been deprecated.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods 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:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin 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 parameterALcdWMSCommandDispatcherFactoryfocuses 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 ofALcdOGCWMSCommandDispatcherFactoryshould 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:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
getServletInfo
- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin 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 istruethen 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.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-