Interface ExtendedServletContainerProvider
-
- All Superinterfaces:
ServletContainerProvider
- All Known Implementing Classes:
NoOpServletContainerProvider
public interface ExtendedServletContainerProvider extends ServletContainerProvider
Implementations could provide their ownHttpServletRequest
andHttpServletResponse
binding implementation in HK2 locator and also an implementation ofRequestScopedInitializer
that is used to set actual request/response references in injection manager within each request.- Since:
- 2.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
bindsServletRequestResponse()
Used by Jersey runtime to tell if the extension covers HTTP Servlet request response handling with respect to underlying injection manager.RequestScopedInitializerProvider
getRequestScopedInitializerProvider()
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 Detail
-
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.
-
-