|
||||||||||
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.SlideSource
public class SlideSource
A sources from jakarta slide repositories.
Constructor Summary | |
---|---|
SlideSource(org.apache.slide.common.NamespaceAccessToken nat,
String scheme,
String scope,
String path,
String principal,
String version)
Create a slide source. |
Method Summary | |
---|---|
void |
addSourceLocks(SourceLock sourcelock)
Add a lock to this source |
boolean |
canCancel(OutputStream stream)
Can the data sent to an OutputStream returned by
getOutputStream() be cancelled ? |
void |
cancel(OutputStream stream)
Cancel the data sent to an OutputStream returned by
getOutputStream() . |
void |
contextualize(Context context)
Pass the Context to the component. |
void |
copyTo(Source source)
Copy the current source to a specified destination. |
void |
delete()
Delete the source. |
boolean |
exists()
Does this source actually exist ? |
Source |
getChild(String name)
|
Collection |
getChildren()
|
long |
getContentLength()
Return the content length of the content or -1 if the length is unknown. |
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. |
String |
getLatestSourceRevision()
Get the latest revision |
String |
getMimeType()
The mime-type of the content described by this object. |
String |
getName()
|
OutputStream |
getOutputStream()
Get an OutputStream where raw bytes can be written to. |
Source |
getParent()
|
String |
getScheme()
|
SourceLock[] |
getSourceLocks()
Returns a enumeration of the existing locks |
SourceProperty[] |
getSourceProperties()
Returns a enumeration of the properties |
SourceProperty |
getSourceProperty(String namespace,
String name)
Returns a property from a source. |
String |
getSourceRevision()
Get the current revision of the source |
String |
getSourceRevisionBranch()
Get the current branch of the revision from the source |
String |
getURI()
Return the unique identifer for this source |
SourceValidity |
getValidity()
Get the Validity object. |
void |
initialize()
|
boolean |
isCollection()
|
boolean |
isVersioned()
If this source versioned |
void |
makeCollection()
|
void |
moveTo(Source source)
Move the current source to a specified destination. |
void |
refresh()
Refresh the content of this object after the underlying data content has changed. |
void |
removeSourceProperty(String namespace,
String name)
Remove a specified source property. |
void |
service(ServiceManager manager)
Pass the ServiceManager to the composer. |
void |
setSourceProperty(SourceProperty property)
Sets a property for a source. |
void |
setSourceRevision(String revision)
Not implemented. |
void |
setSourceRevisionBranch(String branch)
Not implemented. |
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 SlideSource(org.apache.slide.common.NamespaceAccessToken nat, String scheme, String scope, String path, String principal, String version)
nat
- Namespace access tokenscheme
- Scheme of the sourcepath
- Path of the source.Method Detail |
---|
public void contextualize(Context context)
contextualize
in interface Contextualizable
context
- The context.public void service(ServiceManager manager)
service
in interface Serviceable
manager
- The ServiceManager which this Serviceable usespublic void initialize() throws SourceException
initialize
in interface Initializable
SourceException
public InputStream getInputStream() throws IOException, SourceException
InputStream
object to read from the source.
This is the data at the point of invocation of this method,
so if this is Modifiable, you might get different content
from two different invocations.
getInputStream
in interface Source
IOException
- If an IO excepetion occurs.
SourceException
- If an exception occurs.public String getURI()
getURI
in interface Source
public String getScheme()
getScheme
in interface Source
Source.getScheme()
public SourceValidity getValidity()
null
is returned.
getValidity
in interface Source
public void refresh()
refresh
in interface Source
public String getMimeType()
getMimeType
in interface Source
public boolean exists()
exists
in interface Source
public long getContentLength()
getContentLength
in interface Source
public long getLastModified()
getLastModified
in interface Source
public OutputStream getOutputStream() throws IOException, SourceException
OutputStream
where raw bytes can be written to.
The signification of these bytes is implementation-dependent and
is not restricted to a serialized XML document.
getOutputStream
in interface ModifiableSource
IOException
SourceException
public boolean canCancel(OutputStream stream)
OutputStream
returned by
getOutputStream()
be cancelled ?
canCancel
in interface ModifiableSource
stream
- The ouput stream, which should be cancelled.
public void cancel(OutputStream stream) throws SourceException
OutputStream
returned by
getOutputStream()
.
After cancel, the stream should no more be used.
cancel
in interface ModifiableSource
stream
- The ouput stream, which should be cancelled.
SourceException
- If the ouput stream can't be cancelled.public void delete()
delete
in interface ModifiableSource
public void makeCollection() throws SourceException
makeCollection
in interface ModifiableTraversableSource
SourceException
public Source getChild(String name) throws SourceException
getChild
in interface TraversableSource
SourceException
public Collection getChildren() throws SourceException
getChildren
in interface TraversableSource
SourceException
public String getName()
getName
in interface TraversableSource
public Source getParent() throws SourceException
getParent
in interface TraversableSource
SourceException
public boolean isCollection()
isCollection
in interface TraversableSource
public void moveTo(Source source) throws SourceException
moveTo
in interface MoveableSource
source
-
SourceException
- If an exception occurs during the move.public void copyTo(Source source) throws SourceException
copyTo
in interface MoveableSource
source
-
SourceException
- If an exception occurs during the copy.public SourceProperty getSourceProperty(String namespace, String name) throws SourceException
getSourceProperty
in interface InspectableSource
namespace
- Namespace of the propertyname
- Name of the property
SourceException
- If an exception occurs.public void setSourceProperty(SourceProperty property) throws SourceException
setSourceProperty
in interface InspectableSource
property
- Property of the source
SourceException
- If an exception occurs during this operationpublic SourceProperty[] getSourceProperties() throws SourceException
getSourceProperties
in interface InspectableSource
SourceException
- If an exception occurs.public void removeSourceProperty(String namespace, String name) throws SourceException
removeSourceProperty
in interface InspectableSource
namespace
- Namespace of the property.name
- Name of the property.
SourceException
- If an exception occurs.public void addSourceLocks(SourceLock sourcelock) throws SourceException
addSourceLocks
in interface LockableSource
sourcelock
- Lock, which should be added
SourceException
- If an exception occurs during this operationpublic SourceLock[] getSourceLocks() throws SourceException
getSourceLocks
in interface LockableSource
SourceException
- If an exception occurs.public boolean isVersioned() throws SourceException
isVersioned
in interface VersionableSource
SourceException
- If an exception occurs.public String getSourceRevision()
getSourceRevision
in interface VersionableSource
public void setSourceRevision(String revision) throws SourceException
setSourceRevision
in interface VersionableSource
revision
- The revision, which should be used.
SourceException
- If an exception occurs.public String getSourceRevisionBranch() throws SourceException
getSourceRevisionBranch
in interface VersionableSource
SourceException
- If an exception occurs.public void setSourceRevisionBranch(String branch) throws SourceException
setSourceRevisionBranch
in interface VersionableSource
branch
- The branch, which should be used.
SourceException
- If an exception occurs.public String getLatestSourceRevision() throws SourceException
getLatestSourceRevision
in interface VersionableSource
SourceException
- If an exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |