|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.source.AbstractStreamSource | +--org.apache.cocoon.components.source.URLSource
Description of a source which is described by an URL.
Fields inherited from class org.apache.cocoon.components.source.AbstractStreamSource |
manager, transformerFactory |
Constructor Summary | |
URLSource(java.net.URL url,
org.apache.avalon.framework.component.ComponentManager manager)
Construct a new object |
Method Summary | |
long |
getContentLength()
Get the content length of the source or -1 if it is not possible to determine the length. |
java.io.InputStream |
getInputStream()
Return an InputStream object to read from the source. |
long |
getLastModified()
Get the last modification date of the source or 0 if it is not possible to determine the date. |
java.lang.String |
getSystemId()
Return the unique identifer for this source |
protected boolean |
isHTMLContent()
Does this source contain HTML ? |
void |
recycle()
To be overriden in concrete subclasses if needed. |
void |
refresh()
Refresh this object and update the last modified date and content length. |
void |
setPostParameters(org.apache.excalibur.source.SourceParameters pars)
Set the post parameters |
Methods inherited from class org.apache.cocoon.components.source.AbstractStreamSource |
exists, getInputSource, toSAX |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLSource(java.net.URL url, org.apache.avalon.framework.component.ComponentManager manager) throws java.io.IOException
Method Detail |
protected boolean isHTMLContent()
AbstractStreamSource
The default here is to return false. Concrete subclasses should override this if needed.
isHTMLContent
in class AbstractStreamSource
public long getLastModified()
getLastModified
in class AbstractStreamSource
public long getContentLength()
getContentLength
in class AbstractStreamSource
public java.io.InputStream getInputStream() throws java.io.IOException, ProcessingException
InputStream
object to read from the source.ResourceNotFoundException
- if file not found or
HTTP location does not exist.java.io.IOException
- if I/O error occured.public java.lang.String getSystemId()
public void refresh()
refresh
in class AbstractStreamSource
public void recycle()
AbstractStreamSource
recycle
in class AbstractStreamSource
public void setPostParameters(org.apache.excalibur.source.SourceParameters pars)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |