|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
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 |
---|
LoggedDataInputStream getInputStream()
LoggedDataOutputStream getOutputStream()
void open() throws AuthenticationException, CommandAbortedException
AutenticationException
- if the connection with the server
cannot be established
AuthenticationException
CommandAbortedException
void verify() throws AuthenticationException
AuthenticationException
void close() throws java.io.IOException
java.io.IOException
boolean isOpen()
java.lang.String getRepository()
int getPort()
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 streamsvoid 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 |