|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.components.source.impl.SitemapSource
Implementation of a Source that gets its content
by invoking a pipeline.
| Nested Class Summary | |
static class |
SitemapSource.SitemapSourceValidity
A simple SourceValidity protecting callers from resets. |
| Constructor Summary | |
SitemapSource(ServiceManager manager,
String uri,
Map parameters)
Construct a new object |
|
| Method Summary | |
boolean |
exists()
Returns true always. |
long |
getContentLength()
Get the content length of the source or -1 if it is not possible to determine the length. |
InputStream |
getInputStream()
Return an InputStream object to read from the source. |
long |
getLastModified()
Get the last modification date. |
String |
getMimeType()
The mime-type of the content described by this object. |
String |
getScheme()
Return the protocol identifier. |
String |
getURI()
Returns the unique identifer for this source |
SourceValidity |
getValidity()
Get the validity object. |
protected void |
init()
Initialize |
void |
recycle()
Recyclable |
void |
refresh()
Refresh this object and update the last modified date and content length. |
void |
toSAX(ContentHandler contentHandler)
Stream content to the content handler |
| 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 |
| Constructor Detail |
public SitemapSource(ServiceManager manager,
String uri,
Map parameters)
throws MalformedURLException
| Method Detail |
public String getScheme()
getScheme in interface Sourcepublic long getContentLength()
getContentLength in interface Sourcepublic long getLastModified()
getLastModified in interface Source
public InputStream getInputStream()
throws IOException
InputStream object to read from the source.
getInputStream in interface SourceIOExceptionpublic String getURI()
getURI in interface Sourcepublic boolean exists()
exists in interface SourceSource.exists()public SourceValidity getValidity()
null is returned.
getValidity in interface Sourcepublic String getMimeType()
getMimeType in interface Sourcepublic void refresh()
refresh in interface Sourceprotected void init()
public void toSAX(ContentHandler contentHandler)
throws SAXException
toSAX in interface XMLizableSAXExceptionpublic void recycle()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||