org.apache.tapestry5.urlrewriter
Interface URLRewriteContext


public interface URLRewriteContext

Context passed to the process method of URLRewriterRule implementations, providing additional information that the rules might need to function.


Method Summary
 ComponentEventRequestParameters getComponentEventParameters()
          If the request being processed is processed in response to component event link creation, the ComponentEVentRequestParameters associated with that creation will be available via this method.
 PageRenderRequestParameters getPageParameters()
          If the request being processed is processed in response to pagelink creation, the PageRenderRequestParameters associated with that creation will be available via this method.
 boolean isIncoming()
           
 

Method Detail

isIncoming

boolean isIncoming()
Returns:
true if the "process" method of URLRewriterRule is being called for an incoming request.

getPageParameters

PageRenderRequestParameters getPageParameters()
If the request being processed is processed in response to pagelink creation, the PageRenderRequestParameters associated with that creation will be available via this method. Otherwise, this method returns null.

Returns:
the PageRenderRequestParameters associated with the link creation for this request, or null

getComponentEventParameters

ComponentEventRequestParameters getComponentEventParameters()
If the request being processed is processed in response to component event link creation, the ComponentEVentRequestParameters associated with that creation will be available via this method. Otherwise, this method returns null.

Returns:
the ComponentEventRequestParameters associated with the link creation for this request, or null


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.