org.netbeans.lib.cvsclient.connection
Class ExtConnection

java.lang.Object
  extended by org.netbeans.lib.cvsclient.connection.AbstractConnection
      extended by org.netbeans.lib.cvsclient.connection.ExtConnection
All Implemented Interfaces:
Connection

public class ExtConnection
extends AbstractConnection

Provides support for the :ext: connection method.


Constructor Summary
ExtConnection(java.lang.String command)
          Creates new EXT connection method support class.
 
Method Summary
 void close()
          Close the connection with the server
 int getPort()
          Get the port number, which this connection is actually using.
 boolean isOpen()
          Returns true to indicate that the connection was successfully established.
 void modifyInputStream(ConnectionModifier modifier)
          Modify the underlying inputstream
 void modifyOutputStream(ConnectionModifier modifier)
          Modify the underlying outputstream
 void open()
          Open a connection with the server.
 void verify()
          Verify a cnnection with the server.
 
Methods inherited from class org.netbeans.lib.cvsclient.connection.AbstractConnection
getInputStream, getOutputStream, getRepository, setInputStream, setOutputStream, setRepository, verifyProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtConnection

public ExtConnection(java.lang.String command)
Creates new EXT connection method support class. Given command will be used for getting I/O streams to CVS server.

Parameters:
command - command to execute
Method Detail

open

public void open()
          throws AuthenticationException,
                 CommandAbortedException
Description copied from interface: Connection
Open a connection with the server. Until this method is called, no communication with the server can take place. This Client will call this method before interacting with the server. It is up to implementing classes to ensure that they are configured to talk to the server (e.g. port number etc.)

Throws:
AuthenticationException
CommandAbortedException

verify

public void verify()
            throws AuthenticationException
Description copied from interface: Connection
Verify a cnnection with the server. Simply verifies that a connection could be made, for example that the user name and password are both acceptable. Does not create input and output stream. For that, use the open() method.

Throws:
AuthenticationException

close

public void close()
           throws java.io.IOException
Description copied from interface: Connection
Close the connection with the server

Throws:
java.io.IOException

isOpen

public boolean isOpen()
Description copied from interface: Connection
Returns true to indicate that the connection was successfully established.


getPort

public int getPort()
Description copied from interface: Connection
Get the port number, which this connection is actually using.

Returns:
The port number or zero, when the port number does not have sense.

modifyInputStream

public void modifyInputStream(ConnectionModifier modifier)
                       throws java.io.IOException
Description copied from interface: Connection
Modify the underlying inputstream

Parameters:
modifier - the connection modifier that performs the modifications
Throws:
java.io.IOException - if an error occurs modifying the streams

modifyOutputStream

public void modifyOutputStream(ConnectionModifier modifier)
                        throws java.io.IOException
Description copied from interface: Connection
Modify the underlying outputstream

Parameters:
modifier - the connection modifier that performs the modifications
Throws:
java.io.IOException - if an error occurs modifying the streams

 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.