|
||||||||||
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
com.itmill.toolkit.terminal.gwt.server.ApplicationServlet
public class ApplicationServlet
This servlet connects IT Mill Toolkit Application to Web.
Nested Class Summary | |
---|---|
class |
ApplicationServlet.ParameterHandlerErrorImpl
Implementation of ParameterHandler.ErrorEvent interface. |
class |
ApplicationServlet.RequestError
|
class |
ApplicationServlet.URIHandlerErrorImpl
Implementation of URIHandler.ErrorEvent interface. |
Field Summary | |
---|---|
protected static HashMap<Application,CommunicationManager> |
applicationToAjaxAppMgrMap
|
static String |
REQUEST_APPSTYLE
This request attribute is used to add styles to the main element. |
static String |
REQUEST_FRAGMENT
If the attribute is present in the request, a html fragment will be written instead of a whole page. |
static String |
REQUEST_WIDGETSET
This request attribute forces widgetset used; e.g for portlets that can not have different widgetsets. |
static String |
VERSION
Version number of this release. |
static String |
VERSION_BUILD
Builds number. |
static int |
VERSION_MAJOR
Major version number. |
static int |
VERSION_MINOR
Minor version number. |
Constructor Summary | |
---|---|
ApplicationServlet()
|
Method Summary | |
---|---|
protected String |
getNoScriptMessage()
Returns a message printed for browsers without scripting support or if browsers scripting support is disabled. |
String |
getResourceLocation(String theme,
ThemeResource resource)
Gets relative location of a theme resource. |
protected static String |
getResourcePath(ServletContext servletContext,
String path)
Gets resource path using different implementations. |
void |
init(ServletConfig servletConfig)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
boolean |
isProductionMode()
Returns true if the servlet is running in production mode. |
protected void |
service(HttpServletRequest request,
HttpServletResponse response)
Receives standard HTTP requests from the public service method and dispatches them. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 |
Field Detail |
---|
public static final String VERSION
public static final int VERSION_MAJOR
public static final int VERSION_MINOR
public static final String VERSION_BUILD
public static final String REQUEST_FRAGMENT
public static final String REQUEST_WIDGETSET
public static final String REQUEST_APPSTYLE
protected static HashMap<Application,CommunicationManager> applicationToAjaxAppMgrMap
Constructor Detail |
---|
public ApplicationServlet()
Method Detail |
---|
public void init(ServletConfig servletConfig) throws ServletException
init
in interface Servlet
init
in class GenericServlet
servletConfig
- the object containing the servlet's configuration and
initialization parameters
ServletException
- if an exception has occurred that interferes with the
servlet's normal operation.protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service
in class HttpServlet
request
- the object that contains the request the client made of the
servlet.response
- the object that contains the response the servlet returns to
the client.
ServletException
- if an input or output error occurs while the servlet is
handling the TRACE request.
IOException
- if the request for the TRACE cannot be handled.protected String getNoScriptMessage()
public String getResourceLocation(String theme, ThemeResource resource)
theme
- the Theme name.resource
- the Theme resource.
protected static String getResourcePath(ServletContext servletContext, String path)
servletContext
- path
- the resource path.
public boolean isProductionMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |