org.springframework.web.util

Class AbstractUriTemplateHandler

  • java.lang.Object
    • org.springframework.web.util.AbstractUriTemplateHandler
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.net.URI expand(java.lang.String uriTemplate, java.util.Map<java.lang.String,?> uriVariables)
      Deprecated. 
      Expand the given URI template with a map of URI variables.
      java.net.URI expand(java.lang.String uriTemplate, java.lang.Object... uriVariables)
      Deprecated. 
      Expand the given URI template with an array of URI variables.
      protected abstract java.net.URI expandInternal(java.lang.String uriTemplate, java.util.Map<java.lang.String,?> uriVariables)
      Deprecated. 
      Actually expand and encode the URI template.
      protected abstract java.net.URI expandInternal(java.lang.String uriTemplate, java.lang.Object... uriVariables)
      Deprecated. 
      Actually expand and encode the URI template.
      java.lang.String getBaseUrl()
      Deprecated. 
      Return the configured base URL.
      java.util.Map<java.lang.String,?> getDefaultUriVariables()
      Deprecated. 
      Return a read-only copy of the configured default URI variables.
      void setBaseUrl(java.lang.String baseUrl)
      Deprecated. 
      Configure a base URL to prepend URI templates with.
      void setDefaultUriVariables(java.util.Map<java.lang.String,?> defaultUriVariables)
      Deprecated. 
      Configure default URI variable values to use with every expanded URI template.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractUriTemplateHandler

        public AbstractUriTemplateHandler()
        Deprecated. 
    • Method Detail

      • setBaseUrl

        public void setBaseUrl(@Nullable
                               java.lang.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.
      • getBaseUrl

        @Nullable
        public java.lang.String getBaseUrl()
        Deprecated. 
        Return the configured base URL.
      • setDefaultUriVariables

        public void setDefaultUriVariables(@Nullable
                                           java.util.Map<java.lang.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
      • getDefaultUriVariables

        public java.util.Map<java.lang.String,?> getDefaultUriVariables()
        Deprecated. 
        Return a read-only copy of the configured default URI variables.
      • expand

        public java.net.URI expand(java.lang.String uriTemplate,
                                   java.util.Map<java.lang.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 java.net.URI expand(java.lang.String uriTemplate,
                                   java.lang.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 java.net.URI expandInternal(java.lang.String uriTemplate,
                                                       java.util.Map<java.lang.String,?> uriVariables)
        Deprecated. 
        Actually expand and encode the URI template.
      • expandInternal

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