Re: Basic Examples

Splash Forums Rewrite Users Basic Examples Re: Basic Examples

#22307

bean77
Participant

I think it does startup correctly:

10:29:53,450 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) RewriteFilter starting up…

10:29:53,458 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.servlet.spi.RewriteLifecycleListener []

10:29:53,465 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [1] com.ocpsoft.rewrite.servlet.spi.RequestCycleWrapper [com.ocpsoft.rewrite.servlet.impl.HttpRewriteRequestCycleWrapper<0>]

10:29:53,472 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [1] com.ocpsoft.rewrite.spi.RewriteProvider [com.ocpsoft.rewrite.servlet.impl.DefaultHttpRewriteProvider<0>]

10:29:53,479 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [1] com.ocpsoft.rewrite.servlet.spi.InboundRewriteProducer [com.ocpsoft.rewrite.servlet.impl.HttpInboundRewriteProducer<0>]

10:29:53,489 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [1] com.ocpsoft.rewrite.servlet.spi.OutboundRewriteProducer [com.ocpsoft.rewrite.servlet.impl.HttpOutboundRewriteProducer<0>]

10:29:53,503 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.servlet.spi.ContextListener []

10:29:53,518 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.servlet.spi.RequestListener []

10:29:53,534 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.servlet.spi.RequestParameterProvider []

10:29:53,548 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.spi.ExpressionLanguageProvider []

10:29:53,567 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.rewrite.spi.InvocationResultHandler []

10:29:53,573 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [0] com.ocpsoft.common.spi.ServiceEnricher []

10:29:53,579 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) Loaded [1] com.ocpsoft.rewrite.config.ConfigurationProvider [com.example.UrlRewriteConfig<10>]

10:29:53,584 INFO [com.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-7) RewriteFilter initialized.

Here is my config:

return ConfigurationBuilder.begin() .defineRule().when(Path.matches(“/html/{resource}”)).perform(Forward.to(“/{resource}”))

.addRule(Join.path(“/{file}.jsp”).to(“/{file}”).where(“file”).matches(“.*”));