|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CommandContext
allows a command to access the
objects that it can interact with. For example, an command to add a
new resource might get a collection, using the
getCollection
method, then get the new resource from
an input, using the getInput
method, before writing
some results to the output, retrieved with the
getOutput
method.
Method Summary | |
org.xmldb.api.base.Collection |
getCollection()
Gets the open Collection that the command will be
interact with. |
BlockReader |
getInput(java.lang.String inputName)
Get the named input for the Command to interact with. |
BlockWriter |
getOutput()
Gets the output for the command to write any results to. |
Method Detail |
public org.xmldb.api.base.Collection getCollection()
Collection
that the command will be
interact with.
Collection
object. It is not
the command's responsibility to close this.public BlockReader getInput(java.lang.String inputName) throws XMLDBStreamNotFoundException
inputName
- The name of the input.
BlockReader
from which the input can be read.
XMLDBStreamNotFoundException
- If there is no such input stream.public BlockWriter getOutput() throws XMLDBStreamNotFoundException
BlockWriter
to which the output can be written.
XMLDBStreamNotFoundException
- If there is no output stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |