public class WebApps
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static WebApp |
_wapp
The application for the whole installation.
|
Constructor and Description |
---|
WebApps() |
Modifier and Type | Method and Description |
---|---|
static WebApp |
getCurrent()
Returns this Web application, or null if not available.
|
static java.lang.String |
getEdition()
Returns the edition, such as EE, PE and CE.
|
static boolean |
getFeature(java.lang.String feature)
Returns whether the specified feature is supported.
|
protected static WebApp _wapp
WEB-INF/lib
.public static WebApp getCurrent()
Notice that this method is useful only if ZK libraries are
NOT shared by multiple Web application (in other words,
they are installed under WEB-INF/lib
).
If you share ZK libraries among multiple applications (such as
installing them under shared/lib
), the returned instance could
be any of them.
If you share ZK libraries among multiple applications, you could retrieve the current Web application by one of the following depending your context.
Sessions.getCurrent(false).getWebApp();
Sessions.getCurrent(boolean)
returns null if it executes
in a working thread (without Execution
).WebManager.getWebManager(servletContext).getWebApp();
WebManager.getWebManager(javax.servlet.ServletContext)
requires a servlet context.public static boolean getFeature(java.lang.String feature)
feature
- which feature to check. Supported features:
professional
or pe
enterprise
or ee
public static java.lang.String getEdition()
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.