Package muntjac :: Package terminal :: Package gwt :: Package server :: Module web_application_context :: Class WebApplicationContext
[hide private]
[frames] | no frames]

Class WebApplicationContext

source code

                                                object --+        
                                                         |        
           service.application_context.IApplicationContext --+    
                                                             |    
abstract_web_application_context.AbstractWebApplicationContext --+
                                                                 |
                                                                WebApplicationContext

Web application context for Muntjac applications.

This is automatically added as a HttpSessionBindingListener when added to a HttpSession.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self)
Creates a new Web Application Context.
source code
 
__getstate__(self) source code
 
__setstate__(self, d) source code
 
startTransaction(self, application, request)
Sends a notification that a transaction is starting.
source code
 
endTransaction(self, application, request)
Sends a notification that a transaction has ended.
source code
 
valueUnbound(self, event) source code
 
reinitializeSession(self)
Discards the current session and creates a new session with the same contents.
source code
 
getBaseDirectory(self)
Gets the application context base directory.
source code
 
getHttpSession(self)
Gets the http-session application is running in.
source code
 
addApplication(self, application) source code
 
getApplicationManager(self, application, servlet)
Gets communication manager for an application.
source code

Inherited from abstract_web_application_context.AbstractWebApplicationContext: addTransactionListener, generateApplicationResourceURL, getApplications, getBrowser, getURLKey, isApplicationResourceURL, removeApplication, removeTransactionListener, urlEncode, valueBound

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
getApplicationContext(cls, session, servlet)
Gets the application context for an HttpSession.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Creates a new Web Application Context.

Overrides: object.__init__

startTransaction(self, application, request)

source code 

Sends a notification that a transaction is starting.

Parameters:
  • application - The application associated with the transaction.
  • request - the HTTP request that triggered the transaction.
Overrides: abstract_web_application_context.AbstractWebApplicationContext.startTransaction
(inherited documentation)

endTransaction(self, application, request)

source code 

Sends a notification that a transaction has ended.

Parameters:
  • application - The application associated with the transaction.
  • request - the HTTP request that triggered the transaction.
Overrides: abstract_web_application_context.AbstractWebApplicationContext.endTransaction
(inherited documentation)

valueUnbound(self, event)

source code 
Overrides: abstract_web_application_context.AbstractWebApplicationContext.valueUnbound
(inherited documentation)

reinitializeSession(self)

source code 

Discards the current session and creates a new session with the same contents. The purpose of this is to introduce a new session key in order to avoid session fixation attacks.

getBaseDirectory(self)

source code 

Gets the application context base directory.

Returns:
The application base directory or None if the application has no base directory.
Overrides: service.application_context.IApplicationContext.getBaseDirectory

See Also: ApplicationContext.getBaseDirectory

getHttpSession(self)

source code 

Gets the http-session application is running in.

Returns:
HttpSession this application context resides in.

getApplicationContext(cls, session, servlet)
Class Method

source code 

Gets the application context for an HttpSession.

Parameters:
  • session - the HTTP session.
Returns:
the application context for HttpSession.

getApplicationManager(self, application, servlet)

source code 

Gets communication manager for an application.

If this application has not been running before, a new manager is created.

Returns:
CommunicationManager