public class LocalConnection extends AbstractConnection
Because this library implements just the client part, it can not operate directly on the repository. It needs a server to talk to. Therefore it needs to execute the server process on the local machine.
| Modifier and Type | Field and Description |
|---|---|
protected Process |
process
The CVS process that is being run.
|
| Constructor and Description |
|---|
LocalConnection()
Creates a instance of ServerConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection with the server.
|
int |
getPort()
Get the port number, which this connection is actually using.
|
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()
Authenticate with the server and open a channel of communication with the
server.
|
void |
verify()
Authenticate with the server.
|
getInputStream, getOutputStream, getRepository, setInputStream, setOutputStream, setRepository, verifyProtocolprotected Process process
public void verify()
throws AuthenticationException
AuthenticationException - if the connection with the server cannot be establishedpublic void open()
throws AuthenticationException
AuthenticationException - if the connection with the server cannot be establishedpublic boolean isOpen()
public void close()
throws IOException
IOExceptionpublic int getPort()
Connectionpublic void modifyInputStream(ConnectionModifier modifier) throws IOException
modifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamspublic void modifyOutputStream(ConnectionModifier modifier) throws IOException
modifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamsCopyright © 2013. All rights reserved.