WebApp Library Configuration package

Classes
struct wa_application
wa_chain *allw
void *conf
wa_connection *conn
wa_chain *deny
wa_boolean depl
wa_virtualhost *host
char *lpth
char *name
char *rpth
struct wa_connection
void *conf
char *name
char *parm
wa_provider *prov
struct wa_virtualhost
wa_chain *apps
char *name
int port

Global Functions
const char *wa_capplication(wa_application **a, const char *n, const char *p)
const char *wa_cconnection(wa_connection **c, const char *n, const char *p, const char *a)
const char *wa_cvirtualhost(wa_virtualhost **h, const char *n, int p)

Class "wa_application" Detail:
wa_application
struct wa_application {
wa_chain *allw;
void *conf;
wa_connection *conn;
wa_chain *deny;
wa_boolean depl;
wa_virtualhost *host;
char *lpth;
char *name;
char *rpth;
};

The WebApp Library application structure.
This structure holds all informations associated with an application. Applications are not grouped in virtual hosts inside the library as in specific cases (like when load balancing is in use), multiple applications can share the same root URL path, or (like when applications are shared), a single web application can be shared across multiple virtual host.

Class "wa_application" Variables:
allw
wa_chain *allw;
The list of allowed (can be served by the web server) URL-patterns.

conf
void *conf;
The provider-specific configuration member for this application.

conn
wa_connection *conn;
The application connection.

deny
wa_chain *deny;
The list of denied (can't be served by the web server) URL-patterns.

depl
wa_boolean depl;
Wether this web-application has been deployed or not.

host
wa_virtualhost *host;
The application virtual host.

lpth
char *lpth;
The local expanded application path (if any).

name
char *name;
The application name.

rpth
char *rpth;
The application root URL path.

Class "wa_connection" Detail:
wa_connection
struct wa_connection {
void *conf;
char *name;
char *parm;
wa_provider *prov;
};

The WebApp Library connection structure.
This structure holds all required data required by a connection provider to connect to a web-application container and to handle HTTP requests.

Class "wa_connection" Variables:
conf
void *conf;
The provider-specific configuration member for this connection.

name
char *name;
The connection name.

parm
char *parm;
The connection parameter (as in the configuration file).

prov
wa_provider *prov;
The connection provider.

Class "wa_virtualhost" Detail:
wa_virtualhost
struct wa_virtualhost {
wa_chain *apps;
char *name;
int port;
};

The WebApp Library virtual host structure.
This structure holds informations related to a virtual host under which web-applications are deployed.

Class "wa_virtualhost" Variables:
apps
wa_chain *apps;
The list of all applications deployed in this virtual hosts.

name
char *name;
The virtual host name.

port
int port;
The virtual host port.

Global Functions Detail:
wa_capplication
const char *wa_capplication(wa_application **a, const char *n, const char *p);
Allocate and set up a wa_application member.
Parameters
a - Where the pointer to where the wa_application member must be stored.
n - The application name. This parameter will be passed to the application container as its unique selection key within its array of deployable applications (for example the .war file name).
p - The root URL path of the web application to deploy.
Return Value
NULL on success or an error message on faliure.

wa_cconnection
const char *wa_cconnection(wa_connection **c, const char *n, const char *p, const char *a);
Allocate and set up a wa_connection member.
Parameters
c - Where the pointer to where the wa_connection member must be stored.
n - The connection name.
p - The connection provider name.
a - The connection provider parameter from a configuration file.
Return Value
NULL on success or an error message on faliure.

wa_cvirtualhost
const char *wa_cvirtualhost(wa_virtualhost **h, const char *n, int p);
Allocate and set up a wa_virtualhost member.
Parameters
h - The pointer to where the wa_virtualhost member must be stored.
n - The virtual host base name.
p - The virtual host primary port.
Return Value
NULL on success or an error message on faliure.

Copyright © 2001, The Apache Software Foundation.
All Rights Reserved.
Generated with
ScanDoc 0.14 on Wed Jul 14 12:03:11 2004