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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createCommandDispatcherFactory(jakarta.servlet.ServletConfig aServletConfig)
    Creates a command dispatcher factory for the given servlet configuration.
    void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TLcdWMSServlet

      public TLcdWMSServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig aServletConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.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 a 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.

      By default, the implementation looks for the servlet parameter "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 class jakarta.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 class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getServletInfo

      public String getServletInfo()
      Specified by:
      getServletInfo in interface jakarta.servlet.Servlet
      Overrides:
      getServletInfo in class jakarta.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 is true 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.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.