Project JXTA

net.jxta.impl.shell.bin.Shell
Class Shell

java.lang.Object
  |
  +--net.jxta.impl.shell.ShellApp
        |
        +--net.jxta.impl.shell.bin.Shell.Shell

public class Shell
extends ShellApp
implements java.lang.Runnable

This class implements a JXTA Shell


Field Summary
static java.lang.String History
           
static java.lang.String ParentShell
           
static java.lang.String PromptString
           
static java.lang.String ThisShell
           
 
Fields inherited from class net.jxta.impl.shell.ShellApp
adv, appMiscError, appNoError, appParamError, appSpawned, consin, consout, currentcmdline, dependsOn, group, inputPipe, outputPipe, pipes, returnVar, started, stopped
 
Constructor Summary
Shell()
           
 
Method Summary
protected  ShellConsole getConsole()
          Returns the ShellConsole object associated with this shell.
 void help()
           
 void info()
           
 void init(net.jxta.peergroup.PeerGroup thisGroup, net.jxta.document.Advertisement a)
           
 boolean isRootShell()
           
 void run()
           
 int startApp(java.lang.String[] args)
           
 void stopApp()
           
 
Methods inherited from class net.jxta.impl.shell.ShellApp
consPollInput, consprint, consprintln, consWaitForInput, getAdvertisement, getEnv, getGroup, getInputConsPipe, getInputPipe, getOutputConsPipe, getOutputPipe, getReturnVariable, pollInput, print, println, setAdvertisement, setEnv, setGroup, setInputConsPipe, setInputPipe, setOutputConsPipe, setOutputPipe, setReturnVariable, waitForInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ThisShell

public static final java.lang.String ThisShell

PromptString

public static final java.lang.String PromptString

History

public static final java.lang.String History

ParentShell

public static final java.lang.String ParentShell
Constructor Detail

Shell

public Shell()
Method Detail

isRootShell

public boolean isRootShell()
Overrides:
isRootShell in class ShellApp

getConsole

protected ShellConsole getConsole()
Returns the ShellConsole object associated with this shell. It may be null, if this shell does not run in its own window
Returns:
ShellConsole object associated with this shell

init

public void init(net.jxta.peergroup.PeerGroup thisGroup,
                 net.jxta.document.Advertisement a)
Overrides:
init in class ShellApp

startApp

public int startApp(java.lang.String[] args)
Overrides:
startApp in class ShellApp

stopApp

public void stopApp()
Overrides:
stopApp in class ShellApp

run

public void run()
Specified by:
run in interface java.lang.Runnable

help

public void help()
Overrides:
help in class ShellApp

info

public void info()

Project JXTA