Index

A C D E F G H M N O P R S T U V W 
All Classes|All Packages

A

AbstractServer - Class in stincmale.server
 
AbstractServer() - Constructor for class stincmale.server.AbstractServer
 

C

channelRead(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
Uses RequestDispatcher to process the request (msg) and sends response downstream the ChannelPipeline.
channelRead(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.http.ClientAddressMdcHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.http.HttpDispatchMonoHandler
Uses RequestDispatcher to process the request (msg) and sends response downstream the ChannelPipeline.
channelRead(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.MonoHandler
 
channelReadComplete(ChannelHandlerContext) - Method in class stincmale.server.netty4.tcp.MonoHandler
 
channelRegistered(ChannelHandlerContext) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
channelRegistered(ChannelHandlerContext) - Method in class stincmale.server.netty4.tcp.MonoHandler
ChannelUtil - Class in stincmale.server.netty4.util.channel
Provides useful utility methods.
clear() - Method in class stincmale.server.util.logging.TransferableMdc
 
ClientAddressMdcHandler - Class in stincmale.server.netty4.tcp.http
 
ClientAddressMdcHandler() - Constructor for class stincmale.server.netty4.tcp.http.ClientAddressMdcHandler
 
close() - Method in class stincmale.server.util.logging.TransferableMdc
Rolls back the current thread's MDC to its original state (before transfer() was called).
closeChannelAfterResponse(RQ, RS, Throwable) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
Determines if Channel will be closed after sending the response, or after processing the request if there is no response, or if some uncaught Throwable was thrown below in the ChannelPipeline.
createHttpResponse(HttpVersion, HttpResponseStatus) - Static method in class stincmale.server.netty4.tcp.http.util.HttpUtil
 
createMetadata(ChannelHandlerContext, RQ) - Method in class stincmale.server.netty4.RequestMetadataDecoder
current() - Static method in class stincmale.server.util.logging.TransferableMdc
Creates TransferableMdc which holds current thread's MDC context map.

D

decode(ChannelHandlerContext, RQ, List<Object>) - Method in class stincmale.server.netty4.RequestMetadataDecoder
 
DispatchMonoHandler<RQ,​RS> - Class in stincmale.server.netty4.tcp
Processes business logic.
DispatchMonoHandler(RequestDispatcher<RQ, RS>, long) - Constructor for class stincmale.server.netty4.tcp.DispatchMonoHandler
 
doStart(CompletableFuture<Void>) - Method in class stincmale.server.AbstractServer
This method is called from AbstractServer.start() only when it is required, so it does not need to care if the server was already started/stopped.
doStart(CompletableFuture<Void>) - Method in class stincmale.server.netty4.NettyServer
 
doStop(CompletableFuture<Void>) - Method in class stincmale.server.AbstractServer
This method is called from AbstractServer.stop() only when it is required, so it does not need to care if the server was already started/stopped.
doStop(CompletableFuture<Void>) - Method in class stincmale.server.netty4.NettyServer
 

E

equals(Object) - Method in class stincmale.server.netty4.MetadataKey
 
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
 
ExternallyVisibleException - Exception in stincmale.server
This RuntimeException is intended to provide a error message that may be made visible outside the application.
ExternallyVisibleException(String) - Constructor for exception stincmale.server.ExternallyVisibleException
 
ExternallyVisibleException(String, String) - Constructor for exception stincmale.server.ExternallyVisibleException
 
ExternallyVisibleException(String, Throwable) - Constructor for exception stincmale.server.ExternallyVisibleException
 
ExternallyVisibleException(String, Throwable, String) - Constructor for exception stincmale.server.ExternallyVisibleException
 

F

failureResponse(RQ, Throwable) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
Provides a response to send downstream if processing of the request has failed or some uncaught Throwable was thrown below in the ChannelPipeline.
failureResponse(RequestWithMetadata<? extends FullHttpRequest>, Throwable) - Method in class stincmale.server.netty4.tcp.http.HttpDispatchMonoHandler
 
fireExceptionOnResponseWriteFailure(RQ, RS, Throwable) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
Determines if Throwable must be fired if it was thrown while sending the response downstream (in other words determines if the Netty 3 failure handling behavior must be preserved).

G

get(String) - Method in class stincmale.server.util.logging.TransferableMdc
 
get(MetadataKey<T>) - Method in interface stincmale.server.netty4.Metadata
 
get(MetadataKey<T>) - Method in class stincmale.server.netty4.MetadataMap
 
getConnectionIdleTimeoutMillis() - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
 
getCopyOfContextMap() - Method in class stincmale.server.util.logging.TransferableMdc
 
getExternalMessage() - Method in exception stincmale.server.ExternallyVisibleException
 
getProcessorName(RQ) - Method in class stincmale.server.reqres.RequestDispatcherByProcessorName
This method must return name of a RequestProcessor which can be found among available processors.
getProcessorName(RequestWithMetadata<? extends FullHttpRequest>) - Method in class stincmale.server.netty4.tcp.http.SimpleHttpRequestDispatcherByUrl
 
getProcessorName(RequestWithMetadata<? extends FullHttpRequest>) - Method in class stincmale.server.reqres.spring.http.SimpleSpringHttpRequestDispatcherByUrl
 
getProcessors() - Method in class stincmale.server.reqres.RequestDispatcherByProcessorName
 
getRemoteAddress(Channel) - Static method in class stincmale.server.netty4.util.channel.ChannelUtil
 
getRemoteAddress(HttpHeaders) - Static method in class stincmale.server.netty4.tcp.http.util.HttpUtil
 
getRemoteAddress(HttpHeaders, Channel) - Static method in class stincmale.server.netty4.tcp.http.util.HttpUtil
 

H

handlerRemoved(ChannelHandlerContext) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
handlerRemoved(ChannelHandlerContext) - Method in class stincmale.server.netty4.tcp.MonoHandler
hashCode() - Method in class stincmale.server.netty4.MetadataKey
 
HttpDispatchMonoHandler - Class in stincmale.server.netty4.tcp.http
DispatchMonoHandler that expects RequestWithMetadata<? extends FullHttpRequest> messages and sends FullHttpResponses downstream.
HttpDispatchMonoHandler(RequestDispatcher<RequestWithMetadata<? extends FullHttpRequest>, FullHttpResponse>, long) - Constructor for class stincmale.server.netty4.tcp.http.HttpDispatchMonoHandler
 
HttpRequestProcessor - Interface in stincmale.server.netty4.tcp.http
RequestProcessor that expects RequestWithMetadata<? extends FullHttpRequest> requests and produces FullHttpResponses.
HttpUtil - Class in stincmale.server.netty4.tcp.http.util
Provides useful utility methods.

M

metadata() - Method in class stincmale.server.netty4.RequestWithMetadata
 
Metadata - Interface in stincmale.server.netty4
Just a typed key-value representation of data.
MetadataKey<T> - Class in stincmale.server.netty4
A key that is used to store and retrieve data in the RequestWithMetadata.
MetadataMap - Class in stincmale.server.netty4
 
MetadataMap() - Constructor for class stincmale.server.netty4.MetadataMap
 
MonoHandler - Class in stincmale.server.netty4.tcp
The purpose of this ChannelDuplexHandler is to allow asynchronous processing of inbound messages while preserving the order of outbound response messages (which must correlate to the order of inbound messages) and allowing a client to send a next request before receiving an answer to the previous request.
MonoHandler() - Constructor for class stincmale.server.netty4.tcp.MonoHandler
 

N

NettyServer - Class in stincmale.server.netty4
Netty-based implementation of Server interface.
NettyServer(ServerBootstrap) - Constructor for class stincmale.server.netty4.NettyServer
 
newDefaultSBootstrap() - Static method in class stincmale.server.netty4.NettyServer
Creates a default ServerBootstrap.

O

of(String) - Static method in class stincmale.server.netty4.MetadataKey
 

P

process(RQ) - Method in class stincmale.server.reqres.RequestDispatcherByProcessorName
Calls RequestDispatcherByProcessorName.getProcessorName(java.lang.Object) to determine RequestProcessor's name, finds the RequestProcessor by this name among available processors and delegates processing of the request to the found RequestProcessor.
process(RQ) - Method in interface stincmale.server.reqres.RequestProcessor
Processes the request.
process(RQ) - Method in class stincmale.server.reqres.RequestProcessorWithStats
 
Processor - Annotation Type in stincmale.server.reqres
RequestProcessors may be annotated with this annotation in order to be automatically detected.
put(String, String) - Method in class stincmale.server.util.logging.TransferableMdc
 

R

refCnt() - Method in class stincmale.server.netty4.RequestWithMetadata
 
release() - Method in class stincmale.server.netty4.RequestWithMetadata
 
release(int) - Method in class stincmale.server.netty4.RequestWithMetadata
 
remove(String) - Method in class stincmale.server.util.logging.TransferableMdc
 
request() - Method in class stincmale.server.netty4.RequestWithMetadata
 
RequestDispatcher<RQ,​RS> - Interface in stincmale.server.reqres
A special RequestProcessor that doesn't perform processing by itself but rather delegates it to a more specific RequestProcessor.
RequestDispatcherByProcessorName<RQ,​RS> - Class in stincmale.server.reqres
RequestDispatcherByProcessorName(Map<String, ? extends RequestProcessor<RQ, RS>>) - Constructor for class stincmale.server.reqres.RequestDispatcherByProcessorName
 
RequestMetadataDecoder<RQ> - Class in stincmale.server.netty4
A MessageToMessageDecoder that wraps messages of type RQ into messages of type RequestWithMetadata<RQ>.
RequestMetadataDecoder() - Constructor for class stincmale.server.netty4.RequestMetadataDecoder
 
RequestProcessor<RQ,​RS> - Interface in stincmale.server.reqres
Processes requests.
RequestProcessorWithStats<RQ,​RS> - Class in stincmale.server.reqres
Wraps RequestProcessor and collects statistics via StatsDClient.
RequestProcessorWithStats(RequestProcessor<? super RQ, ? extends RS>, StatsDClient, Collection<String>) - Constructor for class stincmale.server.reqres.RequestProcessorWithStats
 
RequestWithMetadata<RQ> - Class in stincmale.server.netty4
Allows to attach any data to the actual request before feeding it to the DispatchMonoHandler, or for any other purpose.
RequestWithMetadata(RQ) - Constructor for class stincmale.server.netty4.RequestWithMetadata
 
RequestWithMetadata(RQ, Metadata) - Constructor for class stincmale.server.netty4.RequestWithMetadata
Constructs a new RequestWithMetadata.
retain() - Method in class stincmale.server.netty4.RequestWithMetadata
 
retain(int) - Method in class stincmale.server.netty4.RequestWithMetadata
 

S

Server - Interface in stincmale.server
Represents an I/O server.
set(MetadataKey<T>, T) - Method in class stincmale.server.netty4.MetadataMap
 
setContextMap(Map<String, String>) - Method in class stincmale.server.util.logging.TransferableMdc
 
setPlainTextUtf8Content(FullHttpResponse, String) - Static method in class stincmale.server.netty4.tcp.http.util.HttpUtil
 
SimpleHttpRequestDispatcherByUrl - Class in stincmale.server.netty4.tcp.http
RequestDispatcherByProcessorName that uses URI path of an HTTP request as the name of a RequestProcessor.
SimpleHttpRequestDispatcherByUrl(Map<String, ? extends RequestProcessor<RequestWithMetadata<? extends FullHttpRequest>, FullHttpResponse>>, String) - Constructor for class stincmale.server.netty4.tcp.http.SimpleHttpRequestDispatcherByUrl
 
SimpleSpringHttpRequestDispatcherByUrl - Class in stincmale.server.reqres.spring.http
SimpleSpringHttpRequestDispatcherByUrl(ApplicationContext, Collection<String>, boolean, StatsDClient, String) - Constructor for class stincmale.server.reqres.spring.http.SimpleSpringHttpRequestDispatcherByUrl
 
SpringRequestDispatcher<RQ,​RS> - Class in stincmale.server.reqres.spring
RequestDispatcherByProcessorName that automatically searches for RequestProcessors String beans annotated with @Processor.
SpringRequestDispatcher(ApplicationContext, Collection<String>, boolean, StatsDClient) - Constructor for class stincmale.server.reqres.spring.SpringRequestDispatcher
 
start() - Method in class stincmale.server.AbstractServer
 
start() - Method in interface stincmale.server.Server
Enables the Server to perform I/O operations until Server.stop() is invoked or until an implementation decided to cease all operations.
stincmale.server - module stincmale.server
A server framework based on Netty.
stincmale.server - package stincmale.server
Contains an I/O Server interface.
stincmale.server.netty4 - package stincmale.server.netty4
Contains Netty-based Server framework.
stincmale.server.netty4.tcp - package stincmale.server.netty4.tcp
Contains Netty-based TCP-specific part of the Server framework.
stincmale.server.netty4.tcp.http - package stincmale.server.netty4.tcp.http
Contains Netty-based HTTP-specific part of the Server framework.
stincmale.server.netty4.tcp.http.util - package stincmale.server.netty4.tcp.http.util
 
stincmale.server.netty4.util.channel - package stincmale.server.netty4.util.channel
 
stincmale.server.reqres - package stincmale.server.reqres
Contains functionality useful for request/response implementations of Server.
stincmale.server.reqres.spring - package stincmale.server.reqres.spring
Contains Spring-specific functionality useful for request/response implementations of Server.
stincmale.server.reqres.spring.http - package stincmale.server.reqres.spring.http
Contains Spring-specific functionality useful for request/response HTTP implementations of Server.
stincmale.server.util.logging - package stincmale.server.util.logging
 
stop() - Method in class stincmale.server.AbstractServer
 
stop() - Method in interface stincmale.server.Server
Disables the Server so it does not perform I/O and any other operations anymore if the Server was started, otherwise does nothing.

T

toString() - Method in class stincmale.server.netty4.MetadataKey
 
toString() - Method in class stincmale.server.netty4.MetadataMap
 
toString() - Method in class stincmale.server.netty4.NettyServer
 
toString() - Method in class stincmale.server.netty4.RequestWithMetadata
 
toString() - Method in class stincmale.server.reqres.RequestProcessorWithStats
 
toString() - Method in class stincmale.server.util.logging.TransferableMdc
 
touch() - Method in class stincmale.server.netty4.RequestWithMetadata
 
touch(Object) - Method in class stincmale.server.netty4.RequestWithMetadata
 
transfer() - Method in class stincmale.server.util.logging.TransferableMdc
Overrides the current thread's MDC with the state of TransferableMdc and retains the original state of the current MDC.
TransferableMdc - Class in stincmale.server.util.logging
A read-only MDCAdapter which allows to copy the state of MDC between threads.

U

userEventTriggered(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
 

V

value() - Method in annotation type stincmale.server.reqres.Processor
 

W

write(ChannelHandlerContext, Object, ChannelPromise) - Method in class stincmale.server.netty4.tcp.MonoHandler
Calls ChannelOutboundInvoker.write(java.lang.Object, io.netty.channel.ChannelPromise) if msg isn't MonoHandler.VOID_OUTBOUND_MESSAGE and then either calls ChannelHandlerContext.read() or ChannelHandlerContext.fireChannelRead(java.lang.Object) if this handler has any accumulated inbound messages.
A C D E F G H M N O P R S T U V W 
All Classes|All Packages