Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-11-02 03:27:33 +0000
committerGreg Wilkins2012-11-02 03:27:33 +0000
commitbca34dd87b33f53a560ffa88f004eaa060cf50c6 (patch)
tree842148522e16d7d03ee2cef7000d06643edc4660
parent52464a5ba63257cc6b91929ff24744d2ae880a11 (diff)
downloadorg.eclipse.jetty.project-bca34dd87b33f53a560ffa88f004eaa060cf50c6.tar.gz
org.eclipse.jetty.project-bca34dd87b33f53a560ffa88f004eaa060cf50c6.tar.xz
org.eclipse.jetty.project-bca34dd87b33f53a560ffa88f004eaa060cf50c6.zip
jetty-9 cleanups for doco fetches
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneContext.java11
-rw-r--r--jetty-distribution/src/main/resources/webapps/javadoc.xml9
2 files changed, 3 insertions, 17 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneContext.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneContext.java
index 44dfbcc986..6d04aaccd2 100644
--- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneContext.java
+++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneContext.java
@@ -21,13 +21,6 @@ package org.eclipse.jetty.embedded;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandler;
-/* ------------------------------------------------------------ */
-/**
- * A {@link ContextHandler} provides a common environment for multiple Handlers,
- * such as: URI context path, class loader, static resource base.
- *
- * Typically a ContextHandler is used only when multiple contexts are likely.
- */
public class OneContext
{
public static void main(String[] args) throws Exception
@@ -38,10 +31,10 @@ public class OneContext
context.setContextPath("/");
context.setResourceBase(".");
context.setClassLoader(Thread.currentThread().getContextClassLoader());
- server.setHandler(context);
-
context.setHandler(new HelloHandler());
+ server.setHandler(context);
+
server.start();
server.join();
}
diff --git a/jetty-distribution/src/main/resources/webapps/javadoc.xml b/jetty-distribution/src/main/resources/webapps/javadoc.xml
index 3fec5c07fe..71567efd93 100644
--- a/jetty-distribution/src/main/resources/webapps/javadoc.xml
+++ b/jetty-distribution/src/main/resources/webapps/javadoc.xml
@@ -1,13 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
-<!--
-Configure a custom context for the javadoc.
-
-This context contains only a ServletHandler with a default servlet
-to serve static html files and images.
--->
-
+<!--Configure a context for the javadoc -->
<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
<Set name="contextPath">/javadoc</Set>
<Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/javadoc/</Set>
@@ -21,6 +15,5 @@ to serve static html files and images.
<Set name="cacheControl">max-age=3600,public</Set>
</New>
</Set>
-
</Configure>

Back to the top