|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.io.FileBrowser
This example illustrates the use of the WebLogic File API. FileBrowser is an interactive application that allows you to browse through network-visible files on WebLogic Servers.
The following sections cover what to do:
$ javac -d %CLIENT_CLASSES% FileBrowser.java
Name: mySys
Field: c:\temp
$ java examples.io.FileBrowser t3://hostname:port mySyswhere:
With this FileBrowser example, you get a prompt that matches the name of your registered file system. You can toggle back and forth between your local file system and the WebLogic Server registered file system with the FileBrowser command "cf #" and "cf [fileSystem]". Type a question mark (?) to see a list of commands available in the FileBrowser.
You may also specify the file system as the second argument to FileBrowser. If you do so, you may also specify the starting current directory as the third argument. After FileBrowser displays the prompt (the current file system and the current directory) you may type any of the following commands:
Command | Use |
---|---|
cs URL [fileSystem [path]] | Change server, file system, current directory |
cf [fileSystem [path]] | Change file system, current directory |
cd path | Change current directory |
s | Print URL of current server |
lf | List file systems on current server |
ls | List entries in current directory |
q | quit |
You may switch to the file system on the client by specifying the name #.
Constructor Summary | |
FileBrowser()
|
Method Summary | |
static void |
main(java.lang.String[] argv)
Runs the FileBrowser example. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public FileBrowser()
Method Detail |
public static void main(java.lang.String[] argv)
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |