public class HTMLPublisherListener extends Object implements ChangeListenerTransfomer<Object[]>, org.springframework.context.ApplicationContextAware
AjaxUrlToHTMLTransformer
do that a crawler may access the published file as per Google Specs
autoMap(String, URI) method.| Constructor and Description |
|---|
HTMLPublisherListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoMap(String pageURLPath,
URI publishedResource)
Override for any additional mapping actions to the Web Framework
|
org.apache.commons.collections.Transformer |
getAjaxToHTMLTransformer()
A transformer that takes a fully qualified Web path and converts it to HTML with the Ajax calls converted also to HTML
|
String |
getBasePath()
the
transform(Object) method will get a relative URL. |
String |
getIgnoreQueryParam()
When constructing the path for Published file; ignore the SEO crawler fragment
|
PathLocationResolver |
getLocationResolver()
Derive URI location for the published HTML files
|
void |
onChange(ChangeGenerator arg0,
Object[] event) |
void |
publish(String html,
String webPath) |
void |
setAjaxToHTMLTransformer(org.apache.commons.collections.Transformer ajaxToHTMLTransformer)
A transformer that takes a fully qualified Web path and converts it to HTML with the Ajax calls converted also to HTML
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBasePath(String basePath)
the
transform(Object) method will get a relative URL. |
void |
setIgnoreQueryParam(String ignoreQueryParam)
When constructing the path for Published file; ignore the SEO crawler fragment
|
void |
setLocationResolver(PathLocationResolver locationResolver)
Derive URI location for the published HTML files
|
Object |
transform(Object input) |
protected void autoMap(String pageURLPath, URI publishedResource)
pageURLPath - as StringpublishedResource - as URI where the actual published resource exists for this pathpublic void onChange(ChangeGenerator arg0, Object[] event)
onChange in interface ChangeListener<Object[]>event - as Object[] {"publish", ContentDesc, path as String}arg0 - as the generator that caused the change. Specially useful if the Listener is subscribing to multiple ChangeGeneratorsContentServiceImplpublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic org.apache.commons.collections.Transformer getAjaxToHTMLTransformer()
public void setAjaxToHTMLTransformer(org.apache.commons.collections.Transformer ajaxToHTMLTransformer)
public PathLocationResolver getLocationResolver()
public void setLocationResolver(PathLocationResolver locationResolver)
public String getBasePath()
transform(Object) method will get a relative URL. the prefix is used to construct the URL to pass to ajaxToHTMLTransformer
to fetch the final HTML.public void setBasePath(String basePath)
transform(Object) method will get a relative URL. the prefix is used to construct the URL to pass to ajaxToHTMLTransformer
to fetch the final HTML.public String getIgnoreQueryParam()
SEOAjaxGenPagesWicketFilter.GOOGLE_AJAX_CRAWL_FRAGMENTpublic void setIgnoreQueryParam(String ignoreQueryParam)
SEOAjaxGenPagesWicketFilter.GOOGLE_AJAX_CRAWL_FRAGMENTpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2018. All rights reserved.