public interface Connection
Client| Modifier and Type | Method and Description |
|---|---|
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.
|
LoggedDataInputStream getInputStream()
LoggedDataOutputStream getOutputStream()
void open()
throws AuthenticationException,
CommandAbortedException
AutenticationException - if the connection with the server
cannot be establishedAuthenticationExceptionCommandAbortedExceptionvoid verify()
throws AuthenticationException
AuthenticationExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionboolean isOpen()
java.lang.String getRepository()
int getPort()
void modifyInputStream(ConnectionModifier modifier) throws java.io.IOException
modifier - the connection modifier that performs the modificationsjava.io.IOException - if an error occurs modifying the streamsvoid modifyOutputStream(ConnectionModifier modifier) throws java.io.IOException
modifier - the connection modifier that performs the modificationsjava.io.IOException - if an error occurs modifying the streams