|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSlideTest
public class SlideTest
This class tests the Slide WebDAV client library found at jakarta.apache.org/slide It connects to a hard-coded location at the DFS filesystem at CERN, and performs disk operations like creating file, showing directories and files, saving files to the local filesystem ++
Field Summary | |
---|---|
(package private) java.io.BufferedReader |
br
|
(package private) java.lang.String |
password
|
(package private) boolean |
run
|
(package private) java.lang.Thread |
t
|
(package private) org.apache.webdav.lib.WebdavResource |
wdr
|
Constructor Summary | |
---|---|
SlideTest(java.lang.String password)
This constructor creates a new thread to handle keyboard input. |
Method Summary | |
---|---|
void |
actionCreateDir()
Creates a new directory in the working directory for the WebdavResource |
void |
actionCreateFile()
Creates a file with the specified file name from the first input and with the content specified in the second input |
void |
actionImport()
Imports a file from the local file system. |
void |
actionList()
Lists all the directories and all the files for this WebdavResource |
void |
actionQuit()
Quits the command line interface |
void |
actions(java.lang.String action)
Calls the right method depending on the user input. |
void |
actionSave()
Saves a file to the local file system Demands the user for the path to the file that should be saved and saves this file at a local location demanded by the user. |
void |
actionToDirectory()
Sets the WebdavResource pointer to the new directory given by the user input If a wrong directory is specified the system will exit, this should be changed to just give an error message |
static void |
main(java.lang.String[] args)
Main method only creating an instance of the class |
void |
receiveInput()
This method waits for the input from the command line and then calls the actions()-method |
void |
run()
Basically a method that calls the receiveInput()-method as long as the user hasn't issued the 'quit' command |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.Thread t
org.apache.webdav.lib.WebdavResource wdr
boolean run
java.lang.String password
java.io.BufferedReader br
Constructor Detail |
---|
public SlideTest(java.lang.String password)
password
- the password for the hardcoded resourceMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- input needs to be the password for the DFS accesspublic void run()
run
in interface java.lang.Runnable
public void receiveInput()
public void actions(java.lang.String action)
action
- the keyboard input string from the userpublic void actionSave()
public void actionImport()
public void actionCreateDir()
public void actionQuit()
public void actionCreateFile()
public void actionToDirectory()
public void actionList()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |