|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl
public class ComponentEventLinkEncoderImpl
Constructor Summary | |
---|---|
ComponentEventLinkEncoderImpl(ComponentClassResolver componentClassResolver,
ContextPathEncoder contextPathEncoder,
LocalizationSetter localizationSetter,
Request request,
Response response,
RequestSecurityManager requestSecurityManager,
BaseURLSource baseURLSource,
PersistentLocale persistentLocale,
boolean encodeLocaleIntoPath,
String applicationFolder,
MetaDataLocator metaDataLocator,
ClientWhitelist clientWhitelist)
|
Method Summary | |
---|---|
void |
appendContext(boolean seperatorRequired,
EventContext context,
StringBuilder builder)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentEventLinkEncoderImpl(ComponentClassResolver componentClassResolver, ContextPathEncoder contextPathEncoder, LocalizationSetter localizationSetter, Request request, Response response, RequestSecurityManager requestSecurityManager, BaseURLSource baseURLSource, PersistentLocale persistentLocale, @Symbol(value="tapestry.encode-locale-into-path") boolean encodeLocaleIntoPath, @Symbol(value="tapestry.application-folder") String applicationFolder, MetaDataLocator metaDataLocator, ClientWhitelist clientWhitelist)
Method Detail |
---|
public Link createPageRenderLink(PageRenderRequestParameters parameters)
ComponentEventLinkEncoder
PersistentLocale
(if set).
Passes the resulting Link through the PageRenderLinkTransformer
chain of command, returning
the result.
createPageRenderLink
in interface ComponentEventLinkEncoder
parameters
- defining page to render and context
public Link createComponentEventLink(ComponentEventRequestParameters parameters, boolean forForm)
ComponentEventLinkEncoder
PersistentLocale
(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 ComponentEventLinkEncoder
parameters
- defining page, component, activation context and other detailsforForm
- true if the event link will trigger a form submission
public ComponentEventRequestParameters decodeComponentEventRequest(Request request)
ComponentEventLinkEncoder
PersistentLocale
...
but only if the locale is a component event.
decodeComponentEventRequest
in interface ComponentEventLinkEncoder
request
- incoming request
public PageRenderRequestParameters decodePageRenderRequest(Request request)
ComponentEventLinkEncoder
PersistentLocale
... but
only if the request is a page render.
decodePageRenderRequest
in interface ComponentEventLinkEncoder
request
- incoming request
public void appendContext(boolean seperatorRequired, EventContext context, StringBuilder builder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |