Package muntjac :: Package terminal :: Package gwt :: Package server :: Module abstract_web_application_context :: Class AbstractWebApplicationContext
[hide private]
[frames] | no frames]

Class AbstractWebApplicationContext

source code

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

Base class for web application contexts that handles the common tasks.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addTransactionListener(self, listener)
Adds a transaction listener to this context.
source code
 
removeTransactionListener(self, listener)
Removes a transaction listener from this context.
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
 
valueBound(self, arg0) source code
 
valueUnbound(self, event) source code
 
getBrowser(self)
Get the web browser associated with this application context.
source code
 
getApplications(self)
Returns a collection of all the applications in this context.
source code
 
removeApplication(self, application) source code
 
generateApplicationResourceURL(self, resource, mapKey)
Generate a URL that can be used as the relative location of e.g.
source code
 
urlEncode(self, filename) source code
 
isApplicationResourceURL(self, context, relativeUri)
Tests if a URL is for an application resource (APP/...).
source code
 
getURLKey(self, context, relativeUri)
Gets the identifier (key) from an application resource URL.
source code

Inherited from service.application_context.IApplicationContext: getBaseDirectory

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addTransactionListener(self, listener)

source code 

Adds a transaction listener to this context. The transaction listener is called before and after each each request related to this session except when serving static resources.

The transaction listener must not be None.

Overrides: service.application_context.IApplicationContext.addTransactionListener
(inherited documentation)

removeTransactionListener(self, listener)

source code 

Removes a transaction listener from this context.

Parameters:
  • listener - the listener to be removed.
Overrides: service.application_context.IApplicationContext.removeTransactionListener
(inherited documentation)

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.

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.

valueBound(self, arg0)

source code 

See Also: HttpSessionBindingListener.valueBound

valueUnbound(self, event)

source code 

See Also: HttpSessionBindingListener.valueUnbound

getBrowser(self)

source code 

Get the web browser associated with this application context.

Because application context is related to the http session and server maintains one session per browser-instance, each context has exactly one web browser associated with it.

getApplications(self)

source code 

Returns a collection of all the applications in this context.

Each application context contains all active applications for one user.

Returns:
A collection containing all the applications in this context.
Overrides: service.application_context.IApplicationContext.getApplications
(inherited documentation)

generateApplicationResourceURL(self, resource, mapKey)

source code 

Generate a URL that can be used as the relative location of e.g. an ApplicationResource.

This method should only be called from the processing of a UIDL request, not from a background thread. The return value is null if used outside a suitable request.

Parameters:
  • resource
  • urlKey - a key for the resource that can later be extracted from a URL with getURLKey
Overrides: service.application_context.IApplicationContext.generateApplicationResourceURL
(inherited documentation)

isApplicationResourceURL(self, context, relativeUri)

source code 

Tests if a URL is for an application resource (APP/...).

Overrides: service.application_context.IApplicationContext.isApplicationResourceURL
(inherited documentation)

getURLKey(self, context, relativeUri)

source code 

Gets the identifier (key) from an application resource URL. This key is the one that was given to generateApplicationResourceURL when creating the URL.

Overrides: service.application_context.IApplicationContext.getURLKey
(inherited documentation)