Package com.luciad.ogc.csw.server
Class TLcdCSWServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.luciad.ogc.csw.server.TLcdCSWServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class TLcdCSWServlet
extends jakarta.servlet.http.HttpServlet
Servlet for starting an OGC Catalogue 2.0.2 / 3.0 server.
The servlet delegates CSW requests to a command dispatcher, which is created by an ALcdCSWCommandDispatcherFactory
.
The factory class name is specified by the mandatory init parameter csw.command.dispatcher.factory.class
.
- Since:
- 2017.0
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) Handles a GET request.protected void
doPost
(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) Handles a POST request.void
init
(jakarta.servlet.ServletConfig aServletConfig) Initializes the servlet.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
TLcdCSWServlet
public TLcdCSWServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig aServletConfig) throws jakarta.servlet.ServletException Initializes the servlet. The servlet configuration should point to the command dispatcher factory. The other contents of the config file depends on the command dispatcher factory. A command dispatcher is created.- Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException, IOException Handles a GET request. It passes the request on to the command dispatcher created in the init method.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException, IOException Handles a POST request. It passes the request on to the command dispatcher created in the init method.- Overrides:
doPost
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-