[jetty-dev] [jira] (JETTY-1525) org.eclipse.jetty.server.Server returns 200 for invalid path

"Jan Bartel (JIRA)" <[email protected]> Tue, 3 Jul 2012 08:21:21 -0500 (CDT)
Newsgroups gmane.comp.java.jetty.general
Message-ID <1813076058.20244.1341321681413.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
Jan Bartel
commented on JETTY-1525

org.eclipse.jetty.server.Server returns 200 for invalid path

Hi Justin,

The ContextHandlerCollection by itself will just select the best path match of the contexts registered with it to handle a request. It is usually used in conjunction with the DefaultHandler, which handles the request (and returns a 404) when no other context handled it. This is the equivalent structure in the jetty.xml file:

<Set name="handler">

<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">

<Set name="handlers">

<Array type="org.eclipse.jetty.server.Handler">

<Item>

<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>

</Item>

<Item>

<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>

</Item>

</Array>

</Set>

</New>

</Set>

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators .

For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email