|
||||||||||
| 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.web.ApplicationServlet
public class ApplicationServlet
This servlet connects IT Mill Toolkit Application to Web. This servlet replaces both WebAdapterServlet and AjaxAdapterServlet.
| Nested Class Summary | |
|---|---|
class |
ApplicationServlet.ParameterHandlerErrorImpl
Implementation of ParameterHandler.ErrorEvent interface. |
class |
ApplicationServlet.URIHandlerErrorImpl
Implementation of URIHandler.ErrorEvent interface. |
| Field Summary | |
|---|---|
protected static String |
DEFAULT_THEME
|
protected static String |
SESSION_ATTR_APPS
|
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 void |
addDirtyWindow(Application application,
Window window)
|
protected Map |
getDirtyWindows(Application app)
Gets the list of dirty windows in application. |
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. |
ThemeSource |
getThemeSource()
Returns the theme source. |
void |
init(ServletConfig servletConfig)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
boolean |
isDebugMode(Map parameters)
Checks if web adapter is in debug mode. |
protected void |
removeDirtyWindow(Application application,
Window window)
|
void |
repaintRequested(Paintable.RepaintRequestEvent event)
Receives repaint request events. |
protected void |
service(HttpServletRequest request,
HttpServletResponse response)
Receives standard HTTP requests from the public service method and dispatches them. |
void |
windowAttached(Application.WindowAttachEvent event)
Window attached |
void |
windowDetached(Application.WindowDetachEvent event)
Window detached. |
| 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
protected static final String SESSION_ATTR_APPS
protected static final String DEFAULT_THEME
| Constructor Detail |
|---|
public ApplicationServlet()
| Method Detail |
|---|
public void init(ServletConfig servletConfig)
throws ServletException
init in interface Servletinit in class GenericServletservletConfig - 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 HttpServletrequest - 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.
public String getResourceLocation(String theme,
ThemeResource resource)
theme - the Theme name.resource - the Theme resource.
public boolean isDebugMode(Map parameters)
parameters -
true if the web adapter is in debug mode. otherwise
false.public ThemeSource getThemeSource()
protected void addDirtyWindow(Application application,
Window window)
application - window -
protected void removeDirtyWindow(Application application,
Window window)
application - window - public void windowAttached(Application.WindowAttachEvent event)
Application.WindowAttachListener
windowAttached in interface Application.WindowAttachListenerevent - the window attach event.Application.WindowAttachListener.windowAttached(Application.WindowAttachEvent)public void windowDetached(Application.WindowDetachEvent event)
Application.WindowDetachListener
windowDetached in interface Application.WindowDetachListenerevent - the window detach event.Application.WindowDetachListener.windowDetached(Application.WindowDetachEvent)public void repaintRequested(Paintable.RepaintRequestEvent event)
repaintRequested in interface Paintable.RepaintRequestListenerevent - the repaint request event specifying the paintable source.Paintable.RepaintRequestListener.repaintRequested(Paintable.RepaintRequestEvent)protected Map getDirtyWindows(Application app)
app -
protected static String getResourcePath(ServletContext servletContext,
String path)
servletContext - path - the resource path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||