public class ExtConnection extends AbstractConnection
| Constructor and Description |
|---|
ExtConnection(String command)
Creates new EXT connection method support class.
|
| 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()
Open a connection with the server.
|
void |
verify()
Verify a cnnection with the server.
|
getInputStream, getOutputStream, getRepository, setInputStream, setOutputStream, setRepository, verifyProtocolpublic ExtConnection(String command)
command - command to executepublic void open()
throws AuthenticationException,
CommandAbortedException
Connectionpublic void verify()
throws AuthenticationException
ConnectionAuthenticationExceptionpublic void close()
throws IOException
ConnectionIOExceptionpublic boolean isOpen()
Connectionpublic int getPort()
Connectionpublic void modifyInputStream(ConnectionModifier modifier) throws IOException
Connectionmodifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamspublic void modifyOutputStream(ConnectionModifier modifier) throws IOException
Connectionmodifier - the connection modifier that performs the modificationsIOException - if an error occurs modifying the streamsCopyright © 2013. All rights reserved.