Java jetty ContextHandler中的正则表达式上下文路径?

Java jetty ContextHandler中的正则表达式上下文路径?,java,jetty,jetty-8,Java,Jetty,Jetty 8,我正在尝试使用jetty上下文配置(配置放在$jetty_HOME/context/中)。我正在尝试配置一个ContextHandler,它负责将静态文件作为一个javadoc.xml提供服务。我的配置文件如下所示: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.ec

我正在尝试使用jetty上下文配置(配置放在$jetty_HOME/context/中)。我正在尝试配置一个
ContextHandler
,它负责将静态文件作为一个
javadoc.xml
提供服务。我的配置文件如下所示:

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.eclipse.org/configure.dtd">

<!--
Configure a custom context for serving javadoc as static resources 
-->

<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
  <Set name="contextPath">/*/html</Set>

  <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/html/</Set>
  <Set name="handler">
    <New class="org.eclipse.jetty.server.handler.ResourceHandler">
      <Set name="welcomeFiles">
        <Array type="String">
          <Item>index.html</Item>
        </Array>
      </Set>
      <Set name="cacheControl">max-age=3600,public</Set>
    </New>
  </Set>
</Configure>

/*/html
/html/
index.html
最大年龄=3600岁,公共
我想要的是能够为像/*/html/这样的任何路径提供服务器,但这不会响应像/foo/html这样的调用

如何配置服务器的路径,如/foo/html/bar/html/baz/html? 如果我将上下文路径设置为

<Set name="contextPath">/foo/html</Set><!--this one works  -->
<Set name="contextPath">/bar/html</Set> <!-- this one works  -->

<Set name="contextPath">/baz/html</Set> <!-- this one works  -->

<Set name="contextPath">/*/html</Set> <!-- this one does not !  -->
/foo/html
/bar/html
/baz/html
/*/html