org.richfaces.demo.ui
Class RewriteConfigurationProvider
java.lang.Object
org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
org.richfaces.demo.ui.RewriteConfigurationProvider
- All Implemented Interfaces:
- org.ocpsoft.common.pattern.Specialized<Object>, org.ocpsoft.common.pattern.Weighted, org.ocpsoft.rewrite.config.ConfigurationProvider<javax.servlet.ServletContext>
public class RewriteConfigurationProvider
- extends org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
This class provides the configuration for ReWrite.
- Author:
- Brian Leathem
|
Method Summary |
org.ocpsoft.rewrite.config.Configuration |
getConfiguration(javax.servlet.ServletContext context)
Uses the ReWrtie ConfigurationBuilder to define a set of rules used for the URL rewriting. |
int |
priority()
|
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider |
handles |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewriteConfigurationProvider
public RewriteConfigurationProvider()
priority
public int priority()
getConfiguration
public org.ocpsoft.rewrite.config.Configuration getConfiguration(javax.servlet.ServletContext context)
- Uses the ReWrtie ConfigurationBuilder to define a set of rules used for the URL rewriting. We define a single
rule that rewrites requests for the index page if the request is determined to originate from a mobile browser.
- Parameters:
context - the ServletContext
- Returns:
- the ReWrite Configuration
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.