public interface Connection extends Serializable
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.
|
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 IOException
IOExceptionboolean isOpen()
String getRepository()
int getPort()
void modifyInputStream(ConnectionModifier modifier) throws IOException
modifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamsvoid modifyOutputStream(ConnectionModifier modifier) throws IOException
modifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamsCopyright © 2013. All rights reserved.