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
 org.apache.tapestry5.services.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.
 org.apache.tapestry5.services.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

org.apache.tapestry5.services.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

org.apache.tapestry5.services.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 © 2012. All Rights Reserved.