|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itmill.toolkit.terminal.gwt.server.WebApplicationContext
public class WebApplicationContext
Web application context for the IT Mill Toolkit applications.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.itmill.toolkit.service.ApplicationContext |
---|
ApplicationContext.TransactionListener |
Field Summary | |
---|---|
protected HashSet |
applications
|
protected WebBrowser |
browser
|
protected List |
listeners
|
protected HttpSession |
session
|
Method Summary | |
---|---|
protected void |
addApplication(Application application)
|
void |
addTransactionListener(ApplicationContext.TransactionListener listener)
Adds the transaction listener to this context. |
protected void |
endTransaction(Application application,
HttpServletRequest request)
Notifies the transaction end. |
boolean |
equals(Object obj)
|
static WebApplicationContext |
getApplicationContext(HttpSession session)
Gets the application context for HttpSession. |
Collection |
getApplications()
Gets the applications in this context. |
File |
getBaseDirectory()
Gets the application context base directory. |
WebBrowser |
getBrowser()
Get the web browser associated with this application context. |
HttpSession |
getHttpSession()
Gets the http-session application is running in. |
int |
hashCode()
|
protected void |
removeApplication(Application application)
|
void |
removeTransactionListener(ApplicationContext.TransactionListener listener)
Removes the transaction listener from this context. |
protected void |
startTransaction(Application application,
HttpServletRequest request)
Notifies the transaction start. |
void |
valueBound(HttpSessionBindingEvent arg0)
|
void |
valueUnbound(HttpSessionBindingEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List listeners
protected HttpSession session
protected final HashSet applications
protected WebBrowser browser
Method Detail |
---|
public File getBaseDirectory()
getBaseDirectory
in interface ApplicationContext
ApplicationContext.getBaseDirectory()
public HttpSession getHttpSession()
public Collection getApplications()
getApplications
in interface ApplicationContext
ApplicationContext.getApplications()
public static WebApplicationContext getApplicationContext(HttpSession session)
session
- the HTTP session.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void addTransactionListener(ApplicationContext.TransactionListener listener)
addTransactionListener
in interface ApplicationContext
listener
- the listener to be added.ApplicationContext.addTransactionListener(com.itmill.toolkit.service.ApplicationContext.TransactionListener)
public void removeTransactionListener(ApplicationContext.TransactionListener listener)
removeTransactionListener
in interface ApplicationContext
listener
- the listener to be removed.ApplicationContext.removeTransactionListener(com.itmill.toolkit.service.ApplicationContext.TransactionListener)
protected void startTransaction(Application application, HttpServletRequest request)
application
- request
- the HTTP request.protected void endTransaction(Application application, HttpServletRequest request)
application
- request
- the HTTP request.protected void removeApplication(Application application)
protected void addApplication(Application application)
public void valueBound(HttpSessionBindingEvent arg0)
valueBound
in interface HttpSessionBindingListener
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)
public void valueUnbound(HttpSessionBindingEvent event)
valueUnbound
in interface HttpSessionBindingListener
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
public WebBrowser getBrowser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |