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, verifyProtocol
public ExtConnection(String command)
command
- command to executepublic void open() throws AuthenticationException, CommandAbortedException
Connection
public void verify() throws AuthenticationException
Connection
AuthenticationException
public void close() throws IOException
Connection
IOException
public boolean isOpen()
Connection
public int getPort()
Connection
public void modifyInputStream(ConnectionModifier modifier) throws IOException
Connection
modifier
- the connection modifier that performs the modificationsIOException
- if an error occurs modifying the streamspublic void modifyOutputStream(ConnectionModifier modifier) throws IOException
Connection
modifier
- the connection modifier that performs the modificationsIOException
- if an error occurs modifying the streamsCopyright © 2016. All rights reserved.