Class ComponentEventLinkEncoderImpl
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl
 
- 
- All Implemented Interfaces:
- ComponentEventLinkEncoder
 
 public class ComponentEventLinkEncoderImpl extends java.lang.Object implements ComponentEventLinkEncoder 
- 
- 
Constructor SummaryConstructors Constructor Description ComponentEventLinkEncoderImpl(ComponentClassResolver componentClassResolver, ContextPathEncoder contextPathEncoder, LocalizationSetter localizationSetter, Response response, RequestSecurityManager requestSecurityManager, BaseURLSource baseURLSource, PersistentLocale persistentLocale, boolean encodeLocaleIntoPath, java.lang.String contextPath, java.lang.String applicationFolder, MetaDataLocator metaDataLocator, ClientWhitelist clientWhitelist)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendContext(boolean seperatorRequired, EventContext context, java.lang.StringBuilder builder)LinkcreateComponentEventLink(ComponentEventRequestParameters parameters, boolean forForm)Creates a link that encapsulates a component event request, includingPersistentLocale(if set).LinkcreatePageRenderLink(PageRenderRequestParameters parameters)Creates a Link that encapsulates a page render request, including activation context andPersistentLocale(if set).ComponentEventRequestParametersdecodeComponentEventRequest(Request request)Checks the request, primarily the path, to determine the if the request is a component event request.PageRenderRequestParametersdecodePageRenderRequest(Request request)Checks the request, primarily the path, to determine the if the request is a page render request.
 
- 
- 
- 
Constructor Detail- 
ComponentEventLinkEncoderImplpublic ComponentEventLinkEncoderImpl(ComponentClassResolver componentClassResolver, ContextPathEncoder contextPathEncoder, LocalizationSetter localizationSetter, Response response, RequestSecurityManager requestSecurityManager, BaseURLSource baseURLSource, PersistentLocale persistentLocale, @Symbol("tapestry.encode-locale-into-path") boolean encodeLocaleIntoPath, @Symbol("tapestry.context-path") java.lang.String contextPath, @Symbol("tapestry.application-folder") java.lang.String applicationFolder, MetaDataLocator metaDataLocator, ClientWhitelist clientWhitelist) 
 
- 
 - 
Method Detail- 
createPageRenderLinkpublic Link createPageRenderLink(PageRenderRequestParameters parameters) Description copied from interface:ComponentEventLinkEncoderCreates a Link that encapsulates a page render request, including activation context andPersistentLocale(if set). Passes the resulting Link through thePageRenderLinkTransformerchain of command, returning the result.- Specified by:
- createPageRenderLinkin interface- ComponentEventLinkEncoder
- Parameters:
- parameters- defining page to render and context
- Returns:
- link for the page render
 
 - 
createComponentEventLinkpublic Link createComponentEventLink(ComponentEventRequestParameters parameters, boolean forForm) Description copied from interface:ComponentEventLinkEncoderCreates a link that encapsulates a component event request, includingPersistentLocale(if set). Forms:- /context/pagename:eventname -- event on the page, no action context
- /context/pagename:eventname/foo/bar -- event on the page with action context "foo", "bar"
- /context/pagename.foo.bar -- event on component foo.bar within the page, default event, no action context
- /context/pagename.foo.bar/baz.gnu -- event on component foo.bar within the page, default event, with action context "baz", "gnu"
- /context/pagename.bar.baz:eventname/foo/gnu -- event on component bar.baz within the page with action context "foo" , "gnu"
 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 theComponentEventLinkTransformerchain of command, returning the result.- Specified by:
- createComponentEventLinkin interface- ComponentEventLinkEncoder
- Parameters:
- parameters- defining page, component, activation context and other details
- forForm- true if the event link will trigger a form submission
- Returns:
- link for the component event
 
 - 
decodeComponentEventRequestpublic ComponentEventRequestParameters decodeComponentEventRequest(Request request) Description copied from interface:ComponentEventLinkEncoderChecks the request, primarily the path, to determine the if the request is a component event request. As a side-effect (necessary for historical reasons), responsible for setting the locale for the thread, including thePersistentLocale... but only if the locale is a component event.- Specified by:
- decodeComponentEventRequestin interface- ComponentEventLinkEncoder
- Parameters:
- request- incoming request
- Returns:
- component event request details, if a component event request
 
 - 
decodePageRenderRequestpublic PageRenderRequestParameters decodePageRenderRequest(Request request) Description copied from interface:ComponentEventLinkEncoderChecks the request, primarily the path, to determine the if the request is a page render request. As a side-effect (necessary for historical reasons), responsible for setting the locale for the thread, including thePersistentLocale... but only if the request is a page render.- Specified by:
- decodePageRenderRequestin interface- ComponentEventLinkEncoder
- Parameters:
- request- incoming request
- Returns:
- page render request details, if a page render request
 
 - 
appendContextpublic void appendContext(boolean seperatorRequired, EventContext context, java.lang.StringBuilder builder) 
 
- 
 
-