Client connector based on a Servlet context (JEE Web application context).
Here is a sample resource URI:
war:///path/to/my/resource/entry.txt
You can note that there is no authority which is denoted by the sequence of
three "/" characters. This connector is designed to be used inside a context
(e.g. inside a servlet based application) and subconsequently does not
require the use of a authority. Such URI are "relative" to the root of the
servlet context.
Here is a sample code excerpt that illustrates the way to use this connector:
Response response = getContext().getClientDispatcher().get("war:///myDir/test.txt");
if (response.isEntityAvailable()) {
//Do what you want to do.
}