|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.WebApps
public class WebApps
Utilities related to the Web application.
Field Summary | |
---|---|
protected static WebApp |
_wapp
The application for the whole installation. |
Constructor Summary | |
---|---|
WebApps()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static WebApp _wapp
WEB-INF/lib
.
Constructor Detail |
---|
public WebApps()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |