Class AbstractUriTemplateHandler

    • Method Detail

      • setBaseUrl

        public void setBaseUrl​(@Nullable
                               String baseUrl)
        Deprecated.
        Configure a base URL to prepend URI templates with. The base URL must have a scheme and host but may optionally contain a port and a path. The base URL must be fully expanded and encoded which can be done via UriComponentsBuilder.
        Parameters:
        baseUrl - the base URL.
      • setDefaultUriVariables

        public void setDefaultUriVariables​(@Nullable
                                           Map<String,​?> defaultUriVariables)
        Deprecated.
        Configure default URI variable values to use with every expanded URI template. These default values apply only when expanding with a Map, and not with an array, where the Map supplied to expand(String, Map) can override the default values.
        Parameters:
        defaultUriVariables - the default URI variable values
        Since:
        4.3
      • expand

        public URI expand​(String uriTemplate,
                          Map<String,​?> uriVariables)
        Deprecated.
        Description copied from interface: UriTemplateHandler
        Expand the given URI template with a map of URI variables.
        Specified by:
        expand in interface UriTemplateHandler
        Parameters:
        uriTemplate - the URI template
        uriVariables - variable values
        Returns:
        the created URI instance
      • expand

        public URI expand​(String uriTemplate,
                          Object... uriVariables)
        Deprecated.
        Description copied from interface: UriTemplateHandler
        Expand the given URI template with an array of URI variables.
        Specified by:
        expand in interface UriTemplateHandler
        Parameters:
        uriTemplate - the URI template
        uriVariables - variable values
        Returns:
        the created URI instance
      • expandInternal

        protected abstract URI expandInternal​(String uriTemplate,
                                              Map<String,​?> uriVariables)
        Deprecated.
        Actually expand and encode the URI template.
      • expandInternal

        protected abstract URI expandInternal​(String uriTemplate,
                                              Object... uriVariables)
        Deprecated.
        Actually expand and encode the URI template.