public class ApplicationServlet
extends javax.servlet.http.HttpServlet
The servlet can operate in two modes:
"applicationServer" is given the servlet
will start an server application. All servlet parameters are converted
to server properties, so there's no need for an extra property file.
However, the "tentackle.properties" is supported via <env-entry>
as in WebApplication.
"logger". If not
set the default logger will be used.| Constructor and Description |
|---|
ApplicationServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected org.tentackle.log.Logger |
createLogger()
Creates the logger for this servlet.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Execute the command given in the servlet request query string.
|
void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
String |
getServletInfo() |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet.
|
doDelete, doHead, doOptions, doTrace, getLastModified, service, serviceprotected org.tentackle.log.Logger createLogger()
Override this method if not using the default LOGGER.
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - Standard configuration object for an http servlet.javax.servlet.ServletException - Calling
super.init(config) may cause a servlet
exception to be thrown.public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletreq - HTTP servlet request, contains incoming command and
argumentsres - HTTP servlet responsejavax.servlet.ServletException - and IOException when invoking
methods of req or res.IOException - if internal errorpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletTentackle - distributed, domain- and model-driven