All Examples This Package
java.lang.Object | +----examples.io.FileBrowser
To run this example, first locate or start a WebLogic Server offering a network-visible file system by setting the property weblogic.io.fileSystem in your weblogic.properties file. For example, to configure a WebLogic Server to offer the native file system directory /myserver/fullPath as a network-visible file system named myFiles, set the property weblogic.io.fileSystem.myFiles=/myserver/fullPath in the server's weblogic.properties file.
After compiling this directory, you may call FileBrowser with one argument the URL of your WebLogic Server. It will then give you a list of the available file systems on that server and ask you to choose one.
You may also specify a 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 #.
public FileBrowser()
public static void main(String argv[])
All Examples This Package