|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
eu.webtoolkit.jwt.WtServlet
public abstract class WtServlet
The abstract JWt servlet class.
This servlet processes all requests for a JWt application. You need to specialize this class to provide an entry point for your web application.
For each new session createApplication(WEnvironment) is called to create a new WApplication object for that session.
The web controller that is implemented by this servlet validates each incoming request, and takes the appropriate action by either
notifying the application of an event, or serving a WResource.
| Constructor Summary | |
|---|---|
WtServlet()
Constructor. |
|
| Method Summary | |
|---|---|
abstract WApplication |
createApplication(WEnvironment env)
Creates a new application for a new session. |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Implement the GET request. |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Implement the POST request. |
Configuration |
getConfiguration()
Returns the JWt configuration. |
static ServletApi |
getServletApi()
This function is only to be used by JWt internals. |
void |
init(javax.servlet.ServletConfig config)
Initiate the internal servlet api. |
static boolean |
isAsyncSupported()
Returns whether asynchronous processing is supported, which is only the case when the servlet container implements the Servlet 3.0 API, and when this application is configured to support asynchronous processing. |
boolean |
limitPlainHtmlSessions()
|
java.lang.String |
readConfigurationProperty(java.lang.String name,
java.lang.String value)
|
void |
setConfiguration(Configuration configuration)
Sets the JWt configuration. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WtServlet()
Instantiates the servlet using the default configuration.
getConfiguration()| Method Detail |
|---|
public static ServletApi getServletApi()
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic Configuration getConfiguration()
The Configuration is only definitively constructed after WtServlet#init() is invoked. You should only modify the configuration from this method.
public void setConfiguration(Configuration configuration)
You should only set the configuration from the servlet constructor.
configuration - public abstract WApplication createApplication(WEnvironment env)
env - the environment that describes the new user (agent) and initial parameters
public static boolean isAsyncSupported()
public boolean limitPlainHtmlSessions()
public java.lang.String readConfigurationProperty(java.lang.String name,
java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||