org.apache.geronimo.gshell.remote.client
Class RshClient

java.lang.Object
  extended by org.apache.geronimo.gshell.remote.client.RshClient
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

@Component(role=RshClient.class,
           instantiationStrategy="per-lookup")
public class RshClient
extends Object
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Provides support for the client-side of the remote shell protocol.

Version:
$Rev: 580765 $ $Date: 2007-09-30 11:52:39 -0700 (Sun, 30 Sep 2007) $

Constructor Summary
RshClient()
           
 
Method Summary
 void close()
           
 void closeShell()
           
 void connect(URI remote, URI local)
           
 void echo(String text)
           
 Object execute(Object... args)
           
 Object execute(String line)
           
 Object execute(String path, Object[] args)
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 Transport getTransport()
           
 void initialize()
           
 void login(String username, String password)
           
 void openShell()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RshClient

public RshClient()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

connect

public void connect(URI remote,
                    URI local)
             throws Exception
Throws:
Exception

getInputStream

public InputStream getInputStream()

getOutputStream

public OutputStream getOutputStream()

getTransport

public Transport getTransport()

close

public void close()

login

public void login(String username,
                  String password)
           throws Exception
Throws:
Exception

echo

public void echo(String text)
          throws Exception
Throws:
Exception

openShell

public void openShell()
               throws Exception
Throws:
Exception

closeShell

public void closeShell()
                throws Exception
Throws:
Exception

execute

public Object execute(String line)
               throws Exception
Throws:
Exception

execute

public Object execute(Object... args)
               throws Exception
Throws:
Exception

execute

public Object execute(String path,
                      Object[] args)
               throws Exception
Throws:
Exception


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.