org.springframework.boot.web.client

Class RootUriTemplateHandler

  • All Implemented Interfaces:
    org.springframework.web.util.UriTemplateHandler


    public class RootUriTemplateHandler
    extends Object
    implements org.springframework.web.util.UriTemplateHandler
    UriTemplateHandler to set the root for URI that starts with '/'.
    Since:
    1.4.0
    Author:
    Phillip Webb
    • Constructor Detail

      • RootUriTemplateHandler

        protected RootUriTemplateHandler(org.springframework.web.util.UriTemplateHandler handler)
      • RootUriTemplateHandler

        public RootUriTemplateHandler(String rootUri)
        Create a new RootUriTemplateHandler instance.
        Parameters:
        rootUri - the root URI to be used to prefix relative URLs
      • RootUriTemplateHandler

        public RootUriTemplateHandler(String rootUri,
                                      org.springframework.web.util.UriTemplateHandler handler)
        Create a new RootUriTemplateHandler instance.
        Parameters:
        rootUri - the root URI to be used to prefix relative URLs
        handler - the delegate handler
    • Method Detail

      • expand

        public URI expand(String uriTemplate,
                          Map<String,?> uriVariables)
        Specified by:
        expand in interface org.springframework.web.util.UriTemplateHandler
      • expand

        public URI expand(String uriTemplate,
                          Object... uriVariables)
        Specified by:
        expand in interface org.springframework.web.util.UriTemplateHandler
      • getRootUri

        public String getRootUri()

Copyright © 2017 Pivotal Software, Inc.. All rights reserved.