|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.jcr.source.JCRNodeSource
public class JCRNodeSource
A Source for a JCR node.
| Field Summary | |
|---|---|
protected String |
computedURI
The full URI |
protected JCRSourceFactory |
factory
The factory that created this Source |
protected Node |
node
The node pointed to by this source (can be null) |
protected String |
path
The node path |
protected Session |
session
The session this source is bound to |
| Constructor Summary | |
|---|---|
JCRNodeSource(JCRNodeSource parent,
Node node)
|
|
JCRNodeSource(JCRSourceFactory factory,
Node node)
|
|
JCRNodeSource(JCRSourceFactory factory,
Session session,
String path)
|
|
| Method Summary | |
|---|---|
boolean |
canCancel(OutputStream os)
|
void |
cancel(OutputStream os)
|
void |
delete()
|
boolean |
exists()
|
Source |
getChild(String name)
|
Collection |
getChildren()
|
long |
getContentLength()
|
Node |
getContentNode()
Returns the JCR Node used to store the content of this
source. |
InputStream |
getInputStream()
|
long |
getLastModified()
|
String |
getMimeType()
|
String |
getName()
|
Node |
getNode()
Returns the JCR Node this source points to, or
null if it denotes a non-existing path. |
OutputStream |
getOutputStream()
|
Source |
getParent()
|
String |
getPath()
Returns the path within the repository this source points to. |
String |
getScheme()
|
Session |
getSession()
Returns the JCR Session used by this source. |
String |
getURI()
|
SourceValidity |
getValidity()
|
boolean |
isCollection()
|
void |
makeCollection()
|
void |
refresh()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String computedURI
protected final String path
protected final JCRSourceFactory factory
protected final Session session
protected Node node
| Constructor Detail |
|---|
public JCRNodeSource(JCRSourceFactory factory,
Session session,
String path)
throws SourceException
SourceException
public JCRNodeSource(JCRSourceFactory factory,
Node node)
throws SourceException
SourceException
public JCRNodeSource(JCRNodeSource parent,
Node node)
throws SourceException
SourceException| Method Detail |
|---|
public Node getNode()
Node this source points to, or
null if it denotes a non-existing path.
public String getPath()
public Session getSession()
Session used by this source.
public Node getContentNode()
Node used to store the content of this
source.
null if no such node
exist, either because the source is a collection or doesn't
currently contain data.public boolean exists()
exists in interface Source
public InputStream getInputStream()
throws IOException,
SourceNotFoundException
getInputStream in interface SourceIOException
SourceNotFoundExceptionpublic String getURI()
getURI in interface Sourcepublic String getScheme()
getScheme in interface Sourcepublic SourceValidity getValidity()
getValidity in interface Sourcepublic void refresh()
refresh in interface Sourcepublic String getMimeType()
getMimeType in interface Sourcepublic long getContentLength()
getContentLength in interface Sourcepublic long getLastModified()
getLastModified in interface Sourcepublic boolean isCollection()
isCollection in interface TraversableSource
public Collection getChildren()
throws SourceException
getChildren in interface TraversableSourceSourceException
public Source getChild(String name)
throws SourceException
getChild in interface TraversableSourceSourceExceptionpublic String getName()
getName in interface TraversableSource
public Source getParent()
throws SourceException
getParent in interface TraversableSourceSourceException
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface ModifiableSourceIOException
public void delete()
throws SourceException
delete in interface ModifiableSourceSourceExceptionpublic boolean canCancel(OutputStream os)
canCancel in interface ModifiableSource
public void cancel(OutputStream os)
throws IOException
cancel in interface ModifiableSourceIOException
public void makeCollection()
throws SourceException
makeCollection in interface ModifiableTraversableSourceSourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||