public class ResourceContentExtractor extends Object implements ContentExtractor<URI,String>
ContentExtractor to extract content from any Resource (URL, FileSystem).
Resource}
File SystemCONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME| Constructor and Description |
|---|
ResourceContentExtractor() |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getCharset() |
String |
getContent(URI location,
ContentContext context)
Get Content.
|
org.apache.commons.collections.Transformer |
getContentTransformer()
Apply this
Transformer over the extracted content, before passing it backAccepts a String and returns a String. |
void |
setCharset(Charset charset) |
void |
setContentTransformer(org.apache.commons.collections.Transformer contentTransformer)
Apply this
Transformer over the extracted content, before passing it backAccepts a String and returns a String. |
public Charset getCharset()
public void setCharset(Charset charset)
@Cacheable(key="#location.toString()",
condition="(#location!=null and #context!=null and T(com.neurosys.content.domain.Status).PUBLISH == #context.status)",
value="publishContent")
public String getContent(URI location,
ContentContext context)
throws IOException,
UnknownHostException
ContentExtractorExecutionPreventedException if for some environmental reason
publishing was explicitly prevented.getContent in interface ContentExtractor<URI,String>IOExceptionUnknownHostExceptionCacheable}(key="#location.toString()",
condition="(#location!=null and #context!=null and T(com.neurosys.content.domain.Status).PUBLISH == #context.status)",
value="publishContent")public org.apache.commons.collections.Transformer getContentTransformer()
Transformer over the extracted content, before passing it backpublic void setContentTransformer(org.apache.commons.collections.Transformer contentTransformer)
Transformer over the extracted content, before passing it backCopyright © 2018. All rights reserved.