Class PushMatchedTemplateRouter

    • 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.