|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.client.InteractiveClient
Command-line client based on the XML:DB API.
Nested Class Summary | |
static class |
InteractiveClient.CollectionName
|
static class |
InteractiveClient.ProgressObserver
|
Field Summary | |
protected static int[] |
colSizes
|
protected java.util.TreeSet |
completitions
|
protected static java.lang.String |
configuration
|
protected Collection |
current
|
protected static java.util.Properties |
defaultProps
|
protected static java.lang.String |
driver
|
protected static java.lang.String |
EDIT_CMD
|
protected static java.lang.String |
ENCODING
|
protected int |
filesCount
|
protected ClientFrame |
frame
|
protected int |
maxResults
|
protected int |
nextInSet
|
protected static int |
PARALLEL_THREADS
|
protected static java.lang.String |
PASS
|
protected java.lang.String |
path
|
protected java.util.Properties |
properties
|
protected boolean |
quiet
|
protected boolean |
recurseDirs
|
protected java.lang.String[] |
resources
|
protected ResourceSet |
result
|
protected boolean |
startGUI
|
protected java.io.Writer |
traceWriter
|
protected static java.lang.String |
URI
|
protected static java.lang.String |
USER
|
protected boolean |
verbose
|
Constructor Summary | |
InteractiveClient()
|
Method Summary | |
protected void |
connect()
Register XML:DB driver and retrieve root collection. |
protected void |
displayHelp()
Display help on commands |
protected Collection |
getCollection()
Returns the current collection. |
protected void |
getResources()
Get list of resources contained in collection. |
static void |
main(java.lang.String[] args)
The main program for the InteractiveClient class. |
protected void |
more(java.lang.String str)
Display document on screen. |
protected boolean |
parse(java.io.File[] files,
org.exist.client.UploadDialog upload)
|
protected boolean |
parse(java.lang.String fileName)
|
void |
printNotice()
|
protected boolean |
process(java.lang.String line)
In interactive mode, process a line entered by the user. |
void |
readlineInputLoop(java.lang.String home,
java.io.File history)
|
protected XMLResource |
retrieve(java.lang.String resource)
|
protected XMLResource |
retrieve(java.lang.String resource,
java.lang.String indent)
|
void |
run(java.lang.String[] args)
Main processing method for the InteractiveClient object |
protected void |
shutdown(boolean force)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.lang.String EDIT_CMD
protected static java.lang.String ENCODING
protected static java.lang.String PASS
protected static java.lang.String URI
protected static java.lang.String USER
protected static int PARALLEL_THREADS
protected static java.util.Properties defaultProps
protected static final int[] colSizes
protected static java.lang.String driver
protected static java.lang.String configuration
protected java.util.TreeSet completitions
protected Collection current
protected int nextInSet
protected int maxResults
protected java.lang.String path
protected java.util.Properties properties
protected java.lang.String[] resources
protected ResourceSet result
protected int filesCount
protected boolean quiet
protected boolean verbose
protected boolean recurseDirs
protected boolean startGUI
protected java.io.Writer traceWriter
protected ClientFrame frame
Constructor Detail |
public InteractiveClient()
Method Detail |
protected void displayHelp()
public static void main(java.lang.String[] args)
args
- The command line argumentsprotected void connect() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionprotected Collection getCollection()
protected void getResources() throws XMLDBException
XMLDBException
- Description of the Exceptionprotected void more(java.lang.String str)
str
- Description of the Parameterprotected boolean process(java.lang.String line)
line
- the line entered
protected final XMLResource retrieve(java.lang.String resource) throws XMLDBException
XMLDBException
protected final XMLResource retrieve(java.lang.String resource, java.lang.String indent) throws XMLDBException
XMLDBException
protected final boolean parse(java.lang.String fileName) throws XMLDBException
XMLDBException
protected final boolean parse(java.io.File[] files, org.exist.client.UploadDialog upload) throws XMLDBException
XMLDBException
public void run(java.lang.String[] args)
args
- Description of the Parameterpublic void readlineInputLoop(java.lang.String home, java.io.File history)
protected final void shutdown(boolean force)
public void printNotice()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |