|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zfabrik.servletjsp.Constants
public final class Constants
Web applications are components of type com.zfabrik.ee.webapp.
Technically the Web app handling in z2 is just a thin wrapper around Jetty WebAppContexts.
A Web app can have the following web app specific properties:
environment/webServer.webapp.requiredPaths=/a, /second, /somemore.com.zfabrik.systemState.participation=environment/webWorkerUpthat defines under what circumstances the Web app will actually be initialized.
Web apps components have a resource folder. That folder must contain a sub folder WebContent
that holds the standard Java Web application structure of an expanded WAR file. In particular the
WebContent folder typically has a WEB-INF sub folder that contains
the deployment descriptor web.xml.
A typical Web app component looks like this:
z.properties
WebContent/
WEB-INF/
web.xml
index.html
All definitions in the WebContent folder will be interpreted by Jetty. Jetty
specific deployment descriptors (and anything else Jetty specific) can be supplied as
described in the Jetty documentation.
Following the standard, Web app components may provide libraries and Java classes in
WebContent/WEB-INF/lib and WebContent/WEB-INF/classes resp.
In z2 however the Web app component does not hold the Web app's Java source code. Instead
the component's default Java component serves as the main venue to provide
the Web app's implementation. See also IJavaComponent.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_IS_PAGE_IMPRESSION
set this in the request as attribute to mark a request as a page impression |
static String |
PATH
The context path of the Web app. |
static String |
PROXY_CONTEXT_PATH
header field to specify context path used by the client request. |
static String |
REQUIRED_PATHS
A Web app may specify a comma separated list of other Web apps that it requires to run. |
static String |
SERVER
The server component this web app is supposed to run on. |
static String |
WEBAPP_TYPE
Component type of web apps. |
| Constructor Summary | |
|---|---|
Constants()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WEBAPP_TYPE
public static final String PROXY_CONTEXT_PATH
public static final String ATTRIBUTE_IS_PAGE_IMPRESSION
public static final String REQUIRED_PATHS
webapp.requiredPaths=/a, /second, /somemore.
public static final String PATH
public static final String SERVER
environment/webServer.
| Constructor Detail |
|---|
public Constants()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||