public class JRemoteSocketConnection extends AbstractJRemoteConnection
This class handles the connection and communication to the jListener server over a socket interface.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_TIMEOUT_PROPERTY |
static java.lang.String |
ALLOW_INPUT |
static java.lang.String |
CHARSET |
static java.lang.String |
COMPRESSION_PROPERTY |
static java.lang.String |
COMPRESSION_THRESHOLD_PROPERTY |
static java.lang.String |
SSL_PROPERTY |
static java.lang.String |
USE_NAIVE_TRUST_MANAGER_PROPERTY |
Constructor and Description |
---|
JRemoteSocketConnection(java.lang.String host,
int port) |
JRemoteSocketConnection(java.lang.String host,
int port,
java.util.Properties info) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compressionThreshold() |
protected void |
connect(java.lang.String host,
int port) |
boolean |
isEnabledCompression() |
boolean |
isEnabledNaiveTrustManager() |
boolean |
isEnabledSSL() |
Response |
receive() |
void |
send(JRemoteRequest request) |
authenticate, authenticate, getCharset, getCharsetDecoder, getCharsetEncoder, sendWaitForResponse, setCharset, setProperties
public static final java.lang.String SSL_PROPERTY
public static final java.lang.String USE_NAIVE_TRUST_MANAGER_PROPERTY
public static final java.lang.String COMPRESSION_PROPERTY
public static final java.lang.String COMPRESSION_THRESHOLD_PROPERTY
public static final java.lang.String ALLOW_INPUT
public static final java.lang.String CHARSET
public static final java.lang.String ACTION_TIMEOUT_PROPERTY
public JRemoteSocketConnection(java.lang.String host, int port, java.util.Properties info) throws JRemoteException
JRemoteException
public JRemoteSocketConnection(java.lang.String host, int port) throws JRemoteException
JRemoteException
protected void connect(java.lang.String host, int port) throws JRemoteException
JRemoteException
public void send(JRemoteRequest request) throws JRemoteException
send
in class AbstractJRemoteConnection
JRemoteException
public Response receive() throws JRemoteException
receive
in class AbstractJRemoteConnection
JRemoteException
public void close() throws JRemoteException
close
in class AbstractJRemoteConnection
JRemoteException
public boolean isEnabledSSL()
public boolean isEnabledNaiveTrustManager()
public boolean isEnabledCompression()
public int compressionThreshold()