|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.connection.AbstractConnection
org.netbeans.lib.cvsclient.connection.LocalConnection
public class LocalConnection
Implements a connection to a local server. See the cvs documents for more information about different connection methods. Local is popular where the CVS repository exists on the machine where the client library is running.
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.
Field Summary | |
---|---|
protected java.lang.Process |
process
The CVS process that is being run. |
Constructor Summary | |
---|---|
LocalConnection()
Creates a instance of ServerConnection. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.netbeans.lib.cvsclient.connection.AbstractConnection |
---|
getInputStream, getOutputStream, getRepository, setInputStream, setOutputStream, setRepository, verifyProtocol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Process process
Constructor Detail |
---|
public LocalConnection()
Method Detail |
---|
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 java.io.IOException
java.io.IOException
public int getPort()
Connection
public 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 streamspublic void 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 |