Class PushMatchedTemplateRouter
- java.lang.Object
-
- org.glassfish.jersey.server.internal.routing.PushMatchedTemplateRouter
-
- All Implemented Interfaces:
Router
final class PushMatchedTemplateRouter extends java.lang.Object implements Router
Router that pushesuri template
of matched resource of subResource torouting context
. Before calling this router thePathMatchingRouter
must be called which matches the path and pushes thematched result
into the routing context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.jersey.server.internal.routing.Router
Router.Continuation
-
-
Field Summary
Fields Modifier and Type Field Description private UriTemplate
methodTemplate
private UriTemplate
resourceTemplate
-
Constructor Summary
Constructors Constructor Description PushMatchedTemplateRouter(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Router.Continuation
apply(RequestProcessingContext context)
Performs a request routing task and returns the routed request together with arouting continuation
.
-
-
-
Field Detail
-
resourceTemplate
private final UriTemplate resourceTemplate
-
methodTemplate
private final UriTemplate methodTemplate
-
-
Constructor Detail
-
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 Detail
-
apply
public Router.Continuation apply(RequestProcessingContext context)
Description copied from interface:Router
Performs a request routing task and returns the routed request together with arouting continuation
.
-
-