Asynchronous bidirectional messaging over HTTP.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public class HttpSocket extends AbstractSocket
| Modifier and Type | Field and Description |
|---|---|
static Charset |
ENCODING |
static String |
PROTOCOL |
static int |
READ_TIMEOUT
Server should normally respond within 60 seconds even if no data coming back.
|
| Constructor and Description |
|---|
HttpSocket(HttpSocketContext socketContext,
Identifier id,
long connectTime,
URL endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getProtocol() |
protected void |
sendMessagesImpl(Collection<? extends Message> messages) |
protected void |
startImpl(Callback<? super Socket> onStart,
Callback<? super Exception> onError) |
addSocketListener, callOnError, callOnMessages, getCloseTime, getConnectRemoteSocketAddress, getConnectTime, getId, getRemoteSocketAddress, getSocketContext, isClosed, removeSocketListener, sendMessage, sendMessages, setRemoteSocketAddress, start, toStringpublic static final String PROTOCOL
public static final Charset ENCODING
public static final int READ_TIMEOUT
public HttpSocket(HttpSocketContext socketContext, Identifier id, long connectTime, URL endpoint)
public void close()
throws IOException
close in interface Socketclose in interface Closeableclose in interface AutoCloseableclose in class AbstractSocketIOExceptionpublic String getProtocol()
getProtocol in interface SocketgetProtocol in class AbstractSocketprotected void startImpl(Callback<? super Socket> onStart, Callback<? super Exception> onError) throws IllegalStateException
startImpl in class AbstractSocketIllegalStateExceptionprotected void sendMessagesImpl(Collection<? extends Message> messages)
sendMessagesImpl in class AbstractSocketCopyright © 2014–2019 AO Industries, Inc.. All rights reserved.