|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a method for accessing a connection, in order to be able to communicate using the CVS Protocol. Instances of this interface are used by the Client class to communicate with the server without being too concerned with how the communication is taking place or how it was set up.
Client
Method Summary | |
void |
close()
Close the connection with the server |
LoggedDataInputStream |
getInputStream()
Get a data inputstream for reading data |
LoggedDataOutputStream |
getOutputStream()
Get an output stream for sending data to the server |
int |
getPort()
Get the port number, which this connection is actually using. |
java.lang.String |
getRepository()
Get the repository |
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. |
Method Detail |
public LoggedDataInputStream getInputStream()
public LoggedDataOutputStream getOutputStream()
public void open() throws AuthenticationException, CommandAbortedException
AutenticationException
- if the connection with the server
cannot be established
AuthenticationException
CommandAbortedException
public void verify() throws AuthenticationException
AuthenticationException
public void close() throws java.io.IOException
java.io.IOException
public boolean isOpen()
public java.lang.String getRepository()
public int getPort()
public void modifyInputStream(ConnectionModifier modifier) throws java.io.IOException
modifier
- the connection modifier that performs the modifications
java.io.IOException
- if an error occurs modifying the streamspublic void modifyOutputStream(ConnectionModifier modifier) throws java.io.IOException
modifier
- the connection modifier that performs the modifications
java.io.IOException
- if an error occurs modifying the streams
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |