public class LinkTransformerInterceptor extends Object implements ComponentEventLinkEncoder
ComponentEventLinkEncoder, passing the returned Links
through methods ofLinkTransformer.| Constructor and Description |
|---|
LinkTransformerInterceptor(LinkTransformer linkTransformer,
ComponentEventLinkEncoder delegate) |
| Modifier and Type | Method and Description |
|---|---|
Link |
createComponentEventLink(ComponentEventRequestParameters parameters,
boolean forForm)
Creates a link that encapsulates a component event request, including
PersistentLocale (if set). |
Link |
createPageRenderLink(PageRenderRequestParameters parameters)
Creates a Link that encapsulates a page render request, including activation context and
PersistentLocale (if set). |
ComponentEventRequestParameters |
decodeComponentEventRequest(Request request)
Checks the request, primarily the path, to determine
the if the request is a component event request.
|
PageRenderRequestParameters |
decodePageRenderRequest(Request request)
Checks the request, primarily the path, to determine
the if the request is a page render request.
|
public LinkTransformerInterceptor(LinkTransformer linkTransformer, ComponentEventLinkEncoder delegate)
public Link createComponentEventLink(ComponentEventRequestParameters parameters, boolean forForm)
ComponentEventLinkEncoderPersistentLocale (if set).
Forms:
Request.getPath() will
already have stripped that off. We can act as if the context is always "/" (the path always starts with a slash).
Passes the resulting Link through the ComponentEventLinkTransformer chain of command, returning the
result.createComponentEventLink in interface ComponentEventLinkEncoderparameters - defining page, component, activation context and other detailsforForm - true if the event link will trigger a form submissionpublic Link createPageRenderLink(PageRenderRequestParameters parameters)
ComponentEventLinkEncoderPersistentLocale (if set).
Passes the resulting Link through the PageRenderLinkTransformer chain of command, returning
the result.createPageRenderLink in interface ComponentEventLinkEncoderparameters - defining page to render and contextpublic ComponentEventRequestParameters decodeComponentEventRequest(Request request)
ComponentEventLinkEncoderPersistentLocale ...
but only if the locale is a component event.decodeComponentEventRequest in interface ComponentEventLinkEncoderrequest - incoming requestpublic PageRenderRequestParameters decodePageRenderRequest(Request request)
ComponentEventLinkEncoderPersistentLocale ... but
only if the request is a page render.decodePageRenderRequest in interface ComponentEventLinkEncoderrequest - incoming request5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.