370966: RewriteHandler javadoc config example fix
This commit is contained in:
parent
94c979f2b2
commit
9adabd0f2a
|
@ -55,25 +55,24 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
*
|
||||
* Here is a typical jetty.xml configuration would be: <pre>
|
||||
*
|
||||
* <Set name="handler">
|
||||
* <New id="Handlers" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
|
||||
* <New id="RewriteHandler" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
|
||||
* <Set name="rules">
|
||||
* <Array type="org.eclipse.jetty.rewrite.handler.Rule">
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="rewrite" class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
* <Set name="pattern">/*</Set>
|
||||
* <Set name="replacement">/test</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="rewrite" class="org.eclipse.jetty.rewrite.handler.ProxyRule">
|
||||
* <Set name="pattern">/*</Set>
|
||||
* <Set name="proxyTo">http://webtide.com:8080</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="response" class="org.eclipse.jetty.rewrite.handler.ResponsePatternRule">
|
||||
* <Set name="pattern">/session/</Set>
|
||||
|
@ -81,7 +80,7 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* <Set name="reason">Setting error code 400</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="header" class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
|
||||
* <Set name="pattern">*.jsp</Set>
|
||||
|
@ -89,7 +88,7 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* <Set name="value">dexter webserver</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="header" class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
|
||||
* <Set name="pattern">*.jsp</Set>
|
||||
|
@ -97,21 +96,21 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* <Set name="value">driven header purpose</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="redirect" class="org.eclipse.jetty.rewrite.handler.RedirectPatternRule">
|
||||
* <Set name="pattern">/test/dispatch</Set>
|
||||
* <Set name="location">http://jetty.eclipse.org</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="regexRewrite" class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
|
||||
* <Set name="regex">/test-jaas/$</Set>
|
||||
* <Set name="replacement">/demo</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="forwardedHttps" class="org.eclipse.jetty.rewrite.handler.ForwardedSchemeHeaderRule">
|
||||
* <Set name="header">X-Forwarded-Scheme</Set>
|
||||
|
@ -119,10 +118,10 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* <Set name="scheme">https</Set>
|
||||
* </New>
|
||||
* </Item>
|
||||
*
|
||||
*
|
||||
* <Item>
|
||||
* <New id="virtualHost" class="org.eclipse.jetty.rewrite.handler.VirtualHostRuleContainer">
|
||||
*
|
||||
*
|
||||
* <Set name="virtualHosts">
|
||||
* <Array type="java.lang.String">
|
||||
* <Item>eclipse.com</Item>
|
||||
|
@ -131,7 +130,7 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* <Item>www.eclipse.org</Item>
|
||||
* </Array>
|
||||
* </Set>
|
||||
*
|
||||
*
|
||||
* <Call name="addRule">
|
||||
* <Arg>
|
||||
* <New class="org.eclipse.jetty.rewrite.handler.CookiePatternRule">
|
||||
|
@ -141,33 +140,34 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
|
|||
* </New>
|
||||
* </Arg>
|
||||
* </Call>
|
||||
*
|
||||
*
|
||||
* </New>
|
||||
* </ Item>
|
||||
*
|
||||
* </Item>
|
||||
*
|
||||
* </Array>
|
||||
* </Set>
|
||||
*
|
||||
* <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>
|
||||
* <Item>
|
||||
* <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
||||
* </Item>
|
||||
* </Array>
|
||||
* </Set>
|
||||
* </New>
|
||||
* </Set>
|
||||
*
|
||||
* </New>
|
||||
* </Set>
|
||||
*
|
||||
* <Set name="handler">
|
||||
* <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
||||
* <Set name="handlers">
|
||||
* <Array type="org.eclipse.jetty.server.Handler">
|
||||
* <Item>
|
||||
* <Ref id="RewriteHandler"/>
|
||||
* </Item>
|
||||
* <Item>
|
||||
* <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
||||
* </Item>
|
||||
* <Item>
|
||||
* <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
||||
* </Item>
|
||||
* <Item>
|
||||
* <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
||||
* </Item>
|
||||
* </Array>
|
||||
* </Set>
|
||||
* </New>
|
||||
* </Set>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue