You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2007/10/29 15:58:41 UTC
[api] Added RequestDispatcherOptions
I have added a RequestDispatcherOptions class (really just a Map, with
some constants for well-known options names) to these methods:
1) in SlingHttpServletRequest:
RequestDispatcher getRequestDispatcher(Resource resource,
RequestDispatcherOptions options)
2) in SlingScriptHelper
void include(String path,RequestDispatcherOptions options)
Here's from the javadocs of RequestDispatcherOptions:
* Typical use cases include:
* <ul>
* <li>
* Forcing a resource type, to render a Resource in a specific way,
* like for example <em>render myself in a suitable way for a
navigation box</em>.
* </li>
* <li>
* Adding selectors when including a Resource, like for example <em>add
* a "teaser" selector to the request that I'm including here</em>.
* </li>
* </ul>
Comments are welcome,
-Bertrand