net.sf.bloof.scm.cvsplugin
Class ExternalProcessServerConnection

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

public class ExternalProcessServerConnection
extends CvsConnection

Defines a server connection to the local machine. This is done by executing the server on the local machine and redirecting the input and output of the server.

Author:
Nicholas Allen, Lukasz Pekacki

Constructor Summary
ExternalProcessServerConnection(CvsAccess aCvsAccess)
          Creates a local server connection by running the supplied command.
ExternalProcessServerConnection(RepositoryLocation aLocation, java.lang.String aServerCommand)
          Creates a local server connection by running the supplied command.
 
Method Summary
 void close()
          Closes the connection
 java.io.InputStream getErrorStream()
          Gets the stream used for displaying error messages.
 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, getRepositoryLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalProcessServerConnection

public ExternalProcessServerConnection(CvsAccess aCvsAccess)
                                throws CvsConnectionException
Creates a local server connection by running the supplied command.

Parameters:
aCvsAccess - Access to CVS
Throws:
CvsConnectionException - if it does not work

ExternalProcessServerConnection

public ExternalProcessServerConnection(RepositoryLocation aLocation,
                                       java.lang.String aServerCommand)
                                throws CvsConnectionException
Creates a local server connection by running the supplied command.

Parameters:
aLocation - Location of the CVS repository root
aServerCommand - command to be run
Throws:
CvsConnectionException - if it does not work
Method Detail

close

public void close()
Closes the connection

Specified by:
close in class CvsConnection

getErrorStream

public java.io.InputStream getErrorStream()
Gets the stream used for displaying error messages. If null then there is not error stream

Overrides:
getErrorStream in class CvsConnection
Returns:
InputStream

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.