public class SitemapReader
extends org.apache.cocoon.reading.AbstractReader
implements org.apache.avalon.excalibur.pool.Recyclable
[dspace]/sitemaps/ and serve it up to the requesting Search Engine.
Sitemaps are generated by running the [dspace]/bin/generate-sitemaps script.
There are essentially two types of Sitemaps:
(1) Basic HTML Sitemaps
path = "/htmlmap"
<map:read type="SitemapReader">
<map:parameter name="type" value="html"/>
</map:read>
(2) Sitemaps.org XML Sitemaps
path = "/sitemap"
<map:read type="SitemapReader">
<map:parameter name="type" value="sitemaps.org"/>
</map:read>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.cocoon.environment.Request |
request
The Cocoon request
|
protected org.apache.cocoon.environment.Response |
response
The Cocoon response
|
protected String |
sitemapMimeType
The sitemap's mime-type
|
| Constructor and Description |
|---|
SitemapReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Generate the output.
|
String |
getMimeType()
Returns the mime-type of the sitemap.
|
void |
recycle()
Recycle.
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
Set up the bitstream reader.
|
protected org.apache.cocoon.environment.Response response
protected org.apache.cocoon.environment.Request request
protected String sitemapMimeType
public 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.reading.AbstractReaderresolver - source resolver.objectModel - Cocoon object model.src - source to read.par - Reader parameters.org.apache.cocoon.ProcessingException - passed through.SAXException - passed through.IOException - passed through.public void generate()
throws IOException,
org.apache.cocoon.ProcessingException
generate in interface org.apache.cocoon.reading.ReaderIOException - passed through.org.apache.cocoon.ProcessingException - passed through.public String getMimeType()
getMimeType in interface org.apache.cocoon.sitemap.SitemapOutputComponentgetMimeType in class org.apache.cocoon.reading.AbstractReaderpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.reading.AbstractReaderCopyright © 2016 DuraSpace. All rights reserved.