A C D E G H I L M N P R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addEndpoint(Class<?>, String) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds an endpoint using
GuiceServletContextListener.endpointConfigurator
. - addEndpoint(Class<?>, String, ServerEndpointConfig.Configurator) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds an endpoint using custom
configurator
. - addFilter(String, Class<? extends Filter>) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds a filter with async support and injects its dependencies.
- addFilter(String, Class<? extends Filter>, String...) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds a filter with async support and injects its dependencies, then adds a mapping at the end of the chain for
urlPatterns
andDispatcherType.REQUEST
. - addFilter(String, Class<? extends Filter>, EnumSet<DispatcherType>, String...) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds a filter with async support and injects its dependencies, then adds a mapping at the end of the chain for
urlPatterns
anddispatcherTypes
. - addServlet(String, Class<? extends HttpServlet>, String...) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Adds a servlet with async support and injects its dependencies.
- allTrackers - Variable in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Contains all trackers.
- awaitTerminationOfAllExecutors() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Awaits for termination
of all executors obtained from this module. - awaitTerminationOfAllExecutors(long, TimeUnit) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Awaits for termination
of all executors obtained from this module.
C
- configure(Binder) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Creates infrastructure bindings.
- configureInjections() - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Returns
Module
s that configure bindings for user-defined components. - configureServletsFiltersEndpoints() - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Programmatically adds servlets, filters and endpoints.
- ContainerCallContext - Class in pl.morgwai.base.servlet.guice.scopes
-
Context of either an
HttpServletRequest
or awebsocket event
. - ContainerCallContext(ContextTracker<ContainerCallContext>) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ContainerCallContext
- containerCallContextTracker - Variable in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Allows tracking of
ServletRequestContext
s andWebsocketEventContext
s. - containerCallScope - Variable in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Scopes bindings to either a
ServletRequestContext
or aWebsocketEventContext
. - contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Shutdowns and awaits termination all executors created by
GuiceServletContextListener.servletModule
. - contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Stops the associated
WebsocketPingerService
. - contextInitialized(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
- createEndpointConfigurator() - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Creates configurator to be used by
GuiceServletContextListener.addEndpoint(Class, String)
. - createEndpointConfigurator() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Overrides default configurator used by
GuiceServletContextListener.addEndpoint(Class, String)
to be aPingingEndpointConfigurator
. - createInjector(LinkedList<Module>) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Called by
GuiceServletContextListener.contextInitialized(ServletContextEvent)
to createthe app-wide Injector
.
D
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class pl.morgwai.base.servlet.guice.scopes.RequestContextFilter
E
- endpointConfigurator - Variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Stores the result of
GuiceServletContextListener.createEndpointConfigurator()
to be used byGuiceServletContextListener.addEndpoint(Class, String)
. - endpointContainer - Variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
- enforceTerminationOfAllExecutors(long, TimeUnit) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Enforces termination
of all executors obtained from this module. - execute(HttpServletResponse, Runnable) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
-
Calls
execute(task)
and if it's rejected, sendsHttpServletResponse.SC_SERVICE_UNAVAILABLE
toresponse
. - execute(Session, Runnable) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
-
Calls
execute(task)
and if it's rejected, closesconnection
withCloseReason.CloseCodes.TRY_AGAIN_LATER
. - execute(Runnable) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
G
- getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
-
Subclasses may override this method to further customize
Endpoints
. - getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.guice.utils.PingingEndpointConfigurator
- getConnection() - Method in class pl.morgwai.base.servlet.guice.scopes.WebsocketConnectionContext
- getConnectionContext() - Method in class pl.morgwai.base.servlet.guice.scopes.WebsocketEventContext
- getEndpointInstance(Class<EndpointT>) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
-
Obtains an instance of
endpointClass
fromGuice
and creates a context-aware proxy for it, so thatEndpoint
lifecycle methods are executed withinContainerCallContext
andWebsocketConnectionContext
. - getExecutors() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
List of all executors created by this module.
- getExecutorsTerminationTimeoutSeconds() - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Returns the timeout for termination of executors obtained from
GuiceServletContextListener.servletModule
. - getHttpSession() - Method in class pl.morgwai.base.servlet.guice.scopes.ContainerCallContext
-
Returns the
HttpSession
this request/event belongs to. - getHttpSession() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletRequestContext
- getHttpSession() - Method in class pl.morgwai.base.servlet.guice.scopes.WebsocketEventContext
- getHttpSessionContext() - Method in class pl.morgwai.base.servlet.guice.scopes.ContainerCallContext
-
Returns context of
the session this request/event belongs to
. - getInjector() - Static method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Returns the app-wide Guice
Injector
. - getName() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- getPingFailureLimit() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Allows subclasses to override ping failure limit.
- getPingIntervalSeconds() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Allows subclasses to override ping interval.
- getPingSize() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Allows subclasses to override ping data size.
- getRequest() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletRequestContext
- getRequiredEndpointMethodAnnotationTypes() - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
-
Returns a set of annotations of
Endpoint
lifecycle methods that are required to be present inEndpoint
classes using this configurator. - getRequiredEndpointMethodAnnotationTypes() - Method in class pl.morgwai.base.servlet.guice.utils.PingingEndpointConfigurator
- getSession() - Method in class pl.morgwai.base.servlet.guice.scopes.HttpSessionContext
- GuiceServerEndpointConfigurator - Class in pl.morgwai.base.servlet.guice.scopes
-
Obtains
Endpoint
instances fromGuice
(so that all dependencies are injected) and decorates them, so that lifecycle methods are executed withinWebsocketConnectionContext
andContainerCallContext
. - GuiceServerEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
- GuiceServletContextListener - Class in pl.morgwai.base.servlet.guice.scopes
-
Creates and configures
app-wide Guice Injector
and aServletModule
. - GuiceServletContextListener() - Constructor for class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
H
- handleUnterminatedExecutors(List<ServletContextTrackingExecutor>) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
-
Handles executors that failed to terminate in
GuiceServletContextListener.contextDestroyed(ServletContextEvent)
. - HttpSessionContext - Class in pl.morgwai.base.servlet.guice.scopes
-
Context of an
HttpSession
. - httpSessionScope - Variable in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Scopes bindings to the context of a given
HttpSession
.
I
- isPingerInKeepAliveOnlyMode() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Allows subclasses to override pinger mode.
L
- log - Static variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
- log - Static variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
M
- modifyHandshake(ServerEndpointConfig, HandshakeRequest, HandshakeResponse) - Method in class pl.morgwai.base.servlet.guice.scopes.GuiceServerEndpointConfigurator
N
- newContextTrackingExecutor(String, int) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Constructs a fixed size, context tracking executor that uses an unbound
LinkedBlockingQueue
and a newNamingThreadFactory
named after this executor. - newContextTrackingExecutor(String, int, int) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Constructs a fixed size, context tracking executor that uses a
LinkedBlockingQueue
of sizequeueSize
, the defaultRejectedExecutionHandler
and a newNamingThreadFactory
named after this executor. - newContextTrackingExecutor(String, int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Constructs a context tracking executor.
- newContextTrackingExecutor(String, int, BlockingQueue<Runnable>, RejectedExecutionHandler) - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Constructs a fixed size, context tracking executor that uses
workQueue
,rejectionHandler
and a newNamingThreadFactory
named after this executor.
P
- PingingEndpointConfigurator - Class in pl.morgwai.base.servlet.guice.utils
-
A
GuiceServerEndpointConfigurator
that automatically registers and deregisters endpoints to aWebsocketPingerService
. - PingingEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.guice.utils.PingingEndpointConfigurator
- PingingServletContextListener - Class in pl.morgwai.base.servlet.guice.utils
-
A
GuiceServletContextListener
that automatically registers and deregisters endpoints to aWebsocketPingerService
. - PingingServletContextListener() - Constructor for class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
- pl.morgwai.base.servlet.guice.scopes - package pl.morgwai.base.servlet.guice.scopes
-
The main package for servlet and websocket scopes.
- pl.morgwai.base.servlet.guice.utils - package pl.morgwai.base.servlet.guice.utils
-
Integration with
WebsocketPingerService
.
R
- RequestContextFilter - Class in pl.morgwai.base.servlet.guice.scopes
-
Creates context for each newly incoming
HttpServletRequest
and transfers context when requests aredispatched from AsyncContext
to new threads. - RequestContextFilter() - Constructor for class pl.morgwai.base.servlet.guice.scopes.RequestContextFilter
S
- servletContainer - Variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
- ServletContextTrackingExecutor - Class in pl.morgwai.base.servlet.guice.scopes
-
A
TaskTrackingThreadPoolExecutor
that wraps tasks withContextBoundRunnable
decorator to automatically transfer contexts. - ServletContextTrackingExecutor(String, List<ContextTracker<?>>, int) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- ServletContextTrackingExecutor(String, List<ContextTracker<?>>, int, int) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- ServletContextTrackingExecutor(String, List<ContextTracker<?>>, int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- ServletContextTrackingExecutor(String, List<ContextTracker<?>>, int, BlockingQueue<Runnable>) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- ServletContextTrackingExecutor(String, List<ContextTracker<?>>, int, BlockingQueue<Runnable>, RejectedExecutionHandler) - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
- servletModule - Variable in class pl.morgwai.base.servlet.guice.scopes.GuiceServletContextListener
- ServletModule - Class in pl.morgwai.base.servlet.guice.scopes
-
Contains servlet and websocket Guice
Scope
s,ContextTracker
s and some helper methods. - ServletModule() - Constructor for class pl.morgwai.base.servlet.guice.scopes.ServletModule
- ServletRequestContext - Class in pl.morgwai.base.servlet.guice.scopes
-
Context of a
HttpServletRequest
. - setPingerService(WebsocketPingerService) - Static method in class pl.morgwai.base.servlet.guice.utils.PingingEndpointConfigurator
-
Sets the
WebsocketPingerService
to be used. - shouldSynchronizePingSending() - Method in class pl.morgwai.base.servlet.guice.utils.PingingServletContextListener
-
Allows subclasses to override
synchronizeSending
flag. - shutdownAllExecutors() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Shutdowns all executors obtained from this module.
T
- toAwaitableOfEnforcedTerminationOfAllExecutors() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
- toAwaitableOfTerminationOfAllExecutors() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletModule
- toString() - Method in class pl.morgwai.base.servlet.guice.scopes.ServletContextTrackingExecutor
W
- WebsocketConnectionContext - Class in pl.morgwai.base.servlet.guice.scopes
-
Context of a websocket connection (
Session
). - websocketConnectionScope - Variable in class pl.morgwai.base.servlet.guice.scopes.ServletModule
-
Scopes bindings to the
context of a websocket connection (jakarta.websocket.Session)
. - WebsocketEventContext - Class in pl.morgwai.base.servlet.guice.scopes
-
Context of a single websocket event such as a connection creation/closure, a message arrival or an error occurrence.
All Classes All Packages