net.sf.bloof.scm.cvsplugin
Class CvsConnection

java.lang.Object
  |
  +--net.sf.bloof.scm.cvsplugin.CvsConnection
Direct Known Subclasses:
ExternalProcessServerConnection, MindBrightSSHConnection, PServerConnection

public abstract class CvsConnection
extends java.lang.Object

Defines a connection with a CVS server. A server connection has an input and an output stream over which to communicate.

Author:
Nicholas Allen, Lukasz Pekacki

Constructor Summary
CvsConnection(RepositoryLocation aLocation)
          Constructs a Connection
 
Method Summary
abstract  void close()
          Closes the connection
protected  void displayStatus(java.lang.String aMessage)
          Displays any status messages during creation of the connection.
 java.io.InputStream getErrorStream()
          Gets the stream used for displaying error messages.
abstract  java.io.InputStream getInputStream()
          Gets the input stream from which the client should read server responses from
abstract  java.io.OutputStream getOutputStream()
          Gets the output stream over which the client should send its requests to the server
 RepositoryLocation getRepositoryLocation()
          Gets the repository location that this connection is connected to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvsConnection

public CvsConnection(RepositoryLocation aLocation)
Constructs a Connection

Parameters:
aLocation - specifies the location of the Repository
Method Detail

getRepositoryLocation

public RepositoryLocation getRepositoryLocation()
Gets the repository location that this connection is connected to

Returns:
RepositoryLocation

getInputStream

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

Returns:
InputStream

getOutputStream

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

Returns:
OutputStream

getErrorStream

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

Returns:
InputStream

close

public abstract void close()
Closes the connection


displayStatus

protected void displayStatus(java.lang.String aMessage)
Displays any status messages during creation of the connection.



Copyright © 2003 bloof@Sourceforge. All Rights Reserved.