Package org.glassfish.jersey.server
Class ContainerMessageBodyWorkersInitializer
java.lang.Object
org.glassfish.jersey.server.ContainerMessageBodyWorkersInitializer
- All Implemented Interfaces:
Function<RequestProcessingContext,
RequestProcessingContext>
public class ContainerMessageBodyWorkersInitializer
extends Object
implements Function<RequestProcessingContext,RequestProcessingContext>
Function that can be put to an acceptor chain to properly initialize
MessageBodyWorkers
instance on a current request and response.- Author:
- Marek Potociar
-
Constructor Summary
ConstructorDescriptionContainerMessageBodyWorkersInitializer
(jakarta.inject.Provider<MessageBodyWorkers> workersFactory) Create newMessageBodyWorkers
initialization function for requests and responses. -
Method Summary
-
Constructor Details
-
ContainerMessageBodyWorkersInitializer
@Inject public ContainerMessageBodyWorkersInitializer(jakarta.inject.Provider<MessageBodyWorkers> workersFactory) Create newMessageBodyWorkers
initialization function for requests and responses.- Parameters:
workersFactory
-MessageBodyWorkers
factory.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<RequestProcessingContext,
RequestProcessingContext>
-