codebaseContext parameter
Identifies the codebase to which custom application parameters are to be applied.
You can extract macros also from the codebase itself and reuse them. The following list contains
the macros that are extracted from the codebase by
default.
${originalCodebaseURL}, this contains the full codebase
${originalCodebaseURL.protocol}, for example, http
${originalCodebaseURL.host, for example, localhost
${originalCodebaseURL.port}, for example, 8080
${originalCodebaseURL.path}, for example, /myServer/v1files
${originalCodebaseURL.query}, extracts all the query parameters as a single string
${originalCodebaseURL.authority}, for example, localhost:8080Additionally, single query parameters can be extracted with the following pattern
${originalCodebaseURL.query.paramName}, where paramName is the
name of the query parameter in the codebase.
Example
The following example applies two custom application parameters to the codebase
http://localhost:8080/myServer/v1files/:
<param name="codebaseContext" value="http://localhost:8080/myServer/v1files/?id=
${customAppParameter.id}&sec=${customAppParameter.security_token}" />
<param name="customAppParameter1" value="<security_token=2da3sfs4>" />
<param name="customAppParameter2" value="<id=1234>" />The
final codebase that is used by the viewer is
http://localhost:8080/myServer/v1files/?id=1234&sec=2da3sfs4