org.apache.tapestry5.urlrewriter
Interface URLRewriterRule


public interface URLRewriterRule

Defines an URL rewriting rule. It is executed before any Tapestry request processing is done.


Method Summary
 RewriteRuleApplicability applicability()
          Defines when this rule will be applied.
 org.apache.tapestry5.services.Request process(org.apache.tapestry5.services.Request request, URLRewriteContext context)
          Processes a Request.
 

Method Detail

process

org.apache.tapestry5.services.Request process(org.apache.tapestry5.services.Request request,
                                              URLRewriteContext context)
Processes a Request. Implementations of 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.

Parameters:
request - a Request.
Returns:
request a Request.

applicability

RewriteRuleApplicability applicability()
Defines when this rule will be applied.

Returns:
a RewriteRuleApplicability instance.


Copyright © 2012. All Rights Reserved.