Index
A C D E F G H M N O P R S T U V W
All Classes|All Packages
All Classes|All Packages
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 theChannelPipeline
. - 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 theChannelPipeline
. - 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
-
Adds
IdleStateHandler
(ifDispatchMonoHandler.getConnectionIdleTimeoutMillis()
is positive),MonoHandler
to theChannelPipeline
right below this handler and callsChannelInboundHandler.channelRegistered(io.netty.channel.ChannelHandlerContext)
method on these handlers with thectx
. - 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
- closeChannelAfterResponse(RQ, RS, Throwable) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
-
Determines if
Channel
will be closed after sending theresponse
, or after processing therequest
if there is noresponse
, or if some uncaughtThrowable
was thrown below in theChannelPipeline
. - 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
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 uncaughtThrowable
was thrown below in theChannelPipeline
. - 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
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
-
Returns auto read back as it was before
MonoHandler.channelRegistered(io.netty.channel.ChannelHandlerContext)
. - hashCode() - Method in class stincmale.server.netty4.MetadataKey
- HttpDispatchMonoHandler - Class in stincmale.server.netty4.tcp.http
-
DispatchMonoHandler
that expectsRequestWithMetadata
<? extends
FullHttpRequest
>
messages and sendsFullHttpResponse
s 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 expectsRequestWithMetadata
<? extends
FullHttpRequest
>
requests and producesFullHttpResponse
s. - 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
- 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 determineRequestProcessor
's name, finds theRequestProcessor
by this name among available processors and delegates processing of therequest
to the foundRequestProcessor
. - 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
-
RequestProcessor
s 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 specificRequestProcessor
. - 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 typeRQ
into messages of typeRequestWithMetadata
<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 viaStatsDClient
. - 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 aRequestProcessor
. - 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
-
This
RequestDispatcher
combines functionality of theSpringRequestDispatcher
andSimpleHttpRequestDispatcherByUrl
. - 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 forRequestProcessor
s 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 untilServer.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
- stincmale.server.netty4.tcp - package stincmale.server.netty4.tcp
- stincmale.server.netty4.tcp.http - package stincmale.server.netty4.tcp.http
- 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
- stincmale.server.reqres.spring.http - package stincmale.server.reqres.spring.http
- stincmale.server.util.logging - package stincmale.server.util.logging
- stop() - Method in class stincmale.server.AbstractServer
- stop() - Method in interface stincmale.server.Server
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 ofTransferableMdc
and retains the original state of the currentMDC
. - TransferableMdc - Class in stincmale.server.util.logging
U
- userEventTriggered(ChannelHandlerContext, Object) - Method in class stincmale.server.netty4.tcp.DispatchMonoHandler
V
W
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class stincmale.server.netty4.tcp.MonoHandler
-
Calls
ChannelOutboundInvoker.write(java.lang.Object, io.netty.channel.ChannelPromise)
ifmsg
isn'tMonoHandler.VOID_OUTBOUND_MESSAGE
and then either callsChannelHandlerContext.read()
orChannelHandlerContext.fireChannelRead(java.lang.Object)
if this handler has any accumulated inbound messages.
All Classes|All Packages