|
||||||||||
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.AbstractStreamSource org.apache.cocoon.components.source.URLSource
public class URLSource
Description of a source which is described by an URL.
Field Summary |
---|
Fields inherited from class org.apache.cocoon.components.source.AbstractStreamSource |
---|
manager, transformerFactory |
Constructor Summary | |
---|---|
URLSource(URL url,
ComponentManager manager)
Deprecated. Construct a new object |
Method Summary | |
---|---|
long |
getContentLength()
Deprecated. Get the content length of the source or -1 if it is not possible to determine the length. |
InputStream |
getInputStream()
Deprecated. Return an InputStream object to read from the source. |
long |
getLastModified()
Deprecated. Get the last modification date of the source or 0 if it is not possible to determine the date. |
String |
getSystemId()
Deprecated. Return the unique identifer for this source |
protected boolean |
isHTMLContent()
Deprecated. Does this source contain HTML ? |
void |
recycle()
Deprecated. To be overriden in concrete subclasses if needed. |
void |
refresh()
Deprecated. Refresh this object and update the last modified date and content length. |
void |
setPostParameters(SourceParameters pars)
Deprecated. 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.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 URLSource(URL url, ComponentManager manager) throws IOException
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 interface Source
getLastModified
in class AbstractStreamSource
public long getContentLength()
getContentLength
in interface Source
getContentLength
in class AbstractStreamSource
public InputStream getInputStream() throws IOException, ProcessingException
InputStream
object to read from the source.
ResourceNotFoundException
- if file not found or
HTTP location does not exist.
IOException
- if I/O error occured.
ProcessingException
public String getSystemId()
public void refresh()
refresh
in interface ModifiableSource
refresh
in class AbstractStreamSource
public void recycle()
AbstractStreamSource
recycle
in interface Recyclable
recycle
in class AbstractStreamSource
public void setPostParameters(SourceParameters pars)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |