allensoft.javacvs.client
Class CVSConnection

java.lang.Object
  |
  +--allensoft.javacvs.client.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.


Constructor Summary
CVSConnection(CVSClient client, RepositoryLocation location)
           
 
Method Summary
abstract  void close()
          Closes the connection.
protected  void displayStatus(java.lang.String sMessage)
          Displays any status messages during creation of the connection.
 CVSClient getClient()
           
 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(CVSClient client,
                     RepositoryLocation location)
Method Detail

getRepositoryLocation

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

getInputStream

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

getOutputStream

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

getErrorStream

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

close

public abstract void close()
Closes the connection.

getClient

public CVSClient getClient()

displayStatus

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