public class DescriptionOpenSearchGenerator
extends org.apache.cocoon.generation.AbstractGenerator
implements org.apache.cocoon.caching.CacheableProcessingComponent, org.apache.avalon.excalibur.pool.Recyclable
| Modifier and Type | Field and Description |
|---|---|
protected OpenSearchService |
openSearchService |
protected DSpaceObject |
scope
optional search scope (community or collection instance) or null
|
objectModel, parameters, resolver, source| Constructor and Description |
|---|
DescriptionOpenSearchGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Generate the OpenSearch description document
|
Serializable |
getKey()
Generate the unique caching key.
|
org.apache.excalibur.source.SourceValidity |
getValidity()
It's not expected that the OpenSearch's configuration to be changed very frecuently,
so we assume this component is always valid (the cache should be cleared to update this component)
|
void |
recycle()
Recycle
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
Setup configuration for this request.
|
setConsumer, setContentHandler, setLexicalHandlerprotected DSpaceObject scope
protected OpenSearchService openSearchService
public Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentsetup in class org.apache.cocoon.generation.AbstractGeneratororg.apache.cocoon.ProcessingException - if the scope param cannot be resolved to a valid Community or CollectionSAXExceptionIOExceptionpublic void generate()
throws IOException,
SAXException,
org.apache.cocoon.ProcessingException
generate in interface org.apache.cocoon.generation.GeneratorIOExceptionSAXExceptionorg.apache.cocoon.ProcessingExceptionpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.generation.AbstractGeneratorCopyright © 2016 DuraSpace. All Rights Reserved.