类 AbstractUriTemplateHandler
- java.lang.Object
- org.springframework.web.util.AbstractUriTemplateHandler
- 所有已实现的接口:
UriTemplateHandler
- 直接已知子类:
DefaultUriTemplateHandler
@Deprecated public abstract class AbstractUriTemplateHandler extends Object implements UriTemplateHandler
已过时。as of 5.0 in favor ofDefaultUriBuilderFactory
Abstract base class forUriTemplateHandler
implementations.Support
setBaseUrl(java.lang.String)
andsetDefaultUriVariables(java.util.Map<java.lang.String, ?>)
properties that should be relevant regardless of the URI template expand and encode mechanism used in sub-classes.- 从以下版本开始:
- 4.3
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 AbstractUriTemplateHandler()
已过时。
方法概要
所有方法 实例方法 抽象方法 具体方法 已过时的方法 修饰符和类型 方法 说明 URI
expand(String uriTemplate, Object... uriVariables)
已过时。Expand the given URI template with an array of URI variables.URI
expand(String uriTemplate, Map<String,?> uriVariables)
已过时。Expand the given URI template with a map of URI variables.protected abstract URI
expandInternal(String uriTemplate, Object... uriVariables)
已过时。Actually expand and encode the URI template.protected abstract URI
expandInternal(String uriTemplate, Map<String,?> uriVariables)
已过时。Actually expand and encode the URI template.String
getBaseUrl()
已过时。Return the configured base URL.Map<String,?>
getDefaultUriVariables()
已过时。Return a read-only copy of the configured default URI variables.void
setBaseUrl(String baseUrl)
已过时。Configure a base URL to prepend URI templates with.void
setDefaultUriVariables(Map<String,?> defaultUriVariables)
已过时。Configure default URI variable values to use with every expanded URI template.
构造器详细资料
AbstractUriTemplateHandler
public AbstractUriTemplateHandler()
已过时。
方法详细资料
setBaseUrl
public void setBaseUrl(@Nullable String baseUrl)
已过时。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 viaUriComponentsBuilder
.- 参数:
baseUrl
- the base URL.
getBaseUrl
@Nullable public String getBaseUrl()
已过时。Return the configured base URL.
setDefaultUriVariables
public void setDefaultUriVariables(@Nullable Map<String,?> defaultUriVariables)
已过时。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 toexpand(String, Map)
can override the default values.- 参数:
defaultUriVariables
- the default URI variable values- 从以下版本开始:
- 4.3
getDefaultUriVariables
public Map<String,?> getDefaultUriVariables()
已过时。Return a read-only copy of the configured default URI variables.
expand
public URI expand(String uriTemplate, Map<String,?> uriVariables)
已过时。从接口复制的说明:UriTemplateHandler
Expand the given URI template with a map of URI variables.- 指定者:
expand
在接口中UriTemplateHandler
- 参数:
uriTemplate
- the URI templateuriVariables
- variable values- 返回:
- the created URI instance
expand
public URI expand(String uriTemplate, Object... uriVariables)
已过时。从接口复制的说明:UriTemplateHandler
Expand the given URI template with an array of URI variables.- 指定者:
expand
在接口中UriTemplateHandler
- 参数:
uriTemplate
- the URI templateuriVariables
- variable values- 返回:
- the created URI instance
expandInternal
protected abstract URI expandInternal(String uriTemplate, Map<String,?> uriVariables)
已过时。Actually expand and encode the URI template.
expandInternal
protected abstract URI expandInternal(String uriTemplate, Object... uriVariables)
已过时。Actually expand and encode the URI template.