The Servlet Service encapsulates the information provided by the ServletContext API, and makes it available from anywhere in the code.
# ------------------------------------------------------------------- # # 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 . . .
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: