Interface ExtendedServletContainerProvider
- All Superinterfaces:
ServletContainerProvider
- All Known Implementing Classes:
NoOpServletContainerProvider
Implementations could provide their own
HttpServletRequest
and HttpServletResponse
binding implementation in HK2 locator and also an implementation of RequestScopedInitializer
that is used to set actual request/response references in injection manager within each request.- Since:
- 2.21
- Author:
- Jakub Podlesak
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Used by Jersey runtime to tell if the extension covers HTTP Servlet request response handling with respect to underlying injection manager.Give me aRequestScopedInitializerProvider
instance, that will be utilized at runtime to set the actual HTTP Servlet request and response.Methods inherited from interface org.glassfish.jersey.servlet.internal.spi.ServletContainerProvider
configure, onRegister, postInit, preInit
-
Method Details
-
getRequestScopedInitializerProvider
RequestScopedInitializerProvider getRequestScopedInitializerProvider()Give me aRequestScopedInitializerProvider
instance, that will be utilized at runtime to set the actual HTTP Servlet request and response. The provider returned will be used at runtime for every and each incoming request so that the actual request/response instances could be made accessible from Jersey injection manager.- Returns:
- request scoped initializer provider.
-
bindsServletRequestResponse
boolean bindsServletRequestResponse()Used by Jersey runtime to tell if the extension covers HTTP Servlet request response handling with respect to underlying injection manager. Returntrue
, if your implementation configures HK2 bindings forHttpServletRequest
andHttpServletResponse
inServletContainerProvider.configure(ResourceConfig)
method and also provides aRequestScopedInitializer
implementation viagetRequestScopedInitializerProvider()
.- Returns:
true
if the extension fully covers HTTP request/response handling.
-