Package pl.morgwai.base.servlet.scopes
The main package for servlet and websocket scopes.
-
Class Summary Class Description ContainerCallContext Context of either anHttpServletRequest
or awebsocket event
.ContextTrackingExecutor AContextTrackingExecutor
with additionalexecute(httpResponse, task)
andexecute(wsConnection, task)
methods that send503
/TRY_AGAIN_LATER
if the task is rejected.GuiceServerEndpointConfigurator Automatically injects dependencies of endpoint instances and ensures that lifecycle methods of the created endpoints are executed withinWebsocketConnectionContext
andContainerCallContext
.GuiceServletContextListener Creates and configuresapp wide Guice injector
and aServletModule
.HttpSessionContext Context of aHttpSession
.RequestContextFilter Creates context for each newly incomingHttpServletRequest
and transfers context when requests aredispatched from AsyncContext
to new threads.ServletModule Contains servlet and websocket GuiceScope
s,ContextTracker
s and some helper methods.ServletRequestContext Context of aHttpServletRequest
.WebsocketConnectionContext Context of a websocket connection (Session
).WebsocketEventContext Context of a single websocket event such as a connection creation/closure, a message arrival or an error occurrence.