A C D E G H I L M N P R S W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addEndpoint(Class<?>, String) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Adds an endpoint using
GuiceServletContextListener.endpointConfigurator
(created byGuiceServletContextListener.createEndpointConfigurator()
). - addEndpoint(Class<?>, String, ServerEndpointConfig.Configurator) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Adds an endpoint using custom
configurator
. - addFilter(String, Class<? extends Filter>) - Method in class pl.morgwai.base.servlet.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.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.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.scopes.GuiceServletContextListener
-
Adds a servlet with async support and injects its dependencies.
- allTrackers - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Contains all trackers.
- awaitableOfAwaitTermination() - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
C
- configure(Binder) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Binds
ServletModule.containerCallContextTracker
and all contexts for injection. - configureInjections() - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Returns
Module
s that configure bindings for user-defined components. - configureServletsFiltersEndpoints() - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Programmatically adds servlets, filters and endpoints.
- ContainerCallContext - Class in pl.morgwai.base.servlet.scopes
-
Context of either an
HttpServletRequest
or awebsocket event
. - ContainerCallContext(ContextTracker<ContainerCallContext>) - Constructor for class pl.morgwai.base.servlet.scopes.ContainerCallContext
- containerCallContextTracker - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Allows tracking of
ServletRequestContext
s andWebsocketEventContext
s. - containerCallScope - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Scopes bindings to either a
ServletRequestContext
or aWebsocketEventContext
. - contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Stops the associated
WebsocketPingerService
. - contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Shutdowns all executors from
GuiceServletContextListener.servletModule
. - contextInitialized(ServletContextEvent) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
- ContextTrackingExecutor - Class in pl.morgwai.base.servlet.scopes
-
A
ContextTrackingExecutor
with additionalexecute(httpResponse, task)
andexecute(wsConnection, task)
methods that send503
/TRY_AGAIN_LATER
if the task is rejected. - createEndpointConfigurator() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Overrides default configurator used by
GuiceServletContextListener.addEndpoint(Class, String)
to be aPingingEndpointConfigurator
. - createEndpointConfigurator() - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Creates configurator to be used by
GuiceServletContextListener.addEndpoint(Class, String)
. - createInjector(LinkedList<Module>) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Creates injector.
D
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class pl.morgwai.base.servlet.scopes.RequestContextFilter
E
- endpointConfigurator - Variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Stores the result of
GuiceServletContextListener.createEndpointConfigurator()
to be used byGuiceServletContextListener.addEndpoint(Class, String)
. - endpointContainer - Variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
- enforceTermination(long, TimeUnit) - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
-
Deprecated.This method will throw
RuntimeException
. Executors obtained fromServletModule
are shutdown automatically at app shutdown. - execute(HttpServletResponse, Runnable) - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
-
Calls
execute(task)
and if it's rejected, sendsHttpServletResponse.SC_SERVICE_UNAVAILABLE
toresponse
. - execute(Session, Runnable) - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
-
Calls
execute(task)
and if it's rejected, closesconnection
withCloseReason.CloseCodes.TRY_AGAIN_LATER
.
G
- getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.guiced.utils.PingingEndpointConfigurator
- getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Subclasses may override this method to further customize endpoints.
- getConnection() - Method in class pl.morgwai.base.servlet.scopes.WebsocketConnectionContext
- getConnectionContext() - Method in class pl.morgwai.base.servlet.scopes.WebsocketEventContext
- getEndpointInstance(Class<EndpointT>) - Method in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Creates a new
endpointClass
instance and a proxy for it. - getExecutorsShutdownTimeoutSeconds() - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Returns the timeout for shutdown of executors obtained from
GuiceServletContextListener.servletModule
. - getHttpSession() - Method in class pl.morgwai.base.servlet.scopes.ContainerCallContext
-
Returns the
HttpSession
this request belongs to. - getHttpSession() - Method in class pl.morgwai.base.servlet.scopes.ServletRequestContext
- getHttpSession() - Method in class pl.morgwai.base.servlet.scopes.WebsocketEventContext
- getHttpSessionContext() - Method in class pl.morgwai.base.servlet.scopes.ContainerCallContext
-
Returns context of
the session this request belongs to
. - getInjector() - Static method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Returns app wide Guice
Injector
. - getPingFailureLimit() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override ping failure limit.
- getPingIntervalSeconds() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override ping interval.
- getPingSize() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override ping data size.
- getRequest() - Method in class pl.morgwai.base.servlet.scopes.ServletRequestContext
- getRequiredEndpointMethodAnnotationTypes() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingEndpointConfigurator
- getRequiredEndpointMethodAnnotationTypes() - Method in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Returns a list of annotations of endpoint lifecycle methods that are required to be present.
- getSession() - Method in class pl.morgwai.base.servlet.scopes.HttpSessionContext
- GuiceServerEndpointConfigurator - Class in pl.morgwai.base.servlet.scopes
-
Automatically injects dependencies of endpoint instances and ensures that lifecycle methods of the created endpoints are executed within
WebsocketConnectionContext
andContainerCallContext
. - GuiceServerEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
- GuiceServletContextListener - Class in pl.morgwai.base.servlet.scopes
-
Creates and configures
app wide Guice injector
and aServletModule
. - GuiceServletContextListener() - Constructor for class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
H
- handleUncleanExecutorTerminations(List<ContextTrackingExecutor>) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Subclasses may override this method to examine the executors that failed to shutdown cleanly.
- HttpSessionContext - Class in pl.morgwai.base.servlet.scopes
-
Context of a
HttpSession
. - HttpSessionContext(HttpSession) - Constructor for class pl.morgwai.base.servlet.scopes.HttpSessionContext
- httpSessionScope - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Scopes bindings to the context of a given
HttpSession
.
I
- isPingerInKeepAliveOnlyMode() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override pinger mode.
L
- log - Static variable in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
- log - Static variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
M
- modifyHandshake(ServerEndpointConfig, HandshakeRequest, HandshakeResponse) - Method in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Stores into the user properties the
HttpSession
associated with therequest
.
N
- newContextTrackingExecutor(String, int) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Constructs an executor backed by a new fixed size
ThreadPoolExecutor
that uses aNamedThreadFactory
and an unboundLinkedBlockingQueue
. - newContextTrackingExecutor(String, int, BlockingQueue<Runnable>) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Constructs an executor backed by a new fixed size
ThreadPoolExecutor
that uses aNamedThreadFactory
. - newContextTrackingExecutor(String, int, BlockingQueue<Runnable>, ThreadFactory) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Constructs an executor backed by a new fixed size
ThreadPoolExecutor
. - newContextTrackingExecutor(String, ExecutorService, int) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Constructs an executor backed by
backingExecutor
.
P
- PingingEndpointConfigurator - Class in pl.morgwai.base.servlet.guiced.utils
-
A
GuiceServerEndpointConfigurator
that automatically registers and deregisters endpoints to theWebsocketPingerService
set withPingingEndpointConfigurator.setPingerService(WebsocketPingerService)
. - PingingEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.guiced.utils.PingingEndpointConfigurator
- PingingServletContextListener - Class in pl.morgwai.base.servlet.guiced.utils
-
A
GuiceServletContextListener
that automatically registers and deregisters endpoints to aWebsocketPingerService
. - PingingServletContextListener() - Constructor for class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
- pl.morgwai.base.servlet.guiced.utils - package pl.morgwai.base.servlet.guiced.utils
-
Integration with
WebsocketPingerService
. - pl.morgwai.base.servlet.scopes - package pl.morgwai.base.servlet.scopes
-
The main package for servlet and websocket scopes.
R
- RequestContextFilter - Class in pl.morgwai.base.servlet.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.scopes.RequestContextFilter
S
- servletContainer - Variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
- servletModule - Variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
- ServletModule - Class in pl.morgwai.base.servlet.scopes
-
Contains servlet and websocket Guice
Scope
s,ContextTracker
s and some helper methods. - ServletModule() - Constructor for class pl.morgwai.base.servlet.scopes.ServletModule
- ServletRequestContext - Class in pl.morgwai.base.servlet.scopes
-
Context of a
HttpServletRequest
. - setPingerService(WebsocketPingerService) - Static method in class pl.morgwai.base.servlet.guiced.utils.PingingEndpointConfigurator
-
Sets the
WebsocketPingerService
to be used. - shouldSynchronizePingSending() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override
synchronizeSending
flag. - shutdown() - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
-
Deprecated.This method will throw
RuntimeException
. Executors obtained fromServletModule
are shutdown automatically at app shutdown. - shutdownNow() - Method in class pl.morgwai.base.servlet.scopes.ContextTrackingExecutor
-
Deprecated.This method will throw
RuntimeException
. Executors obtained fromServletModule
are shutdown automatically at app shutdown.
W
- WebsocketConnectionContext - Class in pl.morgwai.base.servlet.scopes
-
Context of a websocket connection (
Session
). - websocketConnectionScope - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Scopes bindings to the
context of a websocket connection (jakarta.websocket.Session)
. - WebsocketEventContext - Class in pl.morgwai.base.servlet.scopes
-
Context of a single websocket event such as a connection creation/closure, a message arrival or an error occurrence.
All Classes All Packages