Class SubResourceLocatorRouter
java.lang.Object
org.glassfish.jersey.server.internal.routing.SubResourceLocatorRouter
- All Implemented Interfaces:
Router
An methodAcceptorPair to accept sub-resource requests.
It first retrieves the sub-resource instance by invoking the given model method.
Then the
RuntimeLocatorModelBuilder is used to generate corresponding methodAcceptorPair.
Finally the generated methodAcceptorPair is invoked to return the request methodAcceptorPair chain.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.server.internal.routing.Router
Router.Continuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceMethodprivate final JerseyResourceContextprivate final RuntimeLocatorModelBuilderprivate final List<ParamValueFactoryWithSource<?>> -
Constructor Summary
ConstructorsConstructorDescriptionSubResourceLocatorRouter(Function<Class<?>, ?> createServiceFunction, Collection<ValueParamProvider> valueSuppliers, ResourceMethod locatorModel, JerseyResourceContext resourceContext, RuntimeLocatorModelBuilder runtimeLocatorBuilder) Create a new sub-resource locator router. -
Method Summary
Modifier and TypeMethodDescriptionapply(RequestProcessingContext processingContext) Performs a request routing task and returns the routed request together with arouting continuation.private ObjectgetResource(RequestProcessingContext context)
-
Field Details
-
locatorModel
-
valueProviders
-
runtimeLocatorBuilder
-
resourceContext
-
createFunction
-
-
Constructor Details
-
SubResourceLocatorRouter
SubResourceLocatorRouter(Function<Class<?>, ?> createServiceFunction, Collection<ValueParamProvider> valueSuppliers, ResourceMethod locatorModel, JerseyResourceContext resourceContext, RuntimeLocatorModelBuilder runtimeLocatorBuilder) Create a new sub-resource locator router.- Parameters:
createServiceFunction- function to create a new service and make other operations (injection).valueSuppliers- all registered value suppliers.locatorModel- resource locator method model.resourceContext- resource context to bind sub-resource locator singleton instances.runtimeLocatorBuilder- original runtime model builder.
-
-
Method Details
-
apply
Description copied from interface:RouterPerforms a request routing task and returns the routed request together with arouting continuation. -
getResource
-