Class WebApplicationContext

Web application context for the IT Mill Toolkit applications.

Synopsis

VERSION@

Since

3.1

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.WebApplicationContext

addTransactionListener(ApplicationContext.TransactionListener)

Parameters

listener

The listener to be added.

Description copied from interface: addTransactionListener

Add transaction listener to this context.

getApplicationContext(HttpSession)

Parameters

return

application context for HttpSession.

Get application context for HttpSession.

getApplications()

Parameters

return

Collection containing all applications in this context

Description copied from interface: getApplications

Get the applications in this context. Get all applications in this context. Each application context contains all applications that are open for one user.

getBaseDirectory()

Parameters

return

The application base directory

Description copied from interface: getBaseDirectory

Returns application context base directory. Typically an application is deployed in a such way that is has application directory. For web applications this directory is the root directory of the web applications. In some cases application might not have application directory (for example web applications running inside of war).

getHttpSession()

Parameters

return

HttpSession this application context resides in

Get the http-session application is running in.

getWindowFormAction(Window)

Parameters

window

Window for which the action is queried

return

Action to be set into Form action attribute

Get the form action for given 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.

removeTransactionListener(ApplicationContext.TransactionListener)

Parameters

listener

The listener to be removed.

Description copied from interface: removeTransactionListener

Remove transaction listener from this context.

setWindowFormAction(Window, String)

Parameters

window

Window for which the action is set

action

New action for the window.

Set the form action for given 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.