|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@UsesOrderedConfiguration(value=PageRenderLinkTransformer.class) public interface PageRenderLinkTransformer
Allows the default 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Link transformPageRenderLink(Link defaultLink, PageRenderRequestParameters parameters)
defaultLink
- default Link for this requestparameters
- that define the request
PageRenderRequestParameters 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |