net.sf.bloof.scm.cvsplugin
Class MindBrightSSHConnection

java.lang.Object
  |
  +--net.sf.bloof.scm.cvsplugin.CvsConnection
        |
        +--net.sf.bloof.scm.cvsplugin.MindBrightSSHConnection

public class MindBrightSSHConnection
extends CvsConnection

Defines a server connection via SSH protocol

Author:
Nicholas Allen, Lukasz Pekacki

Constructor Summary
MindBrightSSHConnection(CvsAccess aCvsAccess)
          Constructs a MindBrightSSHConnection
MindBrightSSHConnection(RepositoryLocation aLocation, LoginDetails aDetails)
          Constructs a server connection via SSH with the specified parameters
 
Method Summary
 void close()
          Closes the connection
 java.io.InputStream getInputStream()
          Gets the input stream from which the client should read server responses from
 java.io.OutputStream getOutputStream()
          Gets the output stream over which the client should send its requests to the server
 
Methods inherited from class net.sf.bloof.scm.cvsplugin.CvsConnection
displayStatus, getErrorStream, getRepositoryLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MindBrightSSHConnection

public MindBrightSSHConnection(CvsAccess aCvsAccess)
                        throws java.io.IOException,
                               CvsConnectionException
Constructs a MindBrightSSHConnection

Parameters:
aCvsAccess - access to CVS repository
Throws:
java.io.IOException - on IO Error
CvsConnectionException - if connection fails

MindBrightSSHConnection

public MindBrightSSHConnection(RepositoryLocation aLocation,
                               LoginDetails aDetails)
                        throws CvsConnectionException
Constructs a server connection via SSH with the specified parameters

Parameters:
aLocation - location of the cvs repository
aDetails - login details for access
Throws:
CvsConnectionException - if any error occurs
Method Detail

close

public void close()
Closes the connection

Specified by:
close in class CvsConnection

getInputStream

public java.io.InputStream getInputStream()
Gets the input stream from which the client should read server responses from

Specified by:
getInputStream in class CvsConnection
Returns:
InputStream

getOutputStream

public java.io.OutputStream getOutputStream()
Gets the output stream over which the client should send its requests to the server

Specified by:
getOutputStream in class CvsConnection
Returns:
OutputStream


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.