<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

    <!-- General description -->
    <display-name>Biomoby in Java</display-name>
    <description>
       'Biomoby in Java' is a Java flavour of http://biomoby.org project.
       The curator is Martin Senger who welcomes your suggestions and
       comments at senger@ebi.ac.uk.
    </description>

    <!-- Context initialization parameters -->
    <context-param>
        <param-name>provider_name</param-name>
        <param-value>@PROVIDER_NAME@</param-value>
        <description>
            The full name of the administrator to whom questions
            and comments about this installation should be addressed.
            It appears in the generated HTML pages.
        </description>
    </context-param>
    <context-param>
        <param-name>provider_email</param-name>
        <param-value>@PROVIDER_EMAIL@</param-value>
        <description>
            The EMAIL address of the administrator to whom questions
            and comments about this installation should be addressed.
            It appears in the generated HTML pages.
        </description>
    </context-param>

    <!-- Servlet producing Moby Graphs -->
    <servlet>
        <servlet-name>@SERVLET_NAME_GRAPHS@</servlet-name>
        <description>
            It produces graphs of data and service types and service instances
            registered by any Biomoby registry. The users can customize
            both the appeareance and the contents of these graphs.
        </description>
        <servlet-class>org.biomoby.client.GraphsServlet</servlet-class>

        <init-param>
            <param-name>refresh_interval</param-name>
            <param-value>@REFRESH_INTERVAL@</param-value>
            <description>
                How often should be refreshed the cache containing data
                from  the BioMoby registry - in minutes. An integer.
            </description>
        </init-param>

        <init-param>
            <param-name>cache_dir</param-name>
            <param-value>@CACHE_DIR@</param-value>
            <description>
                An absolute path to a directory where the cached graphs
                will be created. By default (when this is empty) the
                files with graphs will be created inside the servlet
                context (in 'webapps/jmoby/cache/'). Related also to
                'cache_url' parameter.
            </description>
        </init-param>

        <init-param>
            <param-name>cache_url</param-name>
            <param-value>@CACHE_URL@</param-value>
            <description>
                The first part of a URL pointing to the cached objects.
                The servlet adds to this a directory subtree starting
                where 'cache_dir' (yet another parameter) ends.
            </description>
        </init-param>

        <init-param>
            <param-name>default_endpoint</param-name>
            <param-value>@DEFAULT_ENDPOINT@</param-value>
            <description>
                A URL of a BioMoby registry that is displayed by default.
                Leaving this parameter empty will bring here as a
                default an official BioMoby site in Canada.
            </description>
        </init-param>

        <init-param>
            <param-name>default_namespace</param-name>
            <param-value>@DEFAULT_NAMESPACE@</param-value>
            <description>
                A namespace of a BioMoby registry that is displayed by
                default. Leaving this parameter empty will bring here as
                a default an official BioMoby namespace (as used by the
                registry in Canada).
            </description>
        </init-param>

        <init-param>
            <param-name>dot_path</param-name>
            <param-value>@DOT_PATH@</param-value>
            <description>
                A full path to the 'dot' program (excluding the 'dot' itself
                and the ending slash). Use this only if the 'dot' program
                is not on the PATH used by Tomcat.
            </description>
        </init-param>

        <init-param>
            <param-name>proxySet</param-name>
            <param-value>@PROXY_SET@</param-value>
            <description>
                Set to 'true' if your Tomcat needs to find an HTTP proxy
                server, and if it does not have it set in its own configuration.
            </description>
        </init-param>

        <init-param>
            <param-name>http.proxyHost</param-name>
            <param-value>@PROXY_HOST@</param-value>
            <description>
                The HTTP proxy hostname.
            </description>
        </init-param>

        <init-param>
            <param-name>http.proxyPort</param-name>
            <param-value>@PROXY_PORT@</param-value>
            <description>
                The HTTP proxy port number.
            </description>
        </init-param>

        <init-param>
            <param-name>registry_cache_dir</param-name>
            <param-value>@REGISTRY_CACHE_DIR@</param-value>
            <description> An absolute path to a directory where the
Moby registry cached objects will be created. By default (when this is
empty) the cache will be created inside the servlet context (in
'webapps/jmoby/cache/'). Note that this is a different cache than the
one defined by 'cache_dir' (that one caches resulting images/graphs).
            </description>
        </init-param>

    </servlet>

    <!-- An example how to invoke this servlet:
         http://localhost:8080/jmoby/graphs -->
    <servlet-mapping>
        <servlet-name>@SERVLET_NAME_GRAPHS@</servlet-name>
        <url-pattern>@SERVLET_URL_GRAPHS@</url-pattern>
    </servlet-mapping>

</web-app>
