org.dspace.app.xmlui.cocoon
Class DSpaceOREGenerator

java.lang.Object
  extended by org.apache.cocoon.util.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.generation.AbstractGenerator
              extended by org.dspace.app.xmlui.cocoon.DSpaceOREGenerator
All Implemented Interfaces:
org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.cocoon.generation.Generator, org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.xml.XMLProducer

public class DSpaceOREGenerator
extends org.apache.cocoon.generation.AbstractGenerator

Generate an ORE aggregation of a DSpace Item. The object to be rendered should be an item identified by pasing in one of the two parameters: handle or internal. The fragment parameter determines the encoding format for the aggregation; only Atom is supported at this time.

Author:
Alexey Maslov

Field Summary
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
DSpaceOREGenerator()
           
 
Method Summary
 void generate()
          Generate the ORE Aggregation.
 
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Constructor Detail

DSpaceOREGenerator

public DSpaceOREGenerator()
Method Detail

generate

public void generate()
              throws IOException,
                     SAXException,
                     org.apache.cocoon.ProcessingException
Generate the ORE Aggregation.

Throws:
IOException
SAXException
org.apache.cocoon.ProcessingException


Copyright © 2012 DuraSpace. All Rights Reserved.