Class PushMatchedTemplateRouter

java.lang.Object
org.glassfish.jersey.server.internal.routing.PushMatchedTemplateRouter
All Implemented Interfaces:
Router

final class PushMatchedTemplateRouter extends Object implements 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:
  • Field Details

    • resourceTemplate

      private final UriTemplate resourceTemplate
    • methodTemplate

      private final UriTemplate 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