|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.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 |
| Method Summary | |
|---|---|
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)
Returns true if and only if the argument is not
null and is a Boolean object that represents the same
boolean value as this object. |
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. |
HttpSession |
getHttpSession()
Gets the http-session application is running in. |
List |
getOpenAjaxHubMessages()
OpenAjax Hub messaging. |
String |
getWindowFormAction(Window window)
Gets the form action for given window. |
int |
hashCode()
Returns the hash code value . |
void |
removeTransactionListener(ApplicationContext.TransactionListener listener)
Removes the transaction listener from this context. |
void |
setWindowFormAction(Window window,
String action)
Sets the form action for given window. |
protected void |
startTransaction(Application application,
HttpServletRequest request)
Notifies the transaction start. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getWindowFormAction(Window window)
By default, this action is "", which preserves the current url. Commonly
this is wanted to be set to application.getUrl.toString or
window.getUrl.toString in order to clean any local links
or parameters set from the action.
window - the Window for which the action is queried.
public void setWindowFormAction(Window window,
String action)
By default, this action is "", which preserves the current url. Commonly
this is wanted to be set to application.getUrl.toString or
window.getUrl.toString in order to clean any local links
or parameters set from the action.
window - the Window for which the action is set.action - the New action for the window.public File getBaseDirectory()
getBaseDirectory in interface ApplicationContextApplicationContext.getBaseDirectory()public HttpSession getHttpSession()
public Collection getApplications()
getApplications in interface ApplicationContextApplicationContext.getApplications()public static WebApplicationContext getApplicationContext(HttpSession session)
session - the HTTP session.
public boolean equals(Object obj)
true if and only if the argument is not
null and is a Boolean object that represents the same
boolean value as this object.
equals in class Objectobj - the object to compare with.Object.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public void addTransactionListener(ApplicationContext.TransactionListener listener)
addTransactionListener in interface ApplicationContextlistener - the listener to be added.ApplicationContext.addTransactionListener(com.itmill.toolkit.service.ApplicationContext.TransactionListener)public void removeTransactionListener(ApplicationContext.TransactionListener listener)
removeTransactionListener in interface ApplicationContextlistener - 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.public List getOpenAjaxHubMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||