|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationContext
ApplicationContext
provides information about the running
context of the application. Each context is shared by all applications that
are open for one user. In a web-environment this corresponds to a
HttpSession.
Nested Class Summary | |
---|---|
static interface |
ApplicationContext.TransactionListener
Interface for listening to transaction events. |
Method Summary | |
---|---|
void |
addTransactionListener(ApplicationContext.TransactionListener listener)
Adds a transaction listener to this context. |
String |
generateApplicationResourceURL(ApplicationResource resource,
String urlKey)
Deprecated. this method is intended for terminal implementation only and is subject to change/removal from the interface (to AbstractCommunicationManager ) |
Collection<Application> |
getApplications()
Returns a collection of all the applications in this context. |
File |
getBaseDirectory()
Returns application context base directory. |
String |
getURLKey(URL context,
String relativeUri)
Deprecated. this method is intended for terminal implementation only and is subject to change/removal from the interface (to AbstractCommunicationManager ) |
boolean |
isApplicationResourceURL(URL context,
String relativeUri)
Deprecated. this method is intended for terminal implementation only and is subject to change/removal from the interface (to AbstractCommunicationManager ) |
void |
removeTransactionListener(ApplicationContext.TransactionListener listener)
Removes a transaction listener from this context. |
Method Detail |
---|
File getBaseDirectory()
Collection<Application> getApplications()
void addTransactionListener(ApplicationContext.TransactionListener listener)
addTransactionListener(com.vaadin.service.ApplicationContext.TransactionListener)
void removeTransactionListener(ApplicationContext.TransactionListener listener)
listener
- the listener to be removed.ApplicationContext.TransactionListener
@Deprecated String generateApplicationResourceURL(ApplicationResource resource, String urlKey)
AbstractCommunicationManager
)
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.
resource
- urlKey
- a key for the resource that can later be extracted from a URL
with getURLKey(URL, String)
@Deprecated boolean isApplicationResourceURL(URL context, String relativeUri)
AbstractCommunicationManager
)
context
- relativeUri
-
@Deprecated String getURLKey(URL context, String relativeUri)
AbstractCommunicationManager
)
generateApplicationResourceURL(ApplicationResource, String)
when
creating the URL.
context
- relativeUri
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |