A C D E G H I M O R S T W 

A

addCloseListener(Runnable) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
addCloseListener(Runnable) - Method in interface org.threadly.litesockets.client.http.StreamingClient
Sets a runnable to be ran once this connection is closed.
addCloseListener(Runnable) - Method in class org.threadly.litesockets.client.websocket.WSClient
 

C

close() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
close() - Method in interface org.threadly.litesockets.client.http.StreamingClient
This will close the client.
close() - Method in class org.threadly.litesockets.client.websocket.WSClient
 
closeAllClients() - Method in class org.threadly.litesockets.client.http.HTTPClient
This forces closed all client connections on this HTTPClient.
connect() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
connect() - Method in interface org.threadly.litesockets.client.http.StreamingClient
This is called to connect this client to the server.
connect() - Method in class org.threadly.litesockets.client.websocket.WSClient
 

D

DEFAULT_CONCURRENT - Static variable in class org.threadly.litesockets.client.http.HTTPClient
 
DEFAULT_MAX_IDLE - Static variable in class org.threadly.litesockets.client.http.HTTPClient
 
DEFAULT_TIMEOUT - Static variable in class org.threadly.litesockets.client.http.HTTPClient
 
DEFAULT_WS_REQUEST - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
DEFAULT_WS_RESPONSE - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
doPingAutoPong(boolean) - Method in class org.threadly.litesockets.client.websocket.WSClient
This sets whether or not the WebSocketClient will auto replay to websocket pings.

E

enableSSL() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
enableSSL() - Method in interface org.threadly.litesockets.client.http.StreamingClient
This is called to enable ssl on this connection.
enableSSL() - Method in class org.threadly.litesockets.client.websocket.WSClient
 
enableSSL(SSLEngine) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
enableSSL(SSLEngine) - Method in interface org.threadly.litesockets.client.http.StreamingClient
This is called to enable ssl on this connection.
enableSSL(SSLEngine) - Method in class org.threadly.litesockets.client.websocket.WSClient
 

G

getBody() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getBodyAsInputStream() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getBodyAsString() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getClientsThreadExecutor() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
getClientsThreadExecutor() - Method in interface org.threadly.litesockets.client.http.StreamingClient
Gets the Executor for this client.
getClientsThreadExecutor() - Method in class org.threadly.litesockets.client.websocket.WSClient
 
getContentLength() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getDefaultMask() - Method in class org.threadly.litesockets.client.websocket.WSClient
Returns the value of the default mask set on this WebSocketClient.
getDefaultOpCode() - Method in class org.threadly.litesockets.client.websocket.WSClient
Returns the current default WSOPCode in use by this connection.
getHost() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
getHTTPClient() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getHTTPRequest() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getInProgressSize() - Method in class org.threadly.litesockets.client.http.HTTPClient
Number of HTTPRequests pending on the HTTPClient.
getLastWriteFuture() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
getLastWriteFuture() - Method in interface org.threadly.litesockets.client.http.StreamingClient
 
getLastWriteFuture() - Method in class org.threadly.litesockets.client.websocket.WSClient
 
getMaxIdleTimeout() - Method in class org.threadly.litesockets.client.http.HTTPClient
Checks the configured maximum connection idle time.
getOpenConnections() - Method in class org.threadly.litesockets.client.http.HTTPClient
Returns the total number of open Client Connections on this HTTPClient.
getPingAutoReply() - Method in class org.threadly.litesockets.client.websocket.WSClient
Returns the current value set for pingAuto reply.
getPort() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
getRequestQueueSize() - Method in class org.threadly.litesockets.client.http.HTTPClient
Number of HTTPRequests pending on the HTTPClient.
getResponse() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
getResponseCode() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 

H

handle(ByteBuffer) - Method in interface org.threadly.litesockets.client.http.HTTPStreamClient.HTTPStreamReader
This is called when body reads come in from the client.
HTTPClient - Class in org.threadly.litesockets.client.http
This is a HTTPClient for doing many simple HTTPRequests.
HTTPClient() - Constructor for class org.threadly.litesockets.client.http.HTTPClient
This is the default constructor it will create its own SingleThreadScheduler to use as a threadpool, as well as using the default 2 and 1048576.
HTTPClient(int, int) - Constructor for class org.threadly.litesockets.client.http.HTTPClient
This constructor will let you set the max Concurrent Requests and max Response Size but will still create its own SingleThreadScheduler to use as a threadpool.
HTTPClient(int, int, SocketExecuter) - Constructor for class org.threadly.litesockets.client.http.HTTPClient
This constructor will let you set the max Concurrent Requests and max Response Size as well as your own SocketExecuter as the thread pool to use.
HTTPClient.HTTPResponseData - Class in org.threadly.litesockets.client.http
This is a simple, full HttpResponse with data.
HTTPResponseData(HTTPClient, HTTPRequest, HTTPResponse, MergedByteBuffers) - Constructor for class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 
HTTPStreamClient - Class in org.threadly.litesockets.client.http
HTTPStreamClient is designed to work with larger HTTPStreams of data.
HTTPStreamClient(SocketExecuter, String, int) - Constructor for class org.threadly.litesockets.client.http.HTTPStreamClient
When constructing the HTTPStreamClient we connect to a specific server.
HTTPStreamClient(TCPClient) - Constructor for class org.threadly.litesockets.client.http.HTTPStreamClient
Creates an HTTPStreaming client from an already existing TCPClient.
HTTPStreamClient(TCPClient, String) - Constructor for class org.threadly.litesockets.client.http.HTTPStreamClient
Creates an HTTPStreaming client from an already existing TCPClient.
HTTPStreamClient.HTTPStreamReader - Interface in org.threadly.litesockets.client.http
Simple HTTPStreamReader callback interface.

I

isConnected() - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
isConnected() - Method in interface org.threadly.litesockets.client.http.StreamingClient
 
isConnected() - Method in class org.threadly.litesockets.client.websocket.WSClient
 

M

MAX_HTTP_RESPONSE - Static variable in class org.threadly.litesockets.client.http.HTTPClient
 

O

onData(WSFrame, ByteBuffer) - Method in interface org.threadly.litesockets.client.websocket.WSClient.WebSocketDataReader
This is called when a data frame is read off the WSClient.
org.threadly.litesockets.client.http - package org.threadly.litesockets.client.http
 
org.threadly.litesockets.client.websocket - package org.threadly.litesockets.client.websocket
 

R

request(URL) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends a blocking HTTP request.
request(URL, HTTPRequestMethod, ByteBuffer) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends a blocking HTTP request.
request(ClientHTTPRequest) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends a blocking HTTP request.
requestAsync(URL) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends an asynchronous HTTP request.
requestAsync(URL, HTTPRequestMethod, ByteBuffer) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends an asynchronous HTTP request.
requestAsync(ClientHTTPRequest) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sends an asynchronous HTTP request.

S

setConnectionTimeout(int) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
setConnectionTimeout(int) - Method in interface org.threadly.litesockets.client.http.StreamingClient
This sets the timeout on the connection to the remote host.
setConnectionTimeout(int) - Method in class org.threadly.litesockets.client.websocket.WSClient
 
setDefaultMask(boolean) - Method in class org.threadly.litesockets.client.websocket.WSClient
This sets whether or not the default WSClient.write(ByteBuffer) should mask the data that is being sent.
setDefaultOpCode(WSOPCode) - Method in class org.threadly.litesockets.client.websocket.WSClient
Sets the default WSOPCode to use when calling WSClient.write(ByteBuffer).
setExtraHeader(String, String) - Method in class org.threadly.litesockets.client.websocket.WSClient
This allows you to set extra headers or change any header on the HTTP upgrade request sent to the server.
setHTTPStreamReader(HTTPStreamClient.HTTPStreamReader) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
Sets the HTTPStreamReader for this client.
setMaxIdleTimeout(long, TimeUnit) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sets the max amount of time we will hold onto idle connections.
setRequestPath(String) - Method in class org.threadly.litesockets.client.websocket.WSClient
This allows you to set the path used in the initial HTTP upgrade Request sent to the WebSocket server.
setRequestResponseHeaders(HTTPRequest, HTTPResponse, boolean) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
setRequestResponseHeaders(HTTPRequest, HTTPResponse, boolean) - Method in interface org.threadly.litesockets.client.http.StreamingClient
Sets the HTTPRequest and HTTPResponse allowing the streaming client to start streaming w/o sending these in itself.
setRequestResponseHeaders(HTTPRequest, HTTPResponse, boolean) - Method in class org.threadly.litesockets.client.websocket.WSClient
 
setSSLContext(SSLContext) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sets the SSLContext to be used for connection using ssl on this client.
setTimeout(long, TimeUnit) - Method in class org.threadly.litesockets.client.http.HTTPClient
Sets the default timeout in milliseconds to wait for HTTPRequest responses from the server.
setWebSocketDataReader(WSClient.WebSocketDataReader) - Method in class org.threadly.litesockets.client.websocket.WSClient
Sets the WSClient.WebSocketDataReader for this client.
setWebSocketKey(String) - Method in class org.threadly.litesockets.client.websocket.WSClient
This allows you to set the websocket key used in the initial HTTP upgrade request sent to the server.
setWebSocketVersion(int) - Method in class org.threadly.litesockets.client.websocket.WSClient
This allows you to set the websocket version used in the initial HTTP upgrade request.
StreamingClient - Interface in org.threadly.litesockets.client.http
Basic interface for StreamingClients.

T

toString() - Method in class org.threadly.litesockets.client.http.HTTPClient.HTTPResponseData
 

W

write(ByteBuffer) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
 
write(ByteBuffer) - Method in interface org.threadly.litesockets.client.http.StreamingClient
This performs a write to the connection.
write(ByteBuffer) - Method in class org.threadly.litesockets.client.websocket.WSClient
 
write(ByteBuffer, WSOPCode, boolean) - Method in class org.threadly.litesockets.client.websocket.WSClient
This performs a write to the websocket connection.
writeRequest(HTTPRequest) - Method in class org.threadly.litesockets.client.http.HTTPStreamClient
Tell the client to write an HTTPRequest to the server.
WS_PORT - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
WS_STRING - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
WSClient - Class in org.threadly.litesockets.client.websocket
This is a Wrapper around HTTPStreamClient that simplifies it for use with WebSockets.
WSClient(SocketExecuter, String, int) - Constructor for class org.threadly.litesockets.client.websocket.WSClient
Creates a websocket connection to the specified host and port, using the provided SocketExecuter.
WSClient(SocketExecuter, URI) - Constructor for class org.threadly.litesockets.client.websocket.WSClient
Creates a websocket connection to the specified URI.
WSClient(TCPClient) - Constructor for class org.threadly.litesockets.client.websocket.WSClient
This takes over an existing TCPClient to do websocket communications.
WSClient.WebSocketDataReader - Interface in org.threadly.litesockets.client.websocket
This is the Read callback used for WSClient.
WSS_PORT - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
WSS_STRING - Static variable in class org.threadly.litesockets.client.websocket.WSClient
 
A C D E G H I M O R S T W 
Skip navigation links