All Examples  This Package

Class examples.io.FileBrowser

java.lang.Object
   |
   +----examples.io.FileBrowser

public class FileBrowser
extends Object
This example illustrates the use of WebLogic File Services. FileBrowser is an interactive application that allows you to browse through the network-visible files on WebLogic servers.

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:

CommandUse
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 #.

Author:
Copyright (c) 1997-1998 by WebLogic, Inc. All Rights Reserved.
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o FileBrowser()

Method Index

 o main(String[])
Runs the FileBrowser example.

Constructors

 o FileBrowser
 public FileBrowser()

Methods

 o main
 public static void main(String argv[])
Runs the FileBrowser example. Supply the URL of your WebLogic Server and a fileSystemName and (optionally) a path as the arguments.


All Examples  This Package