RichFaces Showcase 4.3.0.Final

org.richfaces.demo.ui
Class RewriteConfigurationProvider

java.lang.Object
  extended by org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
      extended by 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

Constructor Summary
RewriteConfigurationProvider()
           
 
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
 

Constructor Detail

RewriteConfigurationProvider

public RewriteConfigurationProvider()
Method Detail

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

RichFaces Showcase 4.3.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.