A B C D E F G H I K L M N O P R S T U V W

A

AbstractHttpServerConfiguration - Class in org.nnsoft.shs
An abstract RequestDispatcherConfiguration implementation that helps on dropping the boilerplate code of repeating the binder variable reference when binding.
AbstractHttpServerConfiguration() - Constructor for class org.nnsoft.shs.AbstractHttpServerConfiguration
 
ACCEPT - Static variable in interface org.nnsoft.shs.http.Headers
The Accept HTTP Header constant.
ACCEPT_CHARSET - Static variable in interface org.nnsoft.shs.http.Headers
The Accept-Charset HTTP Header constant.
ACCEPT_ENCODING - Static variable in interface org.nnsoft.shs.http.Headers
The Accept-Encoding HTTP Header constant.
ACCEPT_LANGUAGE - Static variable in interface org.nnsoft.shs.http.Headers
The Accept-Language HTTP Header constant.
ACCEPT_RANGES - Static variable in interface org.nnsoft.shs.http.Headers
The Accept-Ranges HTTP Header constant.
addCookie(Cookie) - Method in class org.nnsoft.shs.core.http.MutableRequest
Add a non null cookie.
addCookie(Cookie) - Method in interface org.nnsoft.shs.http.Response
 
addHeader(String, String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Allows adding a new HTTP Header.
addHeader(String, String) - Method in interface org.nnsoft.shs.http.Response
 
addParameter(String, String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Allows adding a new parameter.
addPort(int) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Add a cookie port - must be not 0 nor negative.
addQueryStringParameter(String, String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Allows adding a new query string parameter.
addValue(K, V) - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
 
AGE - Static variable in interface org.nnsoft.shs.http.Headers
The Age HTTP Header constant.
ALLOW - Static variable in interface org.nnsoft.shs.http.Headers
The Allow HTTP Header constant.
AUTHORIZATION - Static variable in interface org.nnsoft.shs.http.Headers
The Authorization HTTP Header constant.

B

BaseRequestHandler - Class in org.nnsoft.shs.http
Provides an abstract class to be subclassed to create an HTTP handler.
BaseRequestHandler() - Constructor for class org.nnsoft.shs.http.BaseRequestHandler
 
bindServerToHost(String) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Configure the host name or the textual representation of its IP address the server has to be bound.
bindServerToHost(String) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Configure the host name or the textual representation of its IP address the server has to be bound.
bindServerToPort(int) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Configure the port number where binding the server.
bindServerToPort(int) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Configure the port number where binding the server.
build() - Method in class org.nnsoft.shs.core.http.CookieBuilder
Creates a new Cookie instance given the set parameters.
ByteBufferEnqueuerOutputStream - Class in org.nnsoft.shs.core.io
 
ByteBufferEnqueuerOutputStream(Queue<ByteBuffer>) - Constructor for class org.nnsoft.shs.core.io.ByteBufferEnqueuerOutputStream
 

C

CACHE_CONTROL - Static variable in interface org.nnsoft.shs.http.Headers
The Cache-Control HTTP Header constant.
checkArgument(boolean, String, Object...) - Static method in class org.nnsoft.shs.lang.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkNotNull(T, String, Object...) - Static method in class org.nnsoft.shs.lang.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkState(boolean, String, Object...) - Static method in class org.nnsoft.shs.lang.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
close() - Method in class org.nnsoft.shs.core.io.ByteBufferEnqueuerOutputStream
 
closeQuietly(Closeable) - Static method in class org.nnsoft.shs.core.io.IOUtils
Close quietly the input closeable.
configure(HttpServerConfigurator) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
configure() - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
 
configure() - Method in class org.nnsoft.shs.demo.SimpleHttpServerLauncher
 
configure(HttpServerConfigurator) - Method in interface org.nnsoft.shs.HttpServerConfiguration
 
connect(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP CONNECT request.
CONNECTION - Static variable in interface org.nnsoft.shs.http.Headers
The Connection HTTP Header constant.
contains(K) - Method in interface org.nnsoft.shs.collections.MultiValued
Verifies the input key is contained in the collection.
contains(K) - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
Verifies the input key is contained in the collection.
CONTENT_ENCODING - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Encoding HTTP Header constant.
CONTENT_LANGUAGE - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Language HTTP Header constant.
CONTENT_LENGTH - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Length HTTP Header constant.
CONTENT_LOCATION - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Location HTTP Header constant.
CONTENT_MD5 - Static variable in interface org.nnsoft.shs.http.Headers
The Content-MD5 HTTP Header constant.
CONTENT_RANGE - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Range HTTP Header constant.
CONTENT_TYPE - Static variable in interface org.nnsoft.shs.http.Headers
The Content-Type HTTP Header constant.
contentType() - Method in class org.nnsoft.shs.core.io.FileResponseBodyWriter
Returns the mime type of the streamed response.
contentType() - Method in interface org.nnsoft.shs.io.ResponseBodyWriter
Returns the mime type of the streamed response.
Cookie - Interface in org.nnsoft.shs.http
In memory representation of HTTP cookie.
COOKIE - Static variable in interface org.nnsoft.shs.http.Headers
The Cookie HTTP Header constant.
CookieBuilder - Class in org.nnsoft.shs.core.http
A builder to simplify the Cookie instantiation.
CookieBuilder() - Constructor for class org.nnsoft.shs.core.http.CookieBuilder
 

D

DATE - Static variable in interface org.nnsoft.shs.http.Headers
The Date HTTP Header constant.
DefaultResponseBuilder - Interface in org.nnsoft.shs
Builder to associate a predefined response when serving specific status codes.
delete(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP DELETE request.

E

EOM - Static variable in class org.nnsoft.shs.core.io.ByteBufferEnqueuerOutputStream
 
eq(O, O) - Static method in class org.nnsoft.shs.lang.Objects
Verifies input objects are equal.
equals(Object) - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
ETAG - Static variable in interface org.nnsoft.shs.http.Headers
The ETag HTTP Header constant.
EXPECT - Static variable in interface org.nnsoft.shs.http.Headers
The Expect HTTP Header constant.
EXPIRES - Static variable in interface org.nnsoft.shs.http.Headers
The Expires HTTP Header constant.

F

FileRequestHandler - Class in org.nnsoft.shs.demo
A simple request handler that serves static files.
FileRequestHandler(File) - Constructor for class org.nnsoft.shs.demo.FileRequestHandler
 
FileResponseBodyWriter - Class in org.nnsoft.shs.core.io
Generates a body response from a File.
FileResponseBodyWriter(File) - Constructor for class org.nnsoft.shs.core.io.FileResponseBodyWriter
Creates a new ResponseBodyWriter given the file has to be transferred to the body response.
flush() - Method in class org.nnsoft.shs.core.io.ByteBufferEnqueuerOutputStream
 
FROM - Static variable in interface org.nnsoft.shs.http.Headers
The From HTTP Header constant.

G

get(Request, Response) - Method in class org.nnsoft.shs.demo.FileRequestHandler
Provides static files as they are in the File System.
get(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP GET request.
getAllEntries() - Method in interface org.nnsoft.shs.collections.MultiValued
Returns an unmodifiable iterable instance over all stored entries.
getAllEntries() - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
Returns an unmodifiable iterable instance over all stored entries.
getAllKeys() - Method in interface org.nnsoft.shs.collections.MultiValued
Returns an unmodifiable set containing all the stored keys.
getAllKeys() - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
Returns an unmodifiable set containing all the stored keys.
getAttribute(String) - Method in interface org.nnsoft.shs.http.Session
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
getBodyWriter() - Method in interface org.nnsoft.shs.http.Response
 
getClientHost() - Method in class org.nnsoft.shs.core.http.MutableRequest
Return the client host connected to the server.
getClientHost() - Method in interface org.nnsoft.shs.http.Request
Return the client host connected to the server.
getContentLength() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the request body content length.
getContentLength() - Method in class org.nnsoft.shs.core.io.FileResponseBodyWriter
Returns the body content length if known, -1 otherwise.
getContentLength() - Method in interface org.nnsoft.shs.http.Request
Returns the request body content length.
getContentLength() - Method in interface org.nnsoft.shs.io.ResponseBodyWriter
Returns the body content length if known, -1 otherwise.
getCookies() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the list of cookies.
getCookies() - Method in interface org.nnsoft.shs.http.Request
Returns the list of cookies.
getCookies() - Method in interface org.nnsoft.shs.http.Response
 
getCreationTime() - Method in interface org.nnsoft.shs.http.Session
Returns the time when this session was created.
getDomain() - Method in interface org.nnsoft.shs.http.Cookie
The cookie domain.
getFirstValue(K) - Method in interface org.nnsoft.shs.collections.MultiValued
Returns the first associated value to the given key, if found, null otherwise.
getFirstValue(K) - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
Returns the first associated value to the given key, if found, null otherwise.
getHeaders() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the HTTP headers.
getHeaders() - Method in interface org.nnsoft.shs.http.Request
Returns the HTTP headers.
getHeaders() - Method in interface org.nnsoft.shs.http.Response
 
getId() - Method in interface org.nnsoft.shs.http.Session
Returns the unique identifier assigned to this session.
getLastAccessedTime() - Method in interface org.nnsoft.shs.http.Session
Returns the last time the client sent a request associated with this session.
getMaxAge() - Method in interface org.nnsoft.shs.http.Cookie
The cookie max age.
getMethod() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the HTTP method.
getMethod() - Method in interface org.nnsoft.shs.http.Request
Returns the HTTP method.
getName() - Method in interface org.nnsoft.shs.http.Cookie
The cookie name.
getParameters() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the parameters, populated only if HTTP method is Request.Method.POST and Content-Type is set to application/x-www-form-urlencoded.
getParameters() - Method in interface org.nnsoft.shs.http.Request
Returns the parameters, populated only if HTTP method is Request.Method.POST and Content-Type is set to application/x-www-form-urlencoded.
getParsedRequest() - Method in class org.nnsoft.shs.core.http.parse.RequestStreamingParser
 
getPath() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the request path.
getPath() - Method in interface org.nnsoft.shs.http.Cookie
The cookie path.
getPath() - Method in interface org.nnsoft.shs.http.Request
Returns the request path.
getPorts() - Method in interface org.nnsoft.shs.http.Cookie
The cookie ports.
getProtocolName() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the protocol name.
getProtocolName() - Method in interface org.nnsoft.shs.http.Request
Returns the protocol name.
getProtocolName() - Method in interface org.nnsoft.shs.http.Response
 
getProtocolVersion() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the protocol version.
getProtocolVersion() - Method in interface org.nnsoft.shs.http.Request
Returns the protocol version.
getProtocolVersion() - Method in interface org.nnsoft.shs.http.Response
 
getQueryStringParameters() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the Query String parameters, populated only if HTTP method is Request.Method.GET.
getQueryStringParameters() - Method in interface org.nnsoft.shs.http.Request
Returns the Query String parameters, populated only if HTTP method is Request.Method.GET.
getServerHost() - Method in class org.nnsoft.shs.core.http.MutableRequest
Return the server host.
getServerHost() - Method in interface org.nnsoft.shs.http.Request
Return the server host.
getServerPort() - Method in class org.nnsoft.shs.core.http.MutableRequest
Return the server port.
getServerPort() - Method in interface org.nnsoft.shs.http.Request
Return the server port.
getSession() - Method in class org.nnsoft.shs.core.http.MutableRequest
Returns the current HTTP Session.
getSession() - Method in interface org.nnsoft.shs.http.Request
Returns the current HTTP Session.
getStatus() - Method in class org.nnsoft.shs.core.SimpleHttpServer
Returns the current server status.
getStatus() - Method in interface org.nnsoft.shs.http.Response
 
getStatus() - Method in interface org.nnsoft.shs.HttpServer
Returns the current server status.
getStatusCode() - Method in enum org.nnsoft.shs.http.Response.Status
 
getStatusText() - Method in enum org.nnsoft.shs.http.Response.Status
 
getValue() - Method in interface org.nnsoft.shs.http.Cookie
The cookie value.
getValues(K) - Method in interface org.nnsoft.shs.collections.MultiValued
Returns an unmodifiable list with all the associated values to the given key, if found, null otherwise.
getValues(K) - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
Returns an unmodifiable list with all the associated values to the given key, if found, null otherwise.

H

handle(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
Allows concrete implementations to populate Response parameters given the Request.
handle(Request, Response) - Method in interface org.nnsoft.shs.http.RequestHandler
Allows concrete implementations to populate Response parameters given the Request.
hash(int, int, Object...) - Static method in class org.nnsoft.shs.lang.Objects
Computes a hashCode given the input objects.
hashCode() - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
head(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP HEAD request.
Headers - Interface in org.nnsoft.shs.http
 
HOST - Static variable in interface org.nnsoft.shs.http.Headers
The Host HTTP Header constant.
HttpServer - Interface in org.nnsoft.shs
An Simple Server implementation able to serve
HttpServer.Status - Enum in org.nnsoft.shs
Statuses that the Server can assume.
HttpServerConfiguration - Interface in org.nnsoft.shs
The Server configuration.
HttpServerConfigurator - Interface in org.nnsoft.shs
The Server configuration.

I

IF_MATCH - Static variable in interface org.nnsoft.shs.http.Headers
The If-Match HTTP Header constant.
IF_MODIFIED_SINCE - Static variable in interface org.nnsoft.shs.http.Headers
The If-Modified-Since HTTP Header constant.
IF_NONE_MATCH - Static variable in interface org.nnsoft.shs.http.Headers
The If-None-Match HTTP Header constant.
IF_RANGE - Static variable in interface org.nnsoft.shs.http.Headers
The If-Range HTTP Header constant.
IF_UNMODIFIED_SINCE - Static variable in interface org.nnsoft.shs.http.Headers
The If-Unmodified-Since HTTP Header constant.
init(HttpServerConfiguration) - Method in class org.nnsoft.shs.core.SimpleHttpServer
Initializes the current server.
init(HttpServerConfiguration) - Method in interface org.nnsoft.shs.HttpServer
Initializes the current server.
InitException - Exception in org.nnsoft.shs
 
InitException(String, Object...) - Constructor for exception org.nnsoft.shs.InitException
Constructs a new exception with the specified detail message
InitException(String, Throwable) - Constructor for exception org.nnsoft.shs.InitException
Constructs a new exception with the specified detail message and cause.
IOUtils - Class in org.nnsoft.shs.core.io
Utility class for I/O management.
isNew() - Method in interface org.nnsoft.shs.http.Session
Marks the session is a new session or already existing one.
isRequestMessageComplete() - Method in class org.nnsoft.shs.core.http.parse.RequestStreamingParser
 
isSecure() - Method in interface org.nnsoft.shs.http.Cookie
Flag to mark the cookie is secure.

K

KEEP_ALIVE - Static variable in interface org.nnsoft.shs.http.Headers
The Keep-Alive HTTP Header constant.

L

LAST_MODIFIED - Static variable in interface org.nnsoft.shs.http.Headers
The Last-Modified HTTP Header constant.
LOCATION - Static variable in interface org.nnsoft.shs.http.Headers
The Location HTTP Header constant.

M

main(String[]) - Static method in class org.nnsoft.shs.demo.SimpleHttpServerLauncher
 
manageSession(Request, Response) - Method in class org.nnsoft.shs.core.http.SessionManager
 
MAX_FORWARDS - Static variable in interface org.nnsoft.shs.http.Headers
The Max-Forwards HTTP Header constant.
MultiValued<K,V> - Interface in org.nnsoft.shs.collections
A MultiValued is a read-only data structure where multiple values are associated to the same key.
MutableRequest - Class in org.nnsoft.shs.core.http
Basic Request implementation.
MutableRequest() - Constructor for class org.nnsoft.shs.core.http.MutableRequest
 

N

newResponse() - Static method in class org.nnsoft.shs.core.http.ResponseFactory
Creates a new Response instance.

O

Objects - Class in org.nnsoft.shs.lang
Simple Object-related utility methods.
onBodyPartReceived(ByteBuffer) - Method in interface org.nnsoft.shs.io.RequestBodyReader
Invoked as soon as some Request body part are received.
onComplete() - Method in interface org.nnsoft.shs.io.RequestBodyReader
Invoked as soon as all request body parts are terminated.
onRequestPartRead(ByteBuffer) - Method in class org.nnsoft.shs.core.http.parse.RequestStreamingParser
 
options(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP OPTIONS request.
org.nnsoft.shs - package org.nnsoft.shs
Public APIs of a simple HTTP Server.
org.nnsoft.shs.collections - package org.nnsoft.shs.collections
Additional Collections utilities.
org.nnsoft.shs.core - package org.nnsoft.shs.core
Implementation of simple HTTP Server APIs.
org.nnsoft.shs.core.collections - package org.nnsoft.shs.core.collections
Base implementation of Collections.
org.nnsoft.shs.core.http - package org.nnsoft.shs.core.http
Base implementation of HTTP entities.
org.nnsoft.shs.core.http.parse - package org.nnsoft.shs.core.http.parse
HTTP Request pull parser implementation.
org.nnsoft.shs.core.http.serialize - package org.nnsoft.shs.core.http.serialize
HTTP Response serializer implementation.
org.nnsoft.shs.core.io - package org.nnsoft.shs.core.io
Shared I/O utilities.
org.nnsoft.shs.demo - package org.nnsoft.shs.demo
Simple HTTP Server demo that relies on core implementation.
org.nnsoft.shs.http - package org.nnsoft.shs.http
Public APIs of HTTP protocol entities.
org.nnsoft.shs.io - package org.nnsoft.shs.io
I/O related classes.
org.nnsoft.shs.lang - package org.nnsoft.shs.lang
Various utility classes.

P

post(Request, Response) - Method in class org.nnsoft.shs.demo.FileRequestHandler
 
post(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP POST request.
PRAGMA - Static variable in interface org.nnsoft.shs.http.Headers
The Pragma HTTP Header constant.
Preconditions - Class in org.nnsoft.shs.lang
Code inspired from Google Guava
PROXY_AUTHENTICATE - Static variable in interface org.nnsoft.shs.http.Headers
The Proxy-Authenticate HTTP Header constant.
PROXY_AUTHORIZATION - Static variable in interface org.nnsoft.shs.http.Headers
The Proxy-Authorization HTTP Header constant.
put(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP PUT request.

R

RANGE - Static variable in interface org.nnsoft.shs.http.Headers
The Range HTTP Header constant.
readRequestBody(RequestBodyReader<T>) - Method in class org.nnsoft.shs.core.http.MutableRequest
Reads and converts the request body input stream.
readRequestBody(RequestBodyReader<T>) - Method in interface org.nnsoft.shs.http.Request
Reads and converts the request body input stream.
REFERER - Static variable in interface org.nnsoft.shs.http.Headers
The Referer HTTP Header constant.
removeAttribute(String) - Method in interface org.nnsoft.shs.http.Session
Removes the object bound with the specified name from this session.
Request - Interface in org.nnsoft.shs.http
HTTP Request representation.
Request.Method - Enum in org.nnsoft.shs.http
HTTP method representation.
RequestBodyReader<T> - Interface in org.nnsoft.shs.io
Request body are read by RequestBodyReader implementations.
RequestHandler - Interface in org.nnsoft.shs.http
A request handler is a lighter version of HttpServlet to implement HTTP negotiation.
RequestHandlerBuilder - Interface in org.nnsoft.shs
Chained builder to associate a RequestHandler to a previously specified path.
RequestParseException - Exception in org.nnsoft.shs.core.http
 
RequestParseException(String, Object...) - Constructor for exception org.nnsoft.shs.core.http.RequestParseException
 
RequestStreamingParser - Class in org.nnsoft.shs.core.http.parse
An LL(0) Request pull parser that incrementally rebuilds the HTTP Request.
RequestStreamingParser(String, String, int) - Constructor for class org.nnsoft.shs.core.http.parse.RequestStreamingParser
 
Response - Interface in org.nnsoft.shs.http
 
Response.Status - Enum in org.nnsoft.shs.http
 
ResponseBodyWriter - Interface in org.nnsoft.shs.io
Response body are generated via ResponseBodyWriter implementations.
ResponseFactory - Class in org.nnsoft.shs.core.http
Factory delegated to Response instances creation.
ResponseSerializer - Class in org.nnsoft.shs.core.http.serialize
Serializes an HTTP Response to the target output stream This class is not thread safe, create a new instance for each serialization.
ResponseSerializer(SelectionKey) - Constructor for class org.nnsoft.shs.core.http.serialize.ResponseSerializer
 
ResponseSerializer(SelectionKey, boolean) - Constructor for class org.nnsoft.shs.core.http.serialize.ResponseSerializer
Creates a new serializer instance.
RETRY_AFTER - Static variable in interface org.nnsoft.shs.http.Headers
The Retry-After HTTP Header constant.
RunException - Exception in org.nnsoft.shs
 
RunException(String, Object...) - Constructor for exception org.nnsoft.shs.RunException
Constructs a new exception with the specified detail message
RunException(String, Throwable) - Constructor for exception org.nnsoft.shs.RunException
Constructs a new exception with the specified detail message and cause.

S

serialize(Response) - Method in class org.nnsoft.shs.core.http.serialize.ResponseSerializer
Streams the input Response instance to the target output stream.
serve(String) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Starts binding a request path, can be expressed using the web.xml grammar, to a RequestHandler.
serve(File) - Method in interface org.nnsoft.shs.DefaultResponseBuilder
Associate a predefined response when serving specific status codes.
serve(String) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Starts binding a request path, can be expressed using the web.xml grammar, to a RequestHandler.
SERVER - Static variable in interface org.nnsoft.shs.http.Headers
The Server HTTP Header constant.
serveRequestsWithThreads(int) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Configure the number of threads that will serve the HTTP requests.
serveRequestsWithThreads(int) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Configure the number of threads that will serve the HTTP requests.
Session - Interface in org.nnsoft.shs.http
Represents an HTTP user session, inspired by the HttpSession
SessionManager - Class in org.nnsoft.shs.core.http
The SessionRegistry is the HTTP Session manager.
SessionManager(int) - Constructor for class org.nnsoft.shs.core.http.SessionManager
 
sessionsHaveMagAge(int) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Configure the maximum number of seconds of life of HTTP Sessions.
sessionsHaveMagAge(int) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Configure the maximum number of seconds of life of HTTP Sessions.
SET_COOKIE - Static variable in interface org.nnsoft.shs.http.Headers
The Set-Cookie HTTP Header constant.
setAttribute(String, A) - Method in interface org.nnsoft.shs.http.Session
Binds an object to this session, using the name specified.
setBody(ResponseBodyWriter) - Method in interface org.nnsoft.shs.http.Response
 
setClientHost(String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the client host connected to this server.
setContentLength(long) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the request body content length.
setDomain(String) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the cookie domain - must be not null.
setMaxAge(int) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the cookie max age - consider using -1 for non expiration.
setMethod(Request.Method) - Method in class org.nnsoft.shs.core.http.MutableRequest
Set the HTTP Method
setName(String) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the cookie name - must be not null.
setPath(String) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the cookie path - must be not null.
setPath(String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the request path.
setProtocolName(String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the protocol name.
setProtocolName(String) - Method in interface org.nnsoft.shs.http.Response
 
setProtocolVersion(String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the protocol version.
setProtocolVersion(String) - Method in interface org.nnsoft.shs.http.Response
 
setRequestBody(Queue<ByteBuffer>) - Method in class org.nnsoft.shs.core.http.MutableRequest
Set the buffered request content body.
setSecure(boolean) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the flag to mark the cookie is secure.
setServerHost(String) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets this server host.
setServerPort(int) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets this server port.
setSession(Session) - Method in class org.nnsoft.shs.core.http.MutableRequest
Sets the current user session.
setStatus(Response.Status) - Method in interface org.nnsoft.shs.http.Response
 
setValue(String) - Method in class org.nnsoft.shs.core.http.CookieBuilder
Set the cookie value - must be not null.
SHSException - Exception in org.nnsoft.shs
Base exception for the basic HTTP server.
SHSException(String, Object...) - Constructor for exception org.nnsoft.shs.SHSException
Constructs a new exception with the specified detail message
SHSException(String, Throwable) - Constructor for exception org.nnsoft.shs.SHSException
Constructs a new exception with the specified detail message and cause.
shutDown() - Method in class org.nnsoft.shs.core.http.SessionManager
Turns off the timer to clean the registered sessions.
ShutdownException - Exception in org.nnsoft.shs
 
ShutdownException(String, Object...) - Constructor for exception org.nnsoft.shs.ShutdownException
Constructs a new exception with the specified detail message
ShutdownException(String, Throwable) - Constructor for exception org.nnsoft.shs.ShutdownException
Constructs a new exception with the specified detail message and cause.
SimpleHttpServer - Class in org.nnsoft.shs.core
A simple HttpServer implementation.
SimpleHttpServer() - Constructor for class org.nnsoft.shs.core.SimpleHttpServer
 
SimpleHttpServerLauncher - Class in org.nnsoft.shs.demo
Simple HTTP Server based on Concurrent and NIO APIs.
SimpleMultiValued<K,V> - Class in org.nnsoft.shs.core.collections
 
SimpleMultiValued() - Constructor for class org.nnsoft.shs.core.collections.SimpleMultiValued
 
start() - Method in class org.nnsoft.shs.core.SimpleHttpServer
Starts the current server instance.
start() - Method in interface org.nnsoft.shs.HttpServer
Starts the current server instance.
stop() - Method in class org.nnsoft.shs.core.SimpleHttpServer
Stops the current server execution.
stop() - Method in interface org.nnsoft.shs.HttpServer
Stops the current server execution.
StreamAlreadyConsumedException - Exception in org.nnsoft.shs.io
Exception designed for cases where users intend to consume the HTTP request stream that has been already consumed by reading the application/x-www-form-urlencoded request.
StreamAlreadyConsumedException() - Constructor for exception org.nnsoft.shs.io.StreamAlreadyConsumedException
Creates a new Exception instance.

T

TE - Static variable in interface org.nnsoft.shs.http.Headers
The TE HTTP Header constant.
toString() - Method in class org.nnsoft.shs.core.collections.SimpleMultiValued
toString() - Method in class org.nnsoft.shs.core.http.MutableRequest
toUtf8CharBuffer(ByteBuffer) - Static method in class org.nnsoft.shs.core.io.IOUtils
 
toUtf8String(ByteBuffer) - Static method in class org.nnsoft.shs.core.io.IOUtils
 
trace(Request, Response) - Method in class org.nnsoft.shs.http.BaseRequestHandler
HTTP TRACE request.
TRAILER - Static variable in interface org.nnsoft.shs.http.Headers
The Trailer HTTP Header constant.
TRANSFER_ENCODING - Static variable in interface org.nnsoft.shs.http.Headers
The Transfer-Encoding HTTP Header constant.

U

UPGRADE - Static variable in interface org.nnsoft.shs.http.Headers
The Upgrade HTTP Header constant.
USER_AGENT - Static variable in interface org.nnsoft.shs.http.Headers
The User-Agent HTTP Header constant.
utf8ByteBuffer(String, Object...) - Static method in class org.nnsoft.shs.core.io.IOUtils
Builds a message replacing placeholders in the input template and encodes the result.
utf8URLDecode(String) - Static method in class org.nnsoft.shs.core.io.IOUtils
Decodes the URL encoded input string, in UTF-8.

V

valueOf(String) - Static method in enum org.nnsoft.shs.http.Request.Method
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.nnsoft.shs.http.Response.Status
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.nnsoft.shs.HttpServer.Status
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.nnsoft.shs.http.Request.Method
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.nnsoft.shs.http.Response.Status
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.nnsoft.shs.HttpServer.Status
Returns an array containing the constants of this enum type, in the order they are declared.
VARY - Static variable in interface org.nnsoft.shs.http.Headers
The Vary HTTP Header constant.
VIA - Static variable in interface org.nnsoft.shs.http.Headers
The Via HTTP Header constant.

W

WARNING - Static variable in interface org.nnsoft.shs.http.Headers
The Warning HTTP Header constant.
when(Response.Status) - Method in class org.nnsoft.shs.AbstractHttpServerConfiguration
Allows defining the default response has to be shown when replying to clients with specified status.
when(Response.Status) - Method in interface org.nnsoft.shs.HttpServerConfigurator
Allows defining the default response has to be shown when replying to clients with specified status.
with(RequestHandler) - Method in interface org.nnsoft.shs.RequestHandlerBuilder
Allows associating a RequestHandler to a previously specified path.
write(int) - Method in class org.nnsoft.shs.core.io.ByteBufferEnqueuerOutputStream
write(WritableByteChannel) - Method in class org.nnsoft.shs.core.io.FileResponseBodyWriter
Generates the body response into the target output stream.
write(WritableByteChannel) - Method in interface org.nnsoft.shs.io.ResponseBodyWriter
Generates the body response into the target output stream.
WWW_AUTHENTICATE - Static variable in interface org.nnsoft.shs.http.Headers
The WWW-Authenticate HTTP Header constant.

A B C D E F G H I K L M N O P R S T U V W

Copyright © 2012 99 Software Foundation. All Rights Reserved.