类 URLBuilder
- java.lang.Object
-
- org.apache.dubbo.common.URL
-
- org.apache.dubbo.common.url.component.ServiceConfigURL
-
- org.apache.dubbo.common.URLBuilder
-
- 所有已实现的接口:
Serializable
public final class URLBuilder extends ServiceConfigURL
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 URLBuilder()URLBuilder(String protocol, String host, int port)URLBuilder(String protocol, String host, int port, String path)URLBuilder(String protocol, String host, int port, String[] pairs)URLBuilder(String protocol, String host, int port, String path, String... pairs)URLBuilder(String protocol, String host, int port, String path, Map<String,String> parameters)URLBuilder(String protocol, String host, int port, Map<String,String> parameters)URLBuilder(String protocol, String username, String password, String host, int port, String path, Map<String,String> parameters)URLBuilder(String protocol, String username, String password, String host, int port, String path, Map<String,String> parameters, Map<String,Object> attributes)
-
方法概要
-
从类继承的方法 org.apache.dubbo.common.url.component.ServiceConfigURL
addAttributes, getAttribute, getAttributes, hasAttribute, removeAttribute, toFullString, toIdentityString, toParameterString, toString
-
从类继承的方法 org.apache.dubbo.common.URL
buildKey, cacheableValueOf, decode, encode, equals, getAbsolutePath, getAddress, getAnyMethodParameter, getApplication, getApplication, getAuthority, getBackupAddress, getBackupAddress, getBackupUrls, getBooleanParameter, getBooleanParameter, getCategory, getCategory, getCategory, getColonSeparatedKey, getConcatenatedParameter, getDisplayServiceKey, getGroup, getGroup, getHost, getIntParameter, getIntParameter, getIp, getMethodBooleanParameter, getMethodBooleanParameter, getMethodIntParameter, getMethodIntParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameter, getMethodParameterAndDecoded, getMethodParameterAndDecoded, getMethodParameterStrict, getMethodPositiveIntParameter, getMethodPositiveParameter, getMethodPositiveParameter, getMethodPositiveParameter, getMethodPositiveParameter, getMethodPositiveParameter, getMethodPositiveParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameterAndDecoded, getParameterAndDecoded, getParameters, getParameters, getPassword, getPath, getPathKey, getPort, getPort, getPositiveIntParameter, getPositiveParameter, getPositiveParameter, getPositiveParameter, getPositiveParameter, getPositiveParameter, getPositiveParameter, getPositiveServiceParameter, getPositiveServiceParameter, getPositiveServiceParameter, getPositiveServiceParameter, getPositiveServiceParameter, getPositiveServiceParameter, getProtocol, getProtocolServiceKey, getRawParameter, getRemoteApplication, getServiceInterface, getServiceKey, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameter, getServiceMethodParameterAndDecoded, getServiceMethodParameterAndDecoded, getServiceMethodParameterStrict, getServiceName, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameter, getServiceParameters, getSide, getSide, getUrlAddress, getUrlParam, getUrlParameter, getUsername, getVersion, getVersion, hashCode, hasMethodParameter, hasServiceMethodParameter, hasServiceMethodParameter, hasServiceParameter, isAnyHost, isLocalHost, putMethodParameter, setServiceInterface, toConfiguration, toFullString, toIdentityString, toInetSocketAddress, toJavaURL, toMap, toParameterString, toSerializableURL, toServiceString, toServiceStringWithoutResolving, toString, valueOf, valueOf, valueOf, valueOf, valueOf
-
-
-
-
构造器详细资料
-
URLBuilder
public URLBuilder()
-
URLBuilder
public URLBuilder(String protocol, String host, int port, Map<String,String> parameters)
-
URLBuilder
public URLBuilder(String protocol, String host, int port, String path, Map<String,String> parameters)
-
URLBuilder
public URLBuilder(String protocol, String username, String password, String host, int port, String path, Map<String,String> parameters)
-
-
方法详细资料
-
from
public static URLBuilder from(URL url)
-
build
public ServiceConfigURL build()
-
putAttribute
public URLBuilder putAttribute(String key, Object obj)
- 覆盖:
putAttribute在类中ServiceConfigURL
-
setProtocol
public URLBuilder setProtocol(String protocol)
- 覆盖:
setProtocol在类中URL
-
setUsername
public URLBuilder setUsername(String username)
- 覆盖:
setUsername在类中URL
-
setPassword
public URLBuilder setPassword(String password)
- 覆盖:
setPassword在类中URL
-
setHost
public URLBuilder setHost(String host)
-
setPort
public URLBuilder setPort(int port)
-
setAddress
public URLBuilder setAddress(String address)
- 覆盖:
setAddress在类中URL
-
setPath
public URLBuilder setPath(String path)
-
addParameterAndEncoded
public URLBuilder addParameterAndEncoded(String key, String value)
- 覆盖:
addParameterAndEncoded在类中URL
-
addParameter
public URLBuilder addParameter(String key, boolean value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, char value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, byte value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, short value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, int value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, long value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, float value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, double value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, Enum<?> value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, Number value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, CharSequence value)
- 覆盖:
addParameter在类中URL
-
addParameter
public URLBuilder addParameter(String key, String value)
- 覆盖:
addParameter在类中URL
-
addMethodParameter
public URLBuilder addMethodParameter(String method, String key, String value)
-
addParameterIfAbsent
public URLBuilder addParameterIfAbsent(String key, String value)
- 覆盖:
addParameterIfAbsent在类中URL
-
addMethodParameterIfAbsent
public URLBuilder addMethodParameterIfAbsent(String method, String key, String value)
-
addParameters
public URLBuilder addParameters(Map<String,String> parameters)
从类复制的说明:URLAdd parameters to a new url.- 覆盖:
addParameters在类中URL- 参数:
parameters- parameters in key-value pairs- 返回:
- A new URL
-
addMethodParameters
public URLBuilder addMethodParameters(Map<String,Map<String,String>> methodParameters)
-
addParametersIfAbsent
public URLBuilder addParametersIfAbsent(Map<String,String> parameters)
- 覆盖:
addParametersIfAbsent在类中URL
-
addParameters
public URLBuilder addParameters(String... pairs)
- 覆盖:
addParameters在类中URL
-
addParameterString
public URLBuilder addParameterString(String query)
- 覆盖:
addParameterString在类中URL
-
removeParameter
public URLBuilder removeParameter(String key)
- 覆盖:
removeParameter在类中URL
-
removeParameters
public URLBuilder removeParameters(Collection<String> keys)
- 覆盖:
removeParameters在类中URL
-
removeParameters
public URLBuilder removeParameters(String... keys)
- 覆盖:
removeParameters在类中URL
-
clearParameters
public URLBuilder clearParameters()
- 覆盖:
clearParameters在类中URL
-
hasParameter
public boolean hasParameter(String key)
- 覆盖:
hasParameter在类中URL
-
hasMethodParameter
public boolean hasMethodParameter(String method, String key)
- 覆盖:
hasMethodParameter在类中URL
-
getParameter
public String getParameter(String key)
- 覆盖:
getParameter在类中URL
-
getMethodParameter
public String getMethodParameter(String method, String key)
- 覆盖:
getMethodParameter在类中URL
-
-