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 establishedAuthenticationException
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 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 streamsBuilt on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.