# ========================================================================
# Configuration file for com.mortbay.Jetty.Server
#
# The format of this file is parsed by the com.mortbay.Util.PropertyTree
# class and interpreted by the com.mortbay.Jetty.Server class to 
# construct, configure and start 1 or more HttpServer instances.
# ------------------------------------------------------------------------

# ======================================================================== 
# Define the server instances to be configured by this file:
# SERVERS           - list if defined server names
# PROPERTY.*        - Definition of global properties
# PROPERTIES        - File of globl properties 
# servername.*      - PropertyTree describing server "servername".
#
# Defined global properties are:
# DefaultPageType   - The class name of the default com.mortbay.HTML.Page 
#                     type.
# ------------------------------------------------------------------------
SERVERS                                   : main
PROPERTY.DefaultPageType		  : com.mortbay.Jetty.JettyLaF


# ======================================================================== 
# Define the server instance named "main"
# CLASS               - The class name of the server. Must either be 
#                       com.mortbay.HTTP.HttpServer or a decendant.
# LISTENER.name.CLASS - HttpListener classname or decendant
# LISTENER.name.ADDRS - List of addresses and ports to listen on
# STACKS              - List of handler stack names.
# EXCEPTIONS          - List of exception handler stack names.
# PROPERTY.*          - Properties for this server
# PROPERTIES          - File of properties for this server.
#
# Defined server properties are:
# SessionMaxInactiveInterval - Max idle time in seconds before session death
# MinListenerThreads	     - Min listener threads per listener
# MaxListenerThreads	     - Max listener threads per listener
# MaxListenerThreadIdleMs    - Max idle time Ms before listen thread
#                              death
# HTTP1_0_KeepAlive          - Boolean for using Keep-Alive with HTTP/1.0
# MimeMap		     - Property file of MIME mappings
# 
# ------------------------------------------------------------------------
main.CLASS				  : com.mortbay.HTTP.HttpServer
main.STACKS				  : root
main.EXCEPTIONS                           : defaultEx
main.PROPERTY.SessionMaxInactiveInterval  : 3600
main.PROPERTY.MinListenerThreads	  : 1
main.PROPERTY.MaxListenerThreads	  : 20
main.PROPERTY.MaxListenerThreadIdleMs	  : 60000
main.PROPERTY.HTTP1_0_KeepAlive           : True
main.PROPERTY.MimeMap			  : %user.dir%/etc/Mime.prp
main.LISTENER.all.CLASS                   : com.mortbay.HTTP.HttpListener
main.LISTENER.all.ADDRS                   : 0.0.0.0:8080



# ======================================================================== 
# Define the handler instances handler stack "root" in server "main"
# PATHS           - List of PathMap path specifiactions for this stack
# HANDLERS        - List of handler names for this stack.
# EXCEPTIONS      - List of exception handler names for this stack.
# name.CLASS      - The classname for the handler "name"
# name.PROPERTY.* - Properties defined for handler "name"
# name.PROPERTIES - file of properties defined for handler "name"
# ------------------------------------------------------------------------
main.root.PATHS                           : /
main.root.HANDLERS			  : Log;Auth;Alias;Filter;File;Param;Session;Dynamic;Servlet;NotFound

main.root.Log.CLASS			  : com.mortbay.HTTP.Handler.LogHandler
main.root.Log.PROPERTY.File               : %user.dir%/log/demo.log
main.root.Log.PROPERTY.Append		  : False
main.root.Log.PROPERTY.LongForm           : True
main.root.Log.PROPERTY.CountContentLength : True

main.root.Auth.CLASS			  : com.mortbay.HTTP.Handler.BasicAuthHandler
main.root.Auth.PROPERTY.demo.LABEL	  : Demo Realm 
main.root.Auth.PROPERTY.demo.PATHS	  : /Auth
main.root.Auth.PROPERTY.demo.PROPERTY.jetty : jetty 

main.root.Alias.CLASS			  : com.mortbay.HTTP.Handler.TranslateHandler
main.root.Alias.PROPERTY./Translate%	  : /

main.root.Filter.CLASS			  : com.mortbay.HTTP.Handler.FilterHandler
main.root.Filter.PROPERTY.Html.CLASS      : com.mortbay.HTTP.Filter.HtmlFilter
main.root.Filter.PROPERTY.Html.PATHS      : /

main.root.File.CLASS				     : com.mortbay.HTTP.Handler.FileHandler
main.root.File.PROPERTY.AllowPut		     : False
main.root.File.PROPERTY.AllowDelete		     : False
main.root.File.PROPERTY.Indexes			     : index.html;index.htm
main.root.File.PROPERTY.FILES.FileBase.PATHS	     : /File%
main.root.File.PROPERTY.FILES.FileBase.DIRECTORY     : %user.dir%/FileBase

main.root.Param.CLASS				     : com.mortbay.HTTP.Handler.ParamHandler
main.root.Param.PROPERTY.CookiesAsParameters	     : False

main.root.Session.CLASS				     : com.mortbay.HTTP.Handler.SessionHandler

main.root.Dynamic.CLASS			             : com.mortbay.HTTP.Handler.ServletHandler
main.root.Dynamic.PROPERTY.PATHS		     : /servlet/
main.root.Dynamic.PROPERTY.CLASSPATH		     : %user.dir%/servlets
main.root.Dynamic.PROPERTY.AutoReloadDynamicServlets : True

main.root.Servlet.CLASS			             : com.mortbay.HTTP.Handler.ServletHandler
main.root.Servlet.PROPERTY.AutoReloadDynamicServlets : True
main.root.Servlet.PROPERTY.SERVLET.Dump.CLASS	     : com.mortbay.Servlets.Dump
main.root.Servlet.PROPERTY.SERVLET.Dump.PATHS	     : /
main.root.Servlet.PROPERTY.SERVLET.Dump.CHUNK	     : True

# JSP servlet configuration
main.root.Servlet.PROPERTY.SERVLET.gnujsp.PATHS		     : *.jsp
main.root.Servlet.PROPERTY.SERVLET.gnujsp.CLASS		     : org.gjt.jsp.JspServlet
main.root.Servlet.PROPERTY.SERVLET.gnujsp.CLASSPATH          : %user.dir%/lib/gnujsp.jar
main.root.Servlet.PROPERTY.SERVLET.gnujsp.ResourceBase       : file:./FileBase/
main.root.Servlet.PROPERTY.SERVLET.gnujsp.PROPERTY.scratchdir: %user.dir%/etc/jsp     
main.root.Servlet.PROPERTY.SERVLET.gnujsp.PROPERTY.debug     : true
main.root.Servlet.PROPERTY.SERVLET.gnujsp.PROPERTY.checkclass: true
main.root.Servlet.PROPERTY.SERVLET.gnujsp.PROPERTY.compiler  : builtin-javac -classpath %classpath%:%scratchdir%:%user.dir%/lib/gnujsp.jar -d %scratchdir% -deprecation %source% 

main.root.NotFound.CLASS		  : com.mortbay.HTTP.Handler.NotFoundHandler

# ======================================================================== 
# Exception handler stacks 'default' and 'terse' for server 'main'
# HANDLERS        - List of exception handler names for each stack.
# PATHS           - List of PathMap path specifiactions for each stack
# name.CLASS      - The classname for the handler "name"
# ------------------------------------------------------------------------
main.defaultEx.PATHS			  : /
main.defaultEx.HANDLERS			  : DefaultEx
main.defaultEx.DefaultEx.CLASS		  : com.mortbay.HTTP.Handler.DefaultExceptionHandler
