@UsesOrderedConfiguration(value=URLRewriterRule.class) public class URLRewriterImpl extends Object implements URLRewriter
URLRewriter
implementation.| Constructor and Description |
|---|
URLRewriterImpl(List<URLRewriterRule> rules)
Single constructor of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasRequestRules()
Tells whether there are registered URL rewrite rules.
|
org.apache.tapestry5.services.Request |
processRequest(org.apache.tapestry5.services.Request request)
Processes an incoming
Request. |
public URLRewriterImpl(List<URLRewriterRule> rules)
rules - a List of URLRewriterRule. It cannot
be null.public org.apache.tapestry5.services.Request processRequest(org.apache.tapestry5.services.Request request)
URLRewriterRequest.
This method must check if they need to rewrite this request. If no, it
must return the received request unchanged. This method cannot return
null.processRequest in interface URLRewriterrequest - a Request.Request. It
cannot be null.public boolean hasRequestRules()
URLRewriterhasRequestRules in interface URLRewritertrue if there are URL rewrite rules, false otherwise.Copyright © 2008-2013 Ars Machina Tecnologia da Informação Ltda.. All Rights Reserved.