- secure(ServerSocketFactory) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Set Server Socket Factory.
- separator - Variable in class ej.hoka.http.support.CharacterSeparatedList
-
Characters separator.
- serve(String, Map<String, String>) - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler
-
The generic behavior of this request handler implementation is to find a resource matching the given path in the
classpath.
- serve(String, Map<String, String>) - Method in interface ej.hoka.http.requesthandler.StaticFilesHandler
-
Serve the request file if found, return codenull
is file not found.
- Session - Class in ej.hoka.session
-
Server side Session
- Session(String, long) - Constructor for class ej.hoka.session.Session
-
- SessionHandler - Class in ej.hoka.session
-
Handle sessions and stores active sessions in a database.
- SessionHandler(Random) - Constructor for class ej.hoka.session.SessionHandler
-
- SessionHandler(Random, long) - Constructor for class ej.hoka.session.SessionHandler
-
Constructs a
SessionHandler
provided sessionLifetime sessions and using an in-memory database.
- setAttribute(String, Object) - Method in class ej.hoka.http.HttpRequest
-
set a request server-side attribute
- setAttribute(String, String) - Method in class ej.hoka.session.Session
-
set a session attribute
- setData(String) - Method in class ej.hoka.http.HttpResponse
-
Set the data contained by this response.
- setData(String, String) - Method in class ej.hoka.http.HttpResponse
-
Set
HttpResponse
body using the
String
data
as response data and the
encoding
.
- setData(byte[]) - Method in class ej.hoka.http.HttpResponse
-
Set the data contained by this response.
- setData(InputStream) - Method in class ej.hoka.http.HttpResponse
-
Sets the InputStream
from which the response data can be read.
- setData(InputStream, long) - Method in class ej.hoka.http.HttpResponse
-
Sets the InputStream
from which the response data can be read.
- setExpiration(long) - Method in class ej.hoka.session.Session
-
Sets the expiration.
- setMimeType(String) - Method in class ej.hoka.http.HttpResponse
-
Set the response MIME-TYPE.
- setStatus(String) - Method in class ej.hoka.http.HttpResponse
-
Set the response status.
- simultaneousConnections(int) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
set the max simultaneous connections
- SP - Static variable in class ej.hoka.http.support.CharacterSeparatedList
-
Space character.
- start() - Method in class ej.hoka.http.HttpServer
-
Start the
HttpServer
(in a dedicated thread): start listening for connections and start jobs to process
opened connections.
- start() - Method in class ej.hoka.tcp.TcpServer
-
- staticFilesHandler(StaticFilesHandler) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Set the static files handler to serve static files.
- StaticFilesHandler - Interface in ej.hoka.http.requesthandler
-
Request handler to serve static files.
- stop() - Method in class ej.hoka.http.HttpServer
-
- stop() - Method in class ej.hoka.tcp.TcpServer
-
Stops the
TcpServer
and closes the connection.
- StringBodyParser - Class in ej.hoka.http.body
-
A body parser reading the full body and storing it in a string.
- StringBodyParser() - Constructor for class ej.hoka.http.body.StringBodyParser
-