|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Source
IOException
SourceNotFoundException
public String getURI()
getURI
in interface Source
public String getScheme()
getScheme
in interface Source
public SourceValidity getValidity()
getValidity
in interface Source
public void refresh()
refresh
in interface Source
public String getMimeType()
getMimeType
in interface Source
public long getContentLength()
getContentLength
in interface Source
public long getLastModified()
getLastModified
in interface Source
public boolean isCollection()
isCollection
in interface TraversableSource
public Collection getChildren() throws SourceException
getChildren
in interface TraversableSource
SourceException
public Source getChild(String name) throws SourceException
getChild
in interface TraversableSource
SourceException
public String getName()
getName
in interface TraversableSource
public Source getParent() throws SourceException
getParent
in interface TraversableSource
SourceException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ModifiableSource
IOException
public void delete() throws SourceException
delete
in interface ModifiableSource
SourceException
public boolean canCancel(OutputStream os)
canCancel
in interface ModifiableSource
public void cancel(OutputStream os) throws IOException
cancel
in interface ModifiableSource
IOException
public void makeCollection() throws SourceException
makeCollection
in interface ModifiableTraversableSource
SourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |