...
| Code Block | ||
|---|---|---|
| ||
<Configure class="org.mortbay.jetty.handler.ContextHandler"> <Set name="contextPath">/javadoc</Set> <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/javadoc</Set> <Call name="addHandler"> <Arg> <New class="org.mortbay.jetty.handler.ResourceHandler"/> </New> </Arg> </Call> </Set> </Configure> |
The ContextHandler is used to match urls of the form /javadoc/*, and to set up the location of the static resources (again $JETTY-HOME/javadoc). The ResourceHandler serves the resources.