@UsesOrderedConfiguration(value=PageRenderLinkTransformer.class) public interface PageRenderLinkTransformer
Link
for a page render request to be replaced.
This is a service, but also the contribution to the service, as a chain of command.
A contributed implementation of this interface is expected to identify which requests it wants to transform. The
transformPageRenderLink(Link, PageRenderRequestParameters)
method can return a Link
that is allowed
to differ from Tapestry normal default. Later, when that request is triggered,
decodePageRenderRequest(Request)
is required to reverse the operation, identifying the original parameters
so that request handling can continue.Modifier and Type | Method and Description |
---|---|
PageRenderRequestParameters |
decodePageRenderRequest(Request request)
Attempts to decode the page render request, to perform the opposite action for
transformPageRenderLink(Link, PageRenderRequestParameters) . |
Link |
transformPageRenderLink(Link defaultLink,
PageRenderRequestParameters parameters)
Transforms a page render link.
|
Link transformPageRenderLink(Link defaultLink, PageRenderRequestParameters parameters)
defaultLink
- default Link for this requestparameters
- that define the requestPageRenderRequestParameters decodePageRenderRequest(Request request)
transformPageRenderLink(Link, PageRenderRequestParameters)
. The transformer
is also responsible for identifying the locale in the request (as part of the path, or as a
query parameter or cookie) and setting the locale for the request.
This method will be invoked from the PageRenderDispatcher
and a non-null value returned from this method
will prevent the default ComponentEventLinkEncoder.decodePageRenderRequest(Request)
method from being
invoked.LocalizationSetter.setLocaleFromLocaleName(String)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.