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.guiced.utils.PingingServletContextListener
-
Adds an endpoint using a
PingingServletContextListener.PingingEndpointConfigurator
. - addEndpoint(Class<?>, String) - Method in class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener
-
Deprecated.Adds an endpoint using a
SimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
. - addEndpoint(Class<?>, String) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Adds an endpoint using
GuiceServerEndpointConfigurator
that injects the dependencies and sets up contexts. For use inGuiceServletContextListener.configureServletsFiltersEndpoints()
. - 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>, String...) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Adds a filter at the end of the chain and injects its dependencies.
For use inGuiceServletContextListener.configureServletsFiltersEndpoints()
. - addServlet(String, Class<? extends HttpServlet>, String...) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Adds a servlet and injects its dependencies.
For use inGuiceServletContextListener.configureServletsFiltersEndpoints()
. - allTrackers - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Contains all trackers.
C
- configure(Binder) - Method in class pl.morgwai.base.servlet.scopes.ServletModule
-
Binds
ServletModule.containerCallContextTracker
andServletModule.websocketConnectionContextTracker
and corresponding 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.
- CONNECTION_CTX_PROPERTY_NAME - Static variable in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Name of the user property containing
WebsocketConnectionContext
. - 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.guiced.utils.SimplePingingEndpointServletContextListener
-
Deprecated.Stops the associated
WebsocketPingerService
. - 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.
D
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class pl.morgwai.base.servlet.scopes.RequestContextFilter
E
- EndpointPingerDecorator - Class in pl.morgwai.base.servlet.guiced.utils
-
Decorator for websocket
Endpoint
s that automatically registers and deregisters them toWebsocketPingerService
. - EndpointPingerDecorator(Object, WebsocketPingerService) - Constructor for class pl.morgwai.base.servlet.guiced.utils.EndpointPingerDecorator
- 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.PingingServletContextListener.PingingEndpointConfigurator
- getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
-
Deprecated.
- 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
- getEndpointInstance(Class<EndpointT>) - Method in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Creates an
endpointClass
instance and a proxy for it. - 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
- getHttpSessionContextAttributes() - Method in class pl.morgwai.base.servlet.scopes.ContainerCallContext
-
Returns attributes of the context of the
HttpSession
this request belongs to. - getInjector() - Static method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Returns app wide Guice
Injector
. - getMaxMalformedPongCount() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override maximum allowed malformed pongs.
- getMaxMalformedPongCount() - Method in class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener
-
Deprecated.Allows subclasses to override maximum allowed malformed pongs.
- getPingIntervalSeconds() - Method in class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
-
Allows subclasses to override ping interval.
- getPingIntervalSeconds() - Method in class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener
-
Deprecated.Allows subclasses to override ping interval.
- getRequest() - Method in class pl.morgwai.base.servlet.scopes.ServletRequestContext
- GuiceServerEndpointConfigurator - Class in pl.morgwai.base.servlet.scopes
-
Automatically sets up
WebsocketConnectionContext
&ContainerCallContext
and injects dependencies of endpoint instances. - 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
andServletModule
. - GuiceServletContextListener() - Constructor for class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
H
- HTTP_SESSION_PROPERTY_NAME - Static variable in class pl.morgwai.base.servlet.scopes.GuiceServerEndpointConfigurator
-
Name of the user property containing
HttpSession
. - httpSessionScope - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Scopes bindings to the context of a given
HttpSession
.
I
- initialize(ServletContextEvent) - Method in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
Additional initialization steps performed before
GuiceServletContextListener.configureInjections()
. - invoke(Object, Method, Object[]) - Method in class pl.morgwai.base.servlet.guiced.utils.EndpointPingerDecorator
L
- 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
HttpSession
in user properties.
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() - Constructor for class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener.PingingEndpointConfigurator
- PingingServletContextListener - Class in pl.morgwai.base.servlet.guiced.utils
-
A
GuiceServletContextListener
that automatically register/deregister endpoint instances to aWebsocketPingerService
. - PingingServletContextListener() - Constructor for class pl.morgwai.base.servlet.guiced.utils.PingingServletContextListener
- PingingServletContextListener.PingingEndpointConfigurator - Class in pl.morgwai.base.servlet.guiced.utils
-
Automatically registers and deregisters created endpoints to the
WebsocketPingerService
of thePingingServletContextListener
. - 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
-
Starts tracking contexts of newly incoming
HttpServletRequest
s. - 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
-
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
. - SimplePingingEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
-
Deprecated.
- SimplePingingEndpointServletContextListener - Class in pl.morgwai.base.servlet.guiced.utils
-
Deprecated, for removal: This API element is subject to removal in a future version.use
PingingServletContextListener
instead. - SimplePingingEndpointServletContextListener() - Constructor for class pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener
-
Deprecated.
- SimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator - Class in pl.morgwai.base.servlet.guiced.utils
-
Deprecated.Automatically registers and deregisters created endpoints to the
WebsocketPingerService
of theSimplePingingEndpointServletContextListener
.
W
- WebsocketConnectionContext - Class in pl.morgwai.base.servlet.scopes
-
Context of a websocket connection (
Session
). - websocketConnectionContextTracker - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Allows tracking of the
context of a websocket connection (javax.websocket.Session)
. - websocketConnectionScope - Variable in class pl.morgwai.base.servlet.scopes.ServletModule
-
Scopes bindings to the
context of a websocket connection (javax.websocket.Session)
. - websocketContainer - Variable in class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
- 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