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 templateof matched resource of subResource torouting context. Before calling this router thePathMatchingRoutermust be called which matches the path and pushes thematched resultinto 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 UriTemplatemethodTemplateprivate UriTemplateresourceTemplate
-
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.Continuationapply(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:RouterPerforms a request routing task and returns the routed request together with arouting continuation.
-
-