I think I have the answer. The following data file can create a service that allows you to add redirections. It can serve as a working basis.
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> <service ref="rewriteHandler" interface="org.eclipse.jetty.server.Handler"/> <bean id="rewriteHandler" class="org.eclipse.jetty.rewrite.handler.RewriteHandler"> <property name="rewriteRequestURI" value="true"/> <property name="rewritePathInfo" value="false"/> <property name="originalPathAttribute" value="requestedPath"/> <property name="rules"> <list> <ref component-id="redirectPatternRule"/> </list> </property> </bean> <bean id="redirectPatternRule" class="org.eclipse.jetty.rewrite.handler.RedirectPatternRule"> <property name="terminating" value="true"/> <property name="pattern" value="/console"/> <property name="location" value="/system/console"/> </bean> </blueprint> -- View this message in context: http://karaf.922171.n3.nabble.com/Jetty-dynamic-redirection-tp4045668p4045679.html Sent from the Karaf - User mailing list archive at Nabble.com.
