A B C D G H I N O P S W 

A

addCloseListener(Runnable) - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
Allows you to set a runnable to run once the clients connection is closed.
addHandler(HTTPServer.HTTPServerHandler) - Method in class org.threadly.litesockets.server.http.HTTPServer
Sets an HTTPServer.HTTPServerHandler to this server.

B

bodyComplete(HTTPRequest, HTTPServer.ResponseWriter) - Method in interface org.threadly.litesockets.server.http.HTTPServer.BodyListener
This is called when the body has completed.
BodyFuture() - Constructor for class org.threadly.litesockets.server.http.HTTPServer.BodyFuture
 

C

closeConnection() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
forces this clients connection closed.
closeOnDone() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
This will force the connection to be closed once done is called and all pending data from that point has been written.

D

done() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
This is called once you are done handling this HTTPRequest.

G

getHostName() - Method in class org.threadly.litesockets.server.http.HTTPServer
 
getListenPort() - Method in class org.threadly.litesockets.server.http.HTTPServer
 
getLocalSocketAddress() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
 
getRemoteSocketAddress() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
 

H

handle(HTTPRequest, HTTPServer.ResponseWriter, HTTPServer.BodyFuture) - Method in interface org.threadly.litesockets.server.http.HTTPServer.HTTPServerHandler
This is called when a new HTTPRequest has came in on a client connection.
HTTPServer - Class in org.threadly.litesockets.server.http
A simple HTTPServer abstraction.
HTTPServer(SocketExecuter, String, int) - Constructor for class org.threadly.litesockets.server.http.HTTPServer
Constructs an HTTPServer without SSL support.
HTTPServer(SocketExecuter, String, int, SSLContext) - Constructor for class org.threadly.litesockets.server.http.HTTPServer
Constructs an HTTPServer with SSL support.
HTTPServer.BodyFuture - Class in org.threadly.litesockets.server.http
A simple callback class to allow HTTPServerHandlers to listen for body data as it comes in from the clients socket.
HTTPServer.BodyListener - Interface in org.threadly.litesockets.server.http
A simple callback interface used to receive body data from an HTTP client.
HTTPServer.HTTPServerHandler - Interface in org.threadly.litesockets.server.http
The servers handler interface.
HTTPServer.ResponseWriter - Class in org.threadly.litesockets.server.http
This class is used to write responses to HTTPRequests that are made against the HTTPServer.

I

isClosed() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
informs if the clients connection is still open or not.

N

NOT_FOUND_RESPONSE - Static variable in class org.threadly.litesockets.server.http.HTTPServer
 

O

onBody(HTTPRequest, ByteBuffer, HTTPServer.ResponseWriter) - Method in interface org.threadly.litesockets.server.http.HTTPServer.BodyListener
This is called as body data come in.
onConnection(InetSocketAddress) - Method in interface org.threadly.litesockets.server.http.HTTPServer.HTTPServerHandler
Allow handling of client connection before any HTTPData comes in or is parsed.
onDisconnect(InetSocketAddress, long, long) - Method in interface org.threadly.litesockets.server.http.HTTPServer.HTTPServerHandler
Allows you to know when a client disconnects.
onError(HTTPRequest, HTTPServer.ResponseWriter, HTTPServer.BodyFuture, Throwable) - Method in interface org.threadly.litesockets.server.http.HTTPServer.HTTPServerHandler
 
onWebsocketFrame(HTTPRequest, WSFrame, ByteBuffer, HTTPServer.ResponseWriter) - Method in interface org.threadly.litesockets.server.http.HTTPServer.BodyListener
 
org.threadly.litesockets.server.http - package org.threadly.litesockets.server.http
 

P

pendingDataSize() - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
Inform if the client has data pending to be written to the socket.

S

sendHTTPResponse(HTTPResponse) - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
This sends an HTTPResponse to the client.
setBodyListener(HTTPServer.BodyListener) - Method in class org.threadly.litesockets.server.http.HTTPServer.BodyFuture
Sets the BodyListener to be used/called back on.
setSSLContext(SSLContext) - Method in class org.threadly.litesockets.server.http.HTTPServer
Allows you to set/reset the ssl context on the server.

W

writeBody(ByteBuffer) - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
Write body data to the client.
writeBody(MergedByteBuffers) - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
Write body data to the client.
writeWebsocketFrame(WSOPCode, MergedByteBuffers, boolean) - Method in class org.threadly.litesockets.server.http.HTTPServer.ResponseWriter
 
A B C D G H I N O P S W 
Skip navigation links