public class SocketConnection extends Connection
Constructor and Description |
---|
SocketConnection(IntradocClientConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this socket connection
|
void |
connect()
Connect this socket to the configured destination
|
protected Socket |
createSocket()
Create the socket to the configured host
|
IntradocClientConfig |
getConfig() |
InputStream |
getInputStream()
Get a input stream for this connection
|
OutputStream |
getOutputStream()
Get a output stream for this connection
|
Socket |
getSocket() |
boolean |
isConnected() |
reset
public SocketConnection(IntradocClientConfig config)
public IntradocClientConfig getConfig()
public void connect() throws ProtocolException
connect
in class Connection
ProtocolException
- if an error occurspublic void close()
close
in class Connection
public InputStream getInputStream() throws IOException
Connection
getInputStream
in class Connection
IOException
public OutputStream getOutputStream() throws IOException
Connection
getOutputStream
in class Connection
IOException
public boolean isConnected()
isConnected
in class Connection
public Socket getSocket()
protected Socket createSocket() throws ProtocolException, IOException
IOException
ProtocolException