Class PushMatchedTemplateRouter
java.lang.Object
org.glassfish.jersey.server.internal.routing.PushMatchedTemplateRouter
- All Implemented Interfaces:
Router
Router that pushes
uri template
of matched resource of subResource
to routing context
.
Before calling this router the PathMatchingRouter
must be called which matches the path
and pushes the matched result
into the routing context.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.server.internal.routing.Router
Router.Continuation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPushMatchedTemplateRouter
(UriTemplate resourceTemplate) Create a new instance of the push matched template router.PushMatchedTemplateRouter
(UriTemplate resourceTemplate, UriTemplate methodTemplate) Create a new instance of the push matched template router. -
Method Summary
Modifier and TypeMethodDescriptionapply
(RequestProcessingContext context) Performs a request routing task and returns the routed request together with arouting continuation
.
-
Field Details
-
resourceTemplate
-
methodTemplate
-
-
Constructor Details
-
PushMatchedTemplateRouter
PushMatchedTemplateRouter(UriTemplate resourceTemplate, UriTemplate methodTemplate) Create a new instance of the push matched template router.This constructor should be used in case a path matching has been performed on both a resource and method paths (in case of sub-resource methods and locators).
- Parameters:
resourceTemplate
- resource URI template that should be pushed.methodTemplate
- (sub-resource) method or locator URI template that should be pushed.
-
PushMatchedTemplateRouter
PushMatchedTemplateRouter(UriTemplate resourceTemplate) Create a new instance of the push matched template router.This constructor should be used in case a single path matching has been performed (in case of resource methods, only the resource path is matched).
- Parameters:
resourceTemplate
- resource URI template that should be pushed.
-
-
Method Details
-
apply
Description copied from interface:Router
Performs a request routing task and returns the routed request together with arouting continuation
.
-