public class ConfigurableTAPServlet
extends javax.servlet.http.HttpServlet
HTTP servlet fully configured with a TAP configuration file.
This configuration file may be specified in the initial parameter named TAPConfiguration.TAP_CONF_PARAMETER
of this servlet inside the WEB-INF/web.xml file. If none is specified, the file TAPConfiguration.DEFAULT_TAP_CONF_FILE
will be searched inside the directories of the classpath, and inside WEB-INF and META-INF.
| Constructor and Description |
|---|
ConfigurableTAPServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init(javax.servlet.ServletConfig config) |
protected void |
initXSLTStylesheet(java.util.Properties tapConfig)
Initialize the XSLT for /capabilities and /tables.
|
protected java.io.InputStream |
searchFile(java.lang.String filePath,
javax.servlet.ServletConfig config)
Search the given file name/path in the directories of the classpath, then inside WEB-INF and finally inside META-INF.
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected final java.io.InputStream searchFile(java.lang.String filePath,
javax.servlet.ServletConfig config)
filePath - A file name/path.config - Servlet configuration (containing also the context class loader - link with the servlet classpath).protected void initXSLTStylesheet(java.util.Properties tapConfig)
tapConfig - The content of the TAP configuration file.public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException