| java.lang.Object org.apache.cocoon.components.source.impl.CocoonToAvalonSource
CocoonToAvalonSource | final public class CocoonToAvalonSource implements Source,XMLizable,Recyclable(Code) | | This source objects wraps an obsolete Cocoon Source object
to avoid recoding existing source objects.
author: Carsten Ziegeler version: CVS $Id: CocoonToAvalonSource.java 433543 2006-08-22 06:22:54Z crossley $ |
exists | public boolean exists()(Code) | | See Also: org.apache.excalibur.source.Source.exists |
getContentLength | public long getContentLength()(Code) | | Return the content length of the content or -1 if the length is
unknown
|
getInputStream | public InputStream getInputStream() throws IOException, SourceException(Code) | | Return an InputStream object to read from the source.
|
getLastModified | public long getLastModified()(Code) | | Get the last modification date of the source or 0 if it
is not possible to determine the date.
|
getMimeType | public String getMimeType()(Code) | | The mime-type of the content described by this object.
If the source is not able to determine the mime-type by itself
this can be null.
|
getParameter | public String getParameter(String name)(Code) | | Get the value of a parameter.
Using this it is possible to get custom information provided by the
source implementation, like an expires date, HTTP headers etc.
|
getParameterAsLong | public long getParameterAsLong(String name)(Code) | | Get the value of a parameter.
Using this it is possible to get custom information provided by the
source implementation, like an expires date, HTTP headers etc.
|
getParameterNames | public Iterator getParameterNames()(Code) | | Get parameter names
Using this it is possible to get custom information provided by the
source implementation, like an expires date, HTTP headers etc.
|
getScheme | public String getScheme()(Code) | | Return the protocol identifier.
|
getURI | public String getURI()(Code) | | Return the unique identifer for this source
|
getValidity | public SourceValidity getValidity()(Code) | | Get the Validity object. This can either wrap the last modification
date or the expires information or...
If it is currently not possible to calculate such an information
null is returned.
|
recycle | public void recycle()(Code) | | Recyclable
|
refresh | public void refresh()(Code) | | Refresh this object and update the last modified date
and content length.
|
|
|