blob: cac4764ffa0858d91b1aabfd803eae9306ca9366 [file] [log] [blame]
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<document>
<properties>
<title>Turbine Services - Servlet Service</title>
</properties>
<body>
<section name="Servlet Service">
<p>
The Servlet Service encapsulates the information provided by the
ServletContext API, and makes it available from anywhere in the code.
</p>
</section>
<section name="Configuration">
<source><![CDATA[
# -------------------------------------------------------------------
#
# S E R V I C E S
#
# -------------------------------------------------------------------
# Classes for Turbine Services should be defined here.
# Format: services.[name].classname=[implementing class]
#
# To specify properties of a service use the following syntax:
# service.[name].[property]=[value]
services.ServletService.classname=\
org.apache.turbine.services.servlet.TurbineServletService
.
.
.
]]></source>
</section>
<section name="Usage">
<p>
Upon initialization, this service remembers the servlet configuration
for the application, and is able to provide back information about
this configuration. After the service has been initialized, it
supports the following functionality:
<ul>
<li>
Create an URL from a URI string which is relative to the context.
</li>
<li>
Provide the complete filesystem path for a given URI.
</li>
<li>
Expand a string that points to a relative path or path list,
leaving it as an absolute path based on the servlet context.
</li>
</ul>
</p>
</section>
</body>
</document>