Interface ExtendedServletContainerProvider
-
- All Superinterfaces:
ServletContainerProvider
- All Known Implementing Classes:
NoOpServletContainerProvider
public interface ExtendedServletContainerProvider extends ServletContainerProvider
Implementations could provide their ownHttpServletRequestandHttpServletResponsebinding implementation in HK2 locator and also an implementation ofRequestScopedInitializerthat is used to set actual request/response references in injection manager within each request.- Since:
- 2.21
- Author:
- Jakub Podlesak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbindsServletRequestResponse()Used by Jersey runtime to tell if the extension covers HTTP Servlet request response handling with respect to underlying injection manager.RequestScopedInitializerProvidergetRequestScopedInitializerProvider()Give me aRequestScopedInitializerProviderinstance, 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 aRequestScopedInitializerProviderinstance, 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 forHttpServletRequestandHttpServletResponseinServletContainerProvider.configure(ResourceConfig)method and also provides aRequestScopedInitializerimplementation viagetRequestScopedInitializerProvider().- Returns:
trueif the extension fully covers HTTP request/response handling.
-
-