|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.server.AbstractWebApplicationContext com.vaadin.terminal.gwt.server.WebApplicationContext
public class WebApplicationContext
Web application context for Vaadin applications.
This is automatically added as a HttpSessionBindingListener
when
added to a HttpSession
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.service.ApplicationContext |
---|
ApplicationContext.TransactionListener |
Field Summary | |
---|---|
protected HttpSession |
session
|
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractWebApplicationContext |
---|
applications, applicationToAjaxAppMgrMap, browser, listeners |
Constructor Summary | |
---|---|
protected |
WebApplicationContext()
Creates a new Web Application Context. |
Method Summary | |
---|---|
protected void |
addApplication(Application application)
|
protected void |
endTransaction(Application application,
Object request)
Sends a notification that a transaction has ended. |
static WebApplicationContext |
getApplicationContext(HttpSession session)
Gets the application context for an HttpSession. |
CommunicationManager |
getApplicationManager(Application application,
AbstractApplicationServlet servlet)
Gets communication manager for an application. |
File |
getBaseDirectory()
Gets the application context base directory. |
HttpSession |
getHttpSession()
Gets the http-session application is running in. |
void |
reinitializeSession()
Discards the current session and creates a new session with the same contents. |
protected void |
startTransaction(Application application,
Object request)
Sends a notification that a transaction is starting. |
void |
valueUnbound(HttpSessionBindingEvent event)
|
Methods inherited from class com.vaadin.terminal.gwt.server.AbstractWebApplicationContext |
---|
addTransactionListener, generateApplicationResourceURL, getApplications, getBrowser, getLastRequestTime, getTotalSessionTime, getURLKey, isApplicationResourceURL, removeApplication, removeTransactionListener, setLastRequestTime, valueBound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient HttpSession session
Constructor Detail |
---|
protected WebApplicationContext()
Method Detail |
---|
protected void startTransaction(Application application, Object request)
AbstractWebApplicationContext
startTransaction
in class AbstractWebApplicationContext
application
- The application associated with the transaction.request
- the HTTP or portlet request that triggered the transaction.protected void endTransaction(Application application, Object request)
AbstractWebApplicationContext
endTransaction
in class AbstractWebApplicationContext
application
- The application associated with the transaction.request
- the HTTP or portlet request that triggered the transaction.public void valueUnbound(HttpSessionBindingEvent event)
valueUnbound
in interface HttpSessionBindingListener
valueUnbound
in class AbstractWebApplicationContext
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
public void reinitializeSession()
public File getBaseDirectory()
ApplicationContext.getBaseDirectory()
public HttpSession getHttpSession()
public static WebApplicationContext getApplicationContext(HttpSession session)
session
- the HTTP session.
protected void addApplication(Application application)
public CommunicationManager getApplicationManager(Application application, AbstractApplicationServlet servlet)
application
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |