net.sf.bloof.scm.cvsplugin
Class PServerConnection

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

public class PServerConnection
extends CvsConnection

Connection method via CVS Pserver protocol

Author:
Nicholas Allen, Lukasz Pekacki

Constructor Summary
PServerConnection(CvsAccess aCvsAccess)
          Constructs a PServerConnection to the default Port specified by PSERVER_PORT
PServerConnection(RepositoryLocation aLocation, LoginDetails aDetails)
          Constructs a PServerConnection to the default Port specified by PSERVER_PORT
PServerConnection(RepositoryLocation aLocation, LoginDetails aDetails, int aPort)
          Constructs the PServerConnection with the given 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
 int getPort()
          Returns the port of the PServer
 
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

PServerConnection

public PServerConnection(CvsAccess aCvsAccess)
                  throws java.io.IOException,
                         CvsConnectionException
Constructs a PServerConnection to the default Port specified by PSERVER_PORT

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

PServerConnection

public PServerConnection(RepositoryLocation aLocation,
                         LoginDetails aDetails)
                  throws java.io.IOException,
                         CvsConnectionException
Constructs a PServerConnection to the default Port specified by PSERVER_PORT

Parameters:
aLocation - location of the CVS repository
aDetails - login details containing user name and password
Throws:
java.io.IOException - on IO Error
CvsConnectionException - if connection fails

PServerConnection

public PServerConnection(RepositoryLocation aLocation,
                         LoginDetails aDetails,
                         int aPort)
                  throws java.io.IOException,
                         CvsConnectionException
Constructs the PServerConnection with the given parameters

Parameters:
aLocation - location of the CVS repository
aDetails - login details containing user name and password
aPort - port of the pserver
Throws:
java.io.IOException - on IO Error
CvsConnectionException - if connection fails
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

getPort

public int getPort()
Returns the port of the PServer

Returns:
int port number


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.