类 PathURLAddress
- java.lang.Object
-
- org.apache.dubbo.common.url.component.URLAddress
-
- org.apache.dubbo.common.url.component.PathURLAddress
-
- 所有已实现的接口:
Serializable
public class PathURLAddress extends URLAddress
- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)StringgetAddress()StringgetIp()Fetch IP address for this URL.StringgetPassword()StringgetPath()StringgetProtocol()StringgetUsername()inthashCode()URLAddresssetAddress(String host, int port)URLAddresssetHost(String host)PathURLAddresssetPassword(String password)PathURLAddresssetPath(String path)URLAddresssetPort(int port)URLAddresssetProtocol(String protocol)URLAddresssetUsername(String username)StringtoString()-
从类继承的方法 org.apache.dubbo.common.url.component.URLAddress
getHost, getPort, getRawAddress, getTimestamp, parse, setTimestamp
-
-
-
-
方法详细资料
-
getProtocol
public String getProtocol()
- 覆盖:
getProtocol在类中URLAddress
-
setProtocol
public URLAddress setProtocol(String protocol)
- 覆盖:
setProtocol在类中URLAddress
-
getUsername
public String getUsername()
- 覆盖:
getUsername在类中URLAddress
-
setUsername
public URLAddress setUsername(String username)
- 覆盖:
setUsername在类中URLAddress
-
getPassword
public String getPassword()
- 覆盖:
getPassword在类中URLAddress
-
setPassword
public PathURLAddress setPassword(String password)
- 覆盖:
setPassword在类中URLAddress
-
getPath
public String getPath()
- 覆盖:
getPath在类中URLAddress
-
setPath
public PathURLAddress setPath(String path)
- 覆盖:
setPath在类中URLAddress
-
setHost
public URLAddress setHost(String host)
- 覆盖:
setHost在类中URLAddress
-
setPort
public URLAddress setPort(int port)
- 覆盖:
setPort在类中URLAddress
-
setAddress
public URLAddress setAddress(String host, int port)
- 覆盖:
setAddress在类中URLAddress
-
getAddress
public String getAddress()
- 覆盖:
getAddress在类中URLAddress
-
getIp
public String getIp()
Fetch IP address for this URL.Pls. note that IP should be used instead of Host when to compare with socket's address or to search in a map which use address as its key.
- 覆盖:
getIp在类中URLAddress- 返回:
- ip in string format
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中URLAddress
-
equals
public boolean equals(Object obj)
- 覆盖:
equals在类中URLAddress
-
toString
public String toString()
- 覆盖:
toString在类中URLAddress
-
-