|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLoggable
org.apache.cocoon.components.source.AbstractStreamSource
fr.gouv.culture.util.apache.cocoon.components.source.URLSource
Description of a source which is described by an URL.
| Field Summary | |
protected org.apache.excalibur.source.SourceParameters |
requestProperties
The SourceParameters used in the url connection request properties |
| 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 | |
protected void |
addRequestProperties()
|
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()
|
void |
recycle()
|
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 |
void |
setRequestProperties(org.apache.excalibur.source.SourceParameters pars)
Set the request 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 |
| Field Detail |
protected org.apache.excalibur.source.SourceParameters requestProperties
SourceParameters used in the url connection request properties
| Constructor Detail |
public URLSource(java.net.URL url,
org.apache.avalon.framework.component.ComponentManager manager)
throws java.io.IOException
| Method Detail |
protected boolean isHTMLContent()
public long getLastModified()
public long getContentLength()
public java.io.InputStream getInputStream()
throws java.io.IOException,
org.apache.cocoon.ProcessingException
InputStream object to read from the source.
org.apache.cocoon.ResourceNotFoundException - if file not found or
HTTP location does not exist.
java.io.IOException - if I/O error occured.
org.apache.cocoon.ProcessingExceptionpublic java.lang.String getSystemId()
public void refresh()
public void recycle()
public void setPostParameters(org.apache.excalibur.source.SourceParameters pars)
public void setRequestProperties(org.apache.excalibur.source.SourceParameters pars)
protected void addRequestProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||