Debian Codegraph @

jetty-home/src/main/resources/modules/demo.d/demo-moved-context.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">
3
4 <!-- Simple handler to redirect from old path to new -->
5 <Configure class="org.eclipse.jetty.server.handler.MovedContextHandler">
6 <Set name="contextPath">/oldContextPath</Set>
7 <Set name="redirectURI">/moved</Set>
8 <Set name="statusCode">302</Set>
9 <Set name="discardPathInContext">false</Set>
10 <Set name="discardQuery">false</Set>
11 <Set name="cacheControl">no-cache</Set>
12 </Configure>