|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.linktransform.LinkTransformerImpl
public class LinkTransformerImpl
Constructor Summary | |
---|---|
LinkTransformerImpl(ComponentEventLinkTransformer componentEventLinkTransformer,
PageRenderLinkTransformer pageRenderLinkTransformer)
|
Method Summary | |
---|---|
ComponentEventRequestParameters |
decodeComponentEventRequest(Request request)
Attempts to decode the page render request, to perform the opposite action for ComponentEventLinkTransformer.transformComponentEventLink(Link, ComponentEventRequestParameters) . |
PageRenderRequestParameters |
decodePageRenderRequest(Request request)
Attempts to decode the page render request, to perform the opposite action for PageRenderLinkTransformer.transformPageRenderLink(Link, PageRenderRequestParameters) . |
Link |
transformComponentEventLink(Link defaultLink,
ComponentEventRequestParameters parameters)
Allows the default Link created for the component event request to be replaced. |
Link |
transformPageRenderLink(Link defaultLink,
PageRenderRequestParameters parameters)
Transforms a page render link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkTransformerImpl(@Primary ComponentEventLinkTransformer componentEventLinkTransformer, @Primary PageRenderLinkTransformer pageRenderLinkTransformer)
Method Detail |
---|
public Link transformComponentEventLink(Link defaultLink, ComponentEventRequestParameters parameters)
ComponentEventLinkTransformer
transformComponentEventLink
in interface ComponentEventLinkTransformer
defaultLink
- the default Link generated for a component event requestparameters
- used to create the default Link
public Link transformPageRenderLink(Link defaultLink, PageRenderRequestParameters parameters)
PageRenderLinkTransformer
transformPageRenderLink
in interface PageRenderLinkTransformer
defaultLink
- default Link for this requestparameters
- that define the request
public ComponentEventRequestParameters decodeComponentEventRequest(Request request)
ComponentEventLinkTransformer
ComponentEventLinkTransformer.transformComponentEventLink(Link, ComponentEventRequestParameters)
. 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 ComponentEventDispatcher
and a non-null value returned from this
method will prevent the default
ComponentEventLinkEncoder.decodeComponentEventRequest(Request)
method
from being invoked.
decodeComponentEventRequest
in interface ComponentEventLinkTransformer
LocalizationSetter.setLocaleFromLocaleName(String)
public PageRenderRequestParameters decodePageRenderRequest(Request request)
PageRenderLinkTransformer
PageRenderLinkTransformer.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.
decodePageRenderRequest
in interface PageRenderLinkTransformer
LocalizationSetter.setLocaleFromLocaleName(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |