|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.source.impl.SitemapSource
public final class 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(ComponentManager manager,
String uri,
Map parameters,
Logger logger)
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 |
getParameter(String name)
Get the value of a parameter. |
long |
getParameterAsLong(String name)
Get the value of a parameter. |
Iterator |
getParameterNames()
Get parameter names Using this it is possible to get custom information provided by the source implementation, like an expires date, HTTP headers etc. |
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.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SitemapSource(ComponentManager manager, String uri, Map parameters, Logger logger) throws MalformedURLException
MalformedURLException
Method Detail |
---|
public String getScheme()
getScheme
in interface Source
public long getContentLength()
getContentLength
in interface Source
public long getLastModified()
getLastModified
in interface Source
public InputStream getInputStream() throws IOException, SourceException
InputStream
object to read from the source.
getInputStream
in interface Source
IOException
SourceException
public String getURI()
getURI
in interface Source
public boolean exists()
exists
in interface Source
Source.exists()
public SourceValidity getValidity()
null
is returned.
getValidity
in interface Source
public String getMimeType()
getMimeType
in interface Source
public void refresh()
refresh
in interface Source
protected void init()
public void toSAX(ContentHandler contentHandler) throws SAXException
toSAX
in interface XMLizable
SAXException
public void recycle()
public String getParameter(String name)
public long getParameterAsLong(String name)
public Iterator getParameterNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |