A B C D E F G H I K L M N O P Q R S T U V W _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- acceptAllContentTypes() - Method in class ej.hoka.http.Route
-
Checks if this route accepts all content types.
- AcceptEncoding - Class in ej.hoka.http.support
-
Utility class for parsing Accept Encoding header in HTTP requests.
- AcceptEncoding() - Constructor for class ej.hoka.http.support.AcceptEncoding
-
Creates a new instance of
AcceptEncodingwith a default separator (comma character ","). - addConnection(Socket) - Method in class ej.hoka.tcp.TcpServer
-
Add a connection to the list of opened connections.
- addCookie(Cookie) - Method in class ej.hoka.http.HttpResponse
-
Adds cookie to the response.
- addCookie(String, String) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addCookie(String, String, int) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addCookie(String, String, int, boolean, boolean) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addCookie(String, String, String, String, int, boolean, boolean) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addCookie(String, String, String, String, int, Date, boolean, boolean) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addCookie(String, String, String, String, int, Date, boolean, boolean, Cookie.SameSite) - Method in class ej.hoka.http.HttpResponse
-
Deprecated.Please use
HttpResponse.addCookie(Cookie)andCookie.builder()instead of this method. - addHeader(String, String) - Method in class ej.hoka.http.HttpResponse
-
Adds a response header field.
- addHeaders(Map<String, String>) - Method in class ej.hoka.http.HttpResponse
-
Adds a map of header fields.
- addPathParameters(Map<String, String>) - Method in class ej.hoka.http.HttpRequest
-
Adds path parameters from a given list to the list of path path parameters of the request.
- addSplatParameters(List<String>) - Method in class ej.hoka.http.HttpRequest
-
Sets the splat Parameters.
- after(RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler as an after filter on all paths.
- after(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler as an after filter on the path.
- AFTER - Static variable in class ej.hoka.http.HttpRequest
-
after filter code.
- AFTER_ALL - Static variable in class ej.hoka.http.HttpRequest
-
after all filter code.
- ALLOW - Static variable in class ej.hoka.http.HttpConstants
-
Allowed method header.
- apiBase(String) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Add a path common base that will be appended to all routes mapped without starting with a forward slash '/'.
- argument - Variable in class ej.hoka.http.support.ParameterizedArgument
-
Current argument.
- available() - Method in class ej.hoka.io.ChunkedMessageBodyInputStream
-
Returns the number of available bytes to read.
- available() - Method in class ej.hoka.io.IdentityMessageBodyInputStream
-
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking.
B
- before(RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler as a before filter on all paths.
- before(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler as a before filter on the path.
- BEFORE - Static variable in class ej.hoka.http.HttpRequest
-
before filter code.
- BEFORE_ALL - Static variable in class ej.hoka.http.HttpRequest
-
before all filter code.
- BodyParser<T> - Interface in ej.hoka.http.body
-
A parser called to read the body of an
HttpRequest. - BOUNDARY - Static variable in class ej.hoka.http.body.MultiPartBodyParser
-
The boundary delimiter.
- build() - Method in class ej.hoka.http.Cookie.Builder
-
Builds the cookie instance.
- build() - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Builds and returns an instance of
HttpServerwith the configured parameters. - build() - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler.ClasspathFilesHandlerBuilder
-
Builds and returns the
ClasspathFilesHandlerinstance. - builder() - Static method in class ej.hoka.http.Cookie
-
Configures and builds a cookie.
- builder() - Static method in class ej.hoka.http.HttpServer
-
Configure and build an
HttpServerinstance. - builder() - Static method in class ej.hoka.http.requesthandler.ClasspathFilesHandler
-
Build an instance of
ClasspathFilesHandler.
C
- CharacterSeparatedList - Class in ej.hoka.http.support
-
Abstract class for implementing parsers for character separated lists.
- CharacterSeparatedList(char) - Constructor for class ej.hoka.http.support.CharacterSeparatedList
-
Creates a new instance of
CharacterSeparatedListusing the characterseparatoras the separator character. - ChunkedMessageBodyInputStream - Class in ej.hoka.io
-
Input Stream for reading HTTP 1.1 Chunked transfer encoding data.
- ChunkedMessageBodyInputStream(InputStream) - Constructor for class ej.hoka.io.ChunkedMessageBodyInputStream
-
Creates a new
ChunkedMessageBodyInputStreamusing the InputStreamisas the underlying data source. - ChunkedMessageBodyOutputStream - Class in ej.hoka.io
-
Output Stream for writing HTTP 1.1 Chunked transfer encoding data.
- ChunkedMessageBodyOutputStream(OutputStream) - Constructor for class ej.hoka.io.ChunkedMessageBodyOutputStream
-
Creates a new instance of
ChunkedMessageBodyOutputStreamusing the specifiedOutputStreamas the underlying OutputStream. - ChunkedTransferCodingHandler - Class in ej.hoka.http.encoding
-
HTTP-1.1 chunked transfer encoding handler to read and write data in chunked encoding.
- ClasspathFilesHandler - Class in ej.hoka.http.requesthandler
-
Class path Files Handler .
- ClasspathFilesHandler.ClasspathFilesHandlerBuilder - Class in ej.hoka.http.requesthandler
-
ClasspathFilesHandlerbuilder. - close() - Method in class ej.hoka.io.ChunkedMessageBodyInputStream
-
Reads all remaining message body data and closes this input stream.
- close() - Method in class ej.hoka.io.ChunkedMessageBodyOutputStream
-
Close this output stream.
- close() - Method in class ej.hoka.io.IdentityMessageBodyInputStream
-
Reads all remaining message body data and then close this input stream.
- close() - Method in class ej.hoka.io.IdentityMessageBodyOutputStream
-
Closes this output stream and flushes the underlying
OutputStream. - CLOSE - Static variable in class ej.hoka.http.HttpConstants
-
Value for HTTP header field "Connection" (
close). - Config - Class in ej.hoka.http
-
Load and provide server configuration form hoka.properties on the classpath.
- connect(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP CONNECT requests on the path.
- connect(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP CONNECT requests on the path.
- CONNECT - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isCONNECT. - connectionTimeout(int) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
By default, server is configured to keep connection open during one minute if possible.
- ContentEncoding - Interface in ej.hoka.http.encoding
-
Interface for defining HTTP encoding handlers.
- ContentType - Class in ej.hoka.http.support
-
This class handles the HTTP Content-Type header field.
- ContentType() - Constructor for class ej.hoka.http.support.ContentType
-
Empty Constructor.
- ContentType(String) - Constructor for class ej.hoka.http.support.ContentType
-
Constructor with MIME type parameter.
- ContentType(String, String) - Constructor for class ej.hoka.http.support.ContentType
-
Constructor with MIME type and character set parameters.
- Cookie - Class in ej.hoka.http
-
Web Cookie.
- Cookie.Builder - Class in ej.hoka.http
-
Cookie builder.
- Cookie.SameSite - Enum in ej.hoka.http
-
Same site values.
- CR - Static variable in class ej.hoka.http.support.CharacterSeparatedList
-
Carriage Return character.
- currentString - Variable in class ej.hoka.http.support.CharacterSeparatedList
-
Current string being parsed.
D
- debug(String) - Method in interface ej.hoka.log.Logger
-
Log with level debug.
- decode(InputStream, StringBuilder) - Static method in class ej.hoka.http.support.UrlDecoder
-
Returns the character from the stream, which encode as "%ab" (single byte UTF-8) or "%ab%cd" (two byte ).
- delete(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP POST requests on the path.
- delete(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP DELETE requests on the path.
- DELETE - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isDELETE. - developmentMode() - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Activate development mode.
- domain(String) - Method in class ej.hoka.http.Cookie.Builder
-
Domain=<domain-value>Optional Host to which the cookie will be sent.
E
- ej.hoka.http - package ej.hoka.http
-
default HTTP package.
- ej.hoka.http.body - package ej.hoka.http.body
-
HTTP request body parser utilities.
- ej.hoka.http.encoding - package ej.hoka.http.encoding
-
HTTP request/response encoding.
- ej.hoka.http.requesthandler - package ej.hoka.http.requesthandler
-
HTTP request handlers.
- ej.hoka.http.support - package ej.hoka.http.support
-
contains utilities classes for HTTP parameters parsing.
- ej.hoka.io - package ej.hoka.io
-
Input/Output stream wrappers for read write formatting.
- ej.hoka.log - package ej.hoka.log
-
Server logger.
- ej.hoka.session - package ej.hoka.session
-
Server side session.
- ej.hoka.tcp - package ej.hoka.tcp
-
TCP related classes.
- EMPTY - Static variable in class ej.hoka.http.HttpConstants
-
Empty string.
- encodingRegistry(EncodingRegistry) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
If this method is not called an instance of
EncodingRegistryis used by the server. - EncodingRegistry - Class in ej.hoka.http.encoding
-
Class that stores a register of available encoding and transfer coding handlers.
- EncodingRegistry() - Constructor for class ej.hoka.http.encoding.EncodingRegistry
-
Constructs the
EncodingRegistrywithIdentityContentEncoding,IdentityTransferEncodingandChunkedTransferCodingHandlerregistered. - encodings - Variable in class ej.hoka.http.support.AcceptEncoding
-
Array of
QualityArguments. - END_OF_LINE - Static variable in class ej.hoka.http.HttpConstants
-
The "end of line" CR + LF.
- endParse() - Method in class ej.hoka.http.support.CharacterSeparatedList
-
End instructions of the string parsing.
- endParse() - Method in class ej.hoka.http.support.ContentType
-
IS2T-API Canonises the MIME type.
- equals(Object) - Method in class ej.hoka.http.Route
- error(String) - Method in interface ej.hoka.log.Logger
-
Log with level error.
- error(String, Throwable) - Method in interface ej.hoka.log.Logger
-
Log with level error.
- error(Throwable) - Method in interface ej.hoka.log.Logger
-
Log with level error.
- exception(Class<? extends Exception>, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map a handler to a specific exception.
- expires(Date) - Method in class ej.hoka.http.Cookie.Builder
-
Expires=<date>Optional The maximum lifetime of the cookie as an HTTP-date timestamp. - expireTimeSeconds(int) - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler.ClasspathFilesHandlerBuilder
-
Returns the instance of
ClasspathFilesHandler.ClasspathFilesHandlerBuilderconfigured with the given duration as the expiration time for static resources.
F
- flush() - Method in class ej.hoka.io.ChunkedMessageBodyOutputStream
-
Writes the pending data and flush underlying stream.
- flush() - Method in class ej.hoka.io.IdentityMessageBodyOutputStream
-
Flushes the underlying output stream.
- FSLASH - Static variable in class ej.hoka.http.HttpConstants
-
Forward slash string.
G
- generate(StringBuilder) - Method in class ej.hoka.http.support.AcceptEncoding
-
Not implemented.
- generate(StringBuilder) - Method in class ej.hoka.http.support.CharacterSeparatedList
-
Generates a String representation.
- generate(StringBuilder) - Method in class ej.hoka.http.support.ContentType
-
Appends the current character set to the
StringBuffersbin the following form:;charset=<character-set-string>. - generate(StringBuilder) - Method in class ej.hoka.http.support.ParameterizedArgument
-
Appends the current argument to the
StringBuffersb. - generateExpiration() - Method in class ej.hoka.session.SessionHandler
-
Generates the expiration date using the current real time.
- generateSessionID() - Method in class ej.hoka.session.SessionHandler
-
Generates a new session ID encoded in base64.
- get(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP GET requests on the path.
- get(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP GET requests on the path.
- GET - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isGET. - getAcceptEncodingHandler(String) - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Returns the most suitable
ContentEncodingto match the encodings described inAccept-Encodingheader. - getAcceptType() - Method in class ej.hoka.http.Route
-
Gets the acceptType.
- getArgument() - Method in class ej.hoka.http.support.ParameterizedArgument
-
Returns current argument.
- getAttribute(String) - Method in class ej.hoka.http.HttpRequest
-
Get request server-side attribute by key.
- getAttribute(String) - Method in class ej.hoka.session.Session
-
Get a session attribute.
- getAttributesNames() - Method in class ej.hoka.session.Session
-
Gets the set of the session attributes names.
- getBufferSize() - Method in class ej.hoka.http.Config
-
Gets the buffer size.
- getCharset() - Method in class ej.hoka.http.support.ContentType
-
Returns the optional charset.
- getChunkedTransferEncoding() - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Return the
ContentEncodingcorresponding to chunked transfer coding. - getContentEncoding(String) - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Return the
ContentEncodingcorresponding to the given encoding. - getCookie(String) - Method in class ej.hoka.http.HttpRequest
-
Return the cookie of the request with given name.
- getCookies() - Method in class ej.hoka.http.HttpRequest
-
Returns the cookies of the request.
- getDomain() - Method in class ej.hoka.http.Cookie
-
Gets the domain.
- getEncodings() - Method in class ej.hoka.http.support.AcceptEncoding
-
Returns the previously parsed array of
QualityArguments. - getExpiration() - Method in class ej.hoka.session.Session
-
Gets the expiration.
- getExpires() - Method in class ej.hoka.http.Cookie
-
Gets the expiration date.
- getHandler() - Method in class ej.hoka.http.Route
-
Gets the request handler associated with this route.
- getHeader(String) - Method in class ej.hoka.http.HttpRequest
-
Returns the header field value associated to the given header field
name. - getHeader(String) - Method in class ej.hoka.http.HttpResponse
-
Returns the header field value associated to the given header field
key. - getHeaders() - Method in class ej.hoka.http.body.HttpPart
-
Gets the headers.
- getHeaders() - Method in class ej.hoka.http.HttpRequest
-
Returns all HTTP header fields of the request.
- getHttpMethod() - Method in class ej.hoka.http.Route
-
Gets the integer value associated with the HTTP method of the route.
- getHttpMethodAsString() - Method in class ej.hoka.http.Route
-
Returns the HTTP method of this route as a String.
- getId() - Method in class ej.hoka.http.encoding.ChunkedTransferCodingHandler
-
Returns the internal ID of the
ChunkedTransferCodingHandler. - getId() - Method in interface ej.hoka.http.encoding.ContentEncoding
-
Returns the name of the supported encoding.
- getId() - Method in class ej.hoka.http.encoding.IdentityContentEncoding
-
Returns the internal ID of the
IdentityContentEncoding. - getId() - Method in class ej.hoka.http.encoding.IdentityTransferEncoding
-
Returns an internal ID of this encoding handler.
- getId() - Method in interface ej.hoka.http.encoding.TransferEncoding
-
Returns the supported encoding id.
- getId() - Method in class ej.hoka.session.Session
-
Gets the id.
- getIdentityTransferCodingHandler() - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Return the
ContentEncodingcorresponding to identity transfer coding (i.e. - getInetAddress() - Method in class ej.hoka.http.HttpServer
-
Gets the address to which this server is bound, if any.
- getInetAddress() - Method in class ej.hoka.tcp.TcpServer
-
Gets the address to which this server is bound, if any.
- getInstance() - Static method in class ej.hoka.http.Config
-
Gets the configuration instance.
- getInstance() - Static method in class ej.hoka.http.encoding.ChunkedTransferCodingHandler
-
Factory method to create an instance of ChunkedTransferCodingHandler.
- getInstance() - Static method in class ej.hoka.http.encoding.IdentityContentEncoding
-
Returns an instance of
IdentityContentEncoding. - getInstance() - Static method in class ej.hoka.http.encoding.IdentityTransferEncoding
-
Returns an instance of
IdentityTransferEncoding. - getLength() - Method in class ej.hoka.http.HttpResponse
-
Returns the length (in bytes) of the response data or
-1if the length is unknown. - getLogger() - Static method in class ej.hoka.log.LoggerFactory
-
You can set a logger implementation using the system property
hoka.logger.classIf the system property if not set or the class fromhoka.logger.classis not found or can't be accessed or instantiated. - getLoggerClassName() - Method in class ej.hoka.http.Config
-
Gets the logger class name.
- getLoggerLevel() - Method in class ej.hoka.http.Config
-
Gets the log level.
- getMaxAge() - Method in class ej.hoka.http.Cookie
-
Gets the max age of the cookie.
- getMessage() - Method in exception ej.hoka.http.encoding.HttpUnsupportedEncodingException
- getMethod() - Method in class ej.hoka.http.HttpRequest
-
Returns the request method as an integer value which is one of
HttpRequest.POST,HttpRequest.GET,HttpRequest.PUTorHttpRequest.DELETE. - getMimeType() - Method in class ej.hoka.http.HttpResponse
-
Returns the MIME-TYPE of the response.
- getMIMEType() - Method in class ej.hoka.http.support.ContentType
-
Returns the canonized MIME type (converted to lower case).
- getMIMEType(String) - Static method in class ej.hoka.http.support.Mime
-
Returns the MIME type from the name of the URI (file extension).
- getName() - Method in class ej.hoka.http.Cookie
-
Gets the name.
- getName() - Method in class ej.hoka.tcp.TcpServer
-
Returns the name of this TCPServer.
- getNextStreamConnection() - Method in class ej.hoka.tcp.TcpServer
-
Get the next
Socketto process. - getPath() - Method in class ej.hoka.http.Cookie
-
Gets the path.
- getPath() - Method in class ej.hoka.http.Route
-
Gets the path (URI) mapped in this route.
- getPathParam(String) - Method in class ej.hoka.http.HttpRequest
-
Returns the path parameter value mapped to the given name.
- getPort() - Method in class ej.hoka.http.HttpServer
-
Gets the port number to which this server is listening to, if any.
- getPort() - Method in class ej.hoka.tcp.TcpServer
-
Gets the port number to which this server is listening to, if any.
- getQuality() - Method in class ej.hoka.http.support.QualityArgument
-
Returns the quality value of this argument.
- getQueryParam(String) - Method in class ej.hoka.http.HttpRequest
-
Returns the query parameter mapped to the given name.
- getQueryParams() - Method in class ej.hoka.http.HttpRequest
-
Returns the Query parameters as
Map. - getRequestBody() - Method in class ej.hoka.http.HttpRequest
-
use
HttpRequest.parseBody(BodyParser)for more option on request body provided parsers. - getRoutes() - Method in class ej.hoka.http.HttpServer
-
Gets the list of registered routes.
- getSameSite() - Method in class ej.hoka.http.Cookie
-
Gets the same site policy.
- getSession(String) - Method in class ej.hoka.session.SessionHandler
-
Gets the session associated to the given ID, if any.
- getSplatParams() - Method in class ej.hoka.http.HttpRequest
-
Returns the list of splat parameters.
- getStatus() - Method in class ej.hoka.http.HttpResponse
-
Returns the response status.
- getTransferEncoding(String) - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Return the
TransferEncodingcorresponding to the given encoding. - getURI() - Method in class ej.hoka.http.HttpRequest
-
Returns the request URI.
- getValue() - Method in class ej.hoka.http.Cookie
-
Gets the value.
- getVersion() - Method in class ej.hoka.http.HttpRequest
-
Returns the HTTP version request.
- guessMimeType() - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler.ClasspathFilesHandlerBuilder
-
activate content type guessing.
H
- halt() - Static method in class ej.hoka.http.HttpServer
-
Immediately Stop the execution and return a 200 OK HTTP response.
- halt(String) - Static method in class ej.hoka.http.HttpServer
-
immediately Stop the execution and return an HTTP response with the status.
- halt(String, String) - Static method in class ej.hoka.http.HttpServer
-
immediately Stop the execution and return an HTTP response with the status and body.
- hasExpired() - Method in class ej.hoka.session.Session
-
Checks whether the session has expired or not.
- hashCode() - Method in class ej.hoka.http.Route
- head(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP HEAD requests on the path.
- head(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP HEAD requests on the path.
- HEAD - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isHEAD. - HEADER_ACCEPT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
accept. - HEADER_ACCEPT_ENCODING - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
accept-encoding. - HEADER_CACHE_CONTROLE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field
cache-control. - HEADER_CONNECTION - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
connection. - HEADER_CONTENT_ENCODING - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
content-encoding. - HEADER_CONTENT_LENGTH - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
content-length. - HEADER_CONTENT_TYPE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
content-type. - HEADER_COOKIE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
cookie. - HEADER_IF_NONE_MATCH - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
if-none-match. - HEADER_TRANSFER_ENCODING - Static variable in class ej.hoka.http.HttpConstants
-
HTTP header field (in lower case)
transfer-encoding. - HokaLogger - Class in ej.hoka.log
-
Gathers the messages.
- HT - Static variable in class ej.hoka.http.support.CharacterSeparatedList
-
Horizontal TAB character.
- HTTP_METHOD_CONNECT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
CONNECTmethod token as String. - HTTP_METHOD_DELETE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
DELETEmethod token as String. - HTTP_METHOD_GET - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
GETmethod token as String. - HTTP_METHOD_HEAD - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
HEADmethod token as String. - HTTP_METHOD_OPTIONS - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
OPTIONSmethod token as String. - HTTP_METHOD_PATCH - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
PATCHmethod token as String. - HTTP_METHOD_POST - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
POSTmethod token as String. - HTTP_METHOD_PUT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
PUTmethod token as String. - HTTP_METHOD_TRACE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP
TRACEmethod token as String. - HTTP_STATUS_BADREQUEST - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 400: the request is not valid.
- HTTP_STATUS_FORBIDDEN - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 403: the client doesn't have the permission to access the requested URL.
- HTTP_STATUS_INTERNALERROR - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 500: the server has encountered an error while generating the response.
- HTTP_STATUS_MEDIA_TYPE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 415: the requested resource type is not supported.
- HTTP_STATUS_METHODNOTALLOWED - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 405: the HTTP request method (GET/POST/PUT/DELETE) is not allowed on the server for the requested URI.
- HTTP_STATUS_NOTACCEPTABLE - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 406: the client cannot handle the data returned in the HTTP response.
- HTTP_STATUS_NOTFOUND - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 404: the requested URL has not been found.
- HTTP_STATUS_NOTIMPLEMENTED - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 501: the HTTP request method is not implemented.
- HTTP_STATUS_NOTMODIFIED - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 304: the requested resources hasn't been modified since the last time.
- HTTP_STATUS_OK - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 200: the response has been found and correctly sent.
- HTTP_STATUS_REDIRECT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 301: the requested URL redirected to another URL.
- HTTP_STATUS_REQUESTTIMEOUT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 408: the client initiated the connection but didn't send the request (idle connection).
- HTTP_STATUS_UNAUTHORIZED - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 401: the requested resources require valid authentication credentials.
- HttpConstants - Class in ej.hoka.http
-
Constants for HTTP statuses, methods and header fields.
- httpOnly() - Method in class ej.hoka.http.Cookie.Builder
-
HttpOnly Optional Forbids JavaScript from accessing the cookie, for example, through the Document.cookie property.
- HttpPart - Class in ej.hoka.http.body
-
A part of a multipart HTTP request.
- HttpRequest - Class in ej.hoka.http
-
Represents a HTTP Request.
- HttpRequest(InputStream, EncodingRegistry) - Constructor for class ej.hoka.http.HttpRequest
-
Constructs a new instance of HTTPRequest.
- HttpResponse - Class in ej.hoka.http
-
Represents a HTTP Response.
- HttpResponse() - Constructor for class ej.hoka.http.HttpResponse
-
Creates an empty
HttpResponse. - HttpServer - Class in ej.hoka.http
-
HTTP Server.
- HttpServer.HttpServerBuilder - Class in ej.hoka.http
-
HttpServer.HttpServerBuilderbuilder. - HttpUnsupportedEncodingException - Exception in ej.hoka.http.encoding
-
This exception is thrown when
HttpConstants.HEADER_TRANSFER_ENCODINGorHttpConstants.HEADER_CONTENT_ENCODINGcannot be handled by the server. - HttpUnsupportedEncodingException(String, String) - Constructor for exception ej.hoka.http.encoding.HttpUnsupportedEncodingException
-
Creates a new
UnsupportedEncodingExceptionwith the given parameters.
I
- IdentityContentEncoding - Class in ej.hoka.http.encoding
-
HTTP-1.1 Identity encoding handler.
- IdentityMessageBodyInputStream - Class in ej.hoka.io
-
Identity input stream.
- IdentityMessageBodyInputStream(InputStream, int) - Constructor for class ej.hoka.io.IdentityMessageBodyInputStream
-
Creates a new instance of
IdentityMessageBodyInputStreamwith theInputStreamiswith the predefined lengthbodyLength. - IdentityMessageBodyOutputStream - Class in ej.hoka.io
-
Identity output stream.
- IdentityMessageBodyOutputStream(OutputStream) - Constructor for class ej.hoka.io.IdentityMessageBodyOutputStream
-
Creates a new instance of
IdentityMessageBodyOutputStreamusing theOutputStreamas the underlying OutputStream to write the data to. - IdentityTransferEncoding - Class in ej.hoka.http.encoding
-
Identity transfer coding handler.
- info(String) - Method in interface ej.hoka.log.Logger
-
Log with level info.
- initializeNbParameters(int) - Method in class ej.hoka.http.support.ContentType
-
Does nothing.
- initializeNbParameters(int) - Method in class ej.hoka.http.support.ParameterizedArgument
-
Initialize the number of parameters to read for this argument.
- initializeNbParameters(int) - Method in class ej.hoka.http.support.QualityArgument
-
Sets the quality value to
1ifnbTokensequals to0. - initializeNbTokens(int) - Method in class ej.hoka.http.support.AcceptEncoding
-
Sets the size of the array for storing parsed
QualityArguments. - initializeNbTokens(int) - Method in class ej.hoka.http.support.CharacterSeparatedList
-
Set the number of tokens to read.
- initializeNbTokens(int) - Method in class ej.hoka.http.support.ParameterizedArgument
-
Initialize the number of tokens.
- instance - Static variable in class ej.hoka.log.HokaLogger
-
The message logger.
- internalServerError(String) - Method in class ej.hoka.http.HttpServer
-
Override internal server error message 501.
- internalServerError(String, String) - Method in class ej.hoka.http.HttpServer
-
Override internal server error message 501.
- isDebugEnabled() - Method in interface ej.hoka.log.Logger
-
Checks if debug is enabled.
- isErrorEnabled() - Method in interface ej.hoka.log.Logger
-
Checks if error is enabled.
- isHttpOnly() - Method in class ej.hoka.http.Cookie
-
Checks if the cookie is for http only.
- isInfoEnabled() - Method in interface ej.hoka.log.Logger
-
Checks if info is enabled.
- isSecure() - Method in class ej.hoka.http.Cookie
-
Checks if the cookie is secured.
- isStopped() - Method in class ej.hoka.tcp.TcpServer
-
Returns
trueif theTcpServeris stopped. - isTraceEnabled() - Method in interface ej.hoka.log.Logger
-
Checks if trace is enabled.
- isWarnEnabled() - Method in interface ej.hoka.log.Logger
-
Checks if warn is enabled.
K
- KEEP_ALIVE - Static variable in class ej.hoka.http.HttpConstants
-
Value for HTTP header field "Connection" (
keep-alive). - KEY_CHARSET - Static variable in class ej.hoka.http.support.ContentType
-
The string "charset".
L
- Lax - ej.hoka.http.Cookie.SameSite
-
The cookie is not sent on cross-site requests, such as calls to load images or frames, but is sent when a user is navigating to the origin site from an external site (e.g.
- LF - Static variable in class ej.hoka.http.support.CharacterSeparatedList
-
Line feed character.
- Logger - Interface in ej.hoka.log
-
Server logger.
- LoggerFactory - Class in ej.hoka.log
-
Factory class for the logger.
- LoggerFactory() - Constructor for class ej.hoka.log.LoggerFactory
M
- mapFileExtensionToMIMEType(String, String) - Static method in class ej.hoka.http.support.Mime
-
Define a mapping between a file extension and a MIME-Type.
The mapping is defined only if the given file extension isn't already mapped to a MIME-Type. - maxAge(int) - Method in class ej.hoka.http.Cookie.Builder
-
Max-Age=<number>Optional Number of seconds until the cookie expires. - Mime - Class in ej.hoka.http.support
-
Utilities for handling the MIME-Type header field.
- MIME_APP_JSON - Static variable in class ej.hoka.http.support.Mime
-
Json Mime type.
- MIME_CSS - Static variable in class ej.hoka.http.support.Mime
-
CSS code MIME type.
- MIME_DEFAULT_BINARY - Static variable in class ej.hoka.http.support.Mime
-
Binary code MIME type.
- MIME_FORM_ENCODED_DATA - Static variable in class ej.hoka.http.support.Mime
-
Form Encoded Data MIME type.
- MIME_GIF - Static variable in class ej.hoka.http.support.Mime
-
GIF files MIME type.
- MIME_HTML - Static variable in class ej.hoka.http.support.Mime
-
HTML code MIME type.
- MIME_JPEG - Static variable in class ej.hoka.http.support.Mime
-
JPEG files MIME type.
- MIME_JS - Static variable in class ej.hoka.http.support.Mime
-
JavaScript code MIME type.
- MIME_MULTIPART_FORM_ENCODED_DATA - Static variable in class ej.hoka.http.support.Mime
-
Multipart Form Encoded Data MIME type.
- MIME_PLAINTEXT - Static variable in class ej.hoka.http.support.Mime
-
Standard text MIME type.
- MIME_PNG - Static variable in class ej.hoka.http.support.Mime
-
PNG files MIME type.
- MIME_XML - Static variable in class ej.hoka.http.support.Mime
-
XML code MIME type.
- MultiPartBodyParser - Class in ej.hoka.http.body
-
A body parser for
Mime.MIME_MULTIPART_FORM_ENCODED_DATA. - MultiPartBodyParser() - Constructor for class ej.hoka.http.body.MultiPartBodyParser
- MultiPartBodyParser.MultiPartBody - Class in ej.hoka.http.body
-
Class representing the collection of
HttpPartin the request. - MultipartStringsParser - Class in ej.hoka.http.body
-
A body parser for
Mime.MIME_MULTIPART_FORM_ENCODED_DATAthat parse parts as strings. - MultipartStringsParser() - Constructor for class ej.hoka.http.body.MultipartStringsParser
N
- name(String) - Method in class ej.hoka.http.Cookie.Builder
-
A
<cookie-name>can be any US-ASCII characters, except control characters, spaces, or tabs. - newParameter(int, int, int, int, int) - Method in class ej.hoka.http.support.ContentType
-
Checks if the key value (from index startKey to index stopKey) equals to "charset" and updates the internally stored charset to the value extracted from index startValue to index stopValue from the
CharacterSeparatedList.currentString. - newParameter(int, int, int, int, int) - Method in class ej.hoka.http.support.ParameterizedArgument
-
Reads a new parameter.
- newParameter(int, int, int, int, int) - Method in class ej.hoka.http.support.QualityArgument
-
Sets the quality value.
- newSession() - Method in class ej.hoka.session.SessionHandler
-
Creates a new session.
- newToken(int, int, int) - Method in class ej.hoka.http.support.AcceptEncoding
- newToken(int, int, int) - Method in class ej.hoka.http.support.CharacterSeparatedList
-
Read a new token between the given start and stop index and set its id.
- newToken(int, int, int) - Method in class ej.hoka.http.support.ParameterizedArgument
-
Adds a new token to the array of tokens.
- nextPart() - Method in class ej.hoka.http.body.MultiPartBodyParser.MultiPartBody
-
Consumes the input stream from the request to get the next
HttpPartavailable. - None - ej.hoka.http.Cookie.SameSite
-
The browser sends the cookie with both cross-site and same-site requests.
- notFoundError(String) - Method in class ej.hoka.http.HttpServer
-
Override not found error 404.
- notFoundError(String, String) - Method in class ej.hoka.http.HttpServer
-
Override not found error 404.
O
- open(HttpRequest, InputStream) - Method in class ej.hoka.http.encoding.ChunkedTransferCodingHandler
-
Creates a
ChunkedMessageBodyInputStreamto read the body of the HTTP request in "chunked" encoding from theHttpRequestand theInputStream. - open(HttpRequest, InputStream) - Method in class ej.hoka.http.encoding.IdentityTransferEncoding
-
Creates a new instance of
IdentityMessageBodyInputStreamto read the message body of the HTTP request. - open(HttpRequest, InputStream) - Method in interface ej.hoka.http.encoding.TransferEncoding
-
Opens an
InputStreamthat can be used to decode message body of the given request. - open(HttpResponse, OutputStream) - Method in class ej.hoka.http.encoding.ChunkedTransferCodingHandler
-
Creates an
OutputStreamto write the body of the HTTP response in "chunked" encoding using theHttpResponseand theOutputStream. - open(HttpResponse, OutputStream) - Method in class ej.hoka.http.encoding.IdentityTransferEncoding
-
Creates an
IdentityMessageBodyOutputStreamto write the message body of the HTTP response. - open(HttpResponse, OutputStream) - Method in interface ej.hoka.http.encoding.TransferEncoding
-
Opens an
OutputStreamthat can be used to encode the message body of theHttpResponse. - open(InputStream) - Method in interface ej.hoka.http.encoding.ContentEncoding
-
Returns an
InputStreamto read the decoded data from theoriginalInputStream. - open(InputStream) - Method in class ej.hoka.http.encoding.IdentityContentEncoding
-
Returns the
originalInputStream. - open(OutputStream) - Method in interface ej.hoka.http.encoding.ContentEncoding
-
Wraps the
originalOutputStreamwith a specialOutputStreamwhich performs the encoding. - open(OutputStream) - Method in class ej.hoka.http.encoding.IdentityContentEncoding
-
Returns the
originalOutputStream. - options(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP OPTIONS requests on the path.
- options(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP OPTIONS requests on the path.
- OPTIONS - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isOPTIONS.
P
- PARAMETER_SEP - Static variable in class ej.hoka.http.support.ParameterizedArgument
-
Separator for the parameters: ';'.
- ParameterizedArgument - Class in ej.hoka.http.support
-
Generic parser for parameterized arguments.
- ParameterizedArgument() - Constructor for class ej.hoka.http.support.ParameterizedArgument
-
Creates a new instance of
ParameterizedArgumentwith the default separator character of semicolon (";"). - ParameterParser - Class in ej.hoka.http.body
-
A parser for
Mime.MIME_FORM_ENCODED_DATAand parameters in URI. - ParameterParser() - Constructor for class ej.hoka.http.body.ParameterParser
- parse(String) - Method in class ej.hoka.http.support.CharacterSeparatedList
-
Parses the given
String. - parse(String, int, int) - Method in class ej.hoka.http.support.CharacterSeparatedList
-
Parses the
Stringstrfrom thestartindex to thestopindex. - parseBody(BodyParser<T>) - Method in class ej.hoka.http.HttpRequest
-
Request the body to be parsed.
- parseBody(InputStream, String) - Method in interface ej.hoka.http.body.BodyParser
-
Parse the body.
- parseBody(InputStream, String) - Method in class ej.hoka.http.body.MultiPartBodyParser
-
Initialize the parsing, must be called before
MultiPartBodyParser.MultiPartBody.nextPart(). - parseBody(InputStream, String) - Method in class ej.hoka.http.body.MultipartStringsParser
- parseBody(InputStream, String) - Method in class ej.hoka.http.body.ParameterParser
- parseBody(InputStream, String) - Method in class ej.hoka.http.body.StringBodyParser
- parseParameters(InputStream, Map<String, String>) - Static method in class ej.hoka.http.body.ParameterParser
-
Parses parameters.
- patch(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP PATCH requests on the path.
- patch(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP PATCH requests on the path.
- PATCH - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isPATCH. - path(String) - Method in class ej.hoka.http.Cookie.Builder
-
Path=<path-value>Optional A path that must exist in the requested URL, or the browser won't send the Cookie header. - port(int) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Set the server port number.
- post(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP POST requests on the path.
- post(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP POST requests on the path.
- POST - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isPOST. - process(HttpRequest, HttpResponse) - Method in interface ej.hoka.http.requesthandler.RequestHandler
-
Processes the request and return the appropriate response.
- put(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP PUT requests on the path.
- put(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP PUT requests on the path.
- PUT - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isPUT.
Q
- quality - Variable in class ej.hoka.http.support.QualityArgument
-
The parsed quality argument in the "Accept" header.
- QualityArgument - Class in ej.hoka.http.support
-
Class for handling HTTP "Accept" header quality argument.
- QualityArgument() - Constructor for class ej.hoka.http.support.QualityArgument
R
- read() - Method in class ej.hoka.http.body.HttpPart
- read() - Method in class ej.hoka.io.ChunkedMessageBodyInputStream
-
Reads the next byte from the InputStream used in the constructor.
- read() - Method in class ej.hoka.io.IdentityMessageBodyInputStream
-
Reads the next byte of data from the input stream.
- read(byte[], int, int) - Method in class ej.hoka.http.body.HttpPart
- read(byte[], int, int) - Method in class ej.hoka.io.ChunkedMessageBodyInputStream
-
Reads up to
lengthbytes to the byte arraydatastarting withoffset. - read(byte[], int, int) - Method in class ej.hoka.io.IdentityMessageBodyInputStream
-
Reads up to
lengthbytes of data from the underlyingInputStreaminto an array of bytes. - refresh(String) - Method in class ej.hoka.session.SessionHandler
-
Refreshes the expiration date of the session identified by
sessionID. - registerContentEncoding(ContentEncoding) - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Registers a new HTTP content encoding handler.
- registerTransferEncoding(TransferEncoding) - Method in class ej.hoka.http.encoding.EncodingRegistry
-
Registers a new HTTP transfer coding handler.
- removeAttribute(String) - Method in class ej.hoka.session.Session
-
Remove an attribute from this session.
- removeCookie(String) - Method in class ej.hoka.http.HttpResponse
-
Remove the cookie mapped by name.
- removeSession(String) - Method in class ej.hoka.session.SessionHandler
-
Removes the session identified by
sessionIDfrom the active sessions. - RequestHandler - Interface in ej.hoka.http.requesthandler
-
A handler to process request and create appropriate response.
- rootDirectory(String) - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler.ClasspathFilesHandlerBuilder
-
Returns the instance of
ClasspathFilesHandler.ClasspathFilesHandlerBuilderconfigured with the given path as the root directory for resources to serve. - Route - Class in ej.hoka.http
-
Represent an HTTP route.
- Route(int, String, RequestHandler) - Constructor for class ej.hoka.http.Route
-
Constructs a new instance of Route.
- Route(int, String, String, RequestHandler) - Constructor for class ej.hoka.http.Route
-
Constructs a new instance of Route.
S
- sameSite(Cookie.SameSite) - Method in class ej.hoka.http.Cookie.Builder
-
SameSite=<samesite-value>Optional Controls whether a cookie is sent with cross-origin requests, providing some protection against cross-site request forgery attacks (CSRF). - secure() - Method in class ej.hoka.http.Cookie.Builder
-
Secure Optional Cookie is only sent to the server when a request is made with the https: scheme (except on localhost), and therefore is more resistent to man-in-the-middle attacks.
- 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 code
nullis file not found. - Session - Class in ej.hoka.session
-
Server side Session.
- Session(String, long) - Constructor for class ej.hoka.session.Session
-
Constructs a
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
-
Constructs a
SessionHandlerwith 1-hour-long sessions. - SessionHandler(Random, long) - Constructor for class ej.hoka.session.SessionHandler
-
Constructs a
SessionHandlerprovided 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(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
InputStreamfrom which the response data can be read. - setData(InputStream, long) - Method in class ej.hoka.http.HttpResponse
-
Sets the
InputStreamfrom which the response data can be read. - 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
- 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 workers to process opened connections. - start() - Method in class ej.hoka.tcp.TcpServer
-
Starts the
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
-
Stops the
HttpServer. - stop() - Method in class ej.hoka.tcp.TcpServer
-
Stops the
TcpServerand closes the connection. - Strict - ej.hoka.http.Cookie.SameSite
-
The browser sends the cookie only for same-site requests (that is, requests originating from the same site that set the cookie).
- 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
T
- TAB - Static variable in class ej.hoka.http.HttpConstants
-
Tabulation '\t'.
- TcpServer - Class in ej.hoka.tcp
-
TCP/IP server that stores incoming connections.
- TcpServer(int, int) - Constructor for class ej.hoka.tcp.TcpServer
-
Constructs a new instance of
TcpServerusing environment's default socket factory. - TcpServer(int, int, ServerSocketFactory) - Constructor for class ej.hoka.tcp.TcpServer
- TcpServer(int, int, ServerSocketFactory, int) - Constructor for class ej.hoka.tcp.TcpServer
- TOKEN_SEP - Static variable in class ej.hoka.http.support.ParameterizedArgument
-
Separator for the tokens: '='.
- tooManyOpenConnections(Socket) - Method in class ej.hoka.tcp.TcpServer
-
Called when a connection cannot be added to the buffer.
- toString() - Method in class ej.hoka.http.Cookie
- trace(String) - Method in interface ej.hoka.log.Logger
-
Log with level trace.
- trace(String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP TRACE requests on the path.
- trace(String, String, RequestHandler) - Method in class ej.hoka.http.HttpServer
-
Map the handler to HTTP TRACE requests on the path.
- TRACE - Static variable in class ej.hoka.http.HttpRequest
-
Value returned by
HttpRequest.getMethod()if the request method isTRACE. - TransferEncoding - Interface in ej.hoka.http.encoding
-
Interface for defining HTTP transfer coding handlers.
U
- UrlDecoder - Class in ej.hoka.http.support
-
Utilities for decoding percent encoded characters.
V
- value(String) - Method in class ej.hoka.http.Cookie.Builder
-
A
<cookie-value>can optionally be wrapped in double quotes and include any US-ASCII characters excluding control characters, Whitespace, double quotes, comma, semicolon, and backslash. - valueOf(String) - Static method in enum ej.hoka.http.Cookie.SameSite
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ej.hoka.http.Cookie.SameSite
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- warn(String) - Method in interface ej.hoka.log.Logger
-
Log with level warn.
- welcomeFile(String) - Method in class ej.hoka.http.requesthandler.ClasspathFilesHandler.ClasspathFilesHandlerBuilder
-
Returns the instance of
ClasspathFilesHandler.ClasspathFilesHandlerBuilderconfigured with the given file name as the index. - WILDCARD - Static variable in class ej.hoka.http.HttpConstants
-
Wildcard '*'.
- withStrictAcceptContentEncoding() - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
RFC2616 14.3 Activate strict content encoding acceptance.
- withTrailingSlashSupport() - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Activate trailing slash matching support in URI.
- workerCount(int) - Method in class ej.hoka.http.HttpServer.HttpServerBuilder
-
Set threads count that handles incoming request.
- write(byte[]) - Method in class ej.hoka.io.IdentityMessageBodyOutputStream
-
Writes the content of the byte array to the underlying output stream.
- write(byte[], int, int) - Method in class ej.hoka.io.ChunkedMessageBodyOutputStream
-
Writes the content of the byte array
bfrom the offsetoffin lengthlenin chunked encoding using the underlyingOutputStream. - write(byte[], int, int) - Method in class ej.hoka.io.IdentityMessageBodyOutputStream
-
Writes
lenbytes from the specified byte array starting at offsetoffto this output stream. - write(int) - Method in class ej.hoka.io.ChunkedMessageBodyOutputStream
-
Write one byte of data.
- write(int) - Method in class ej.hoka.io.IdentityMessageBodyOutputStream
-
Writes the specified byte to this output stream.
_
- _307_TEMPORARY_REDIRECT - Static variable in class ej.hoka.http.HttpConstants
-
HTTP code 307: the requested URL redirected to another URL.
All Classes All Packages