Class PathURLAddress
java.lang.Object
org.apache.dubbo.common.url.component.URLAddress
org.apache.dubbo.common.url.component.PathURLAddress
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIp()Fetch IP address for this URL.getPath()inthashCode()setAddress(String host, int port) setPassword(String password) setPort(int port) setProtocol(String protocol) setUsername(String username) toString()Methods inherited from class org.apache.dubbo.common.url.component.URLAddress
getHost, getPort, getRawAddress, getTimestamp, parse, setTimestamp
-
Constructor Details
-
PathURLAddress
-
PathURLAddress
-
-
Method Details
-
getProtocol
- Overrides:
getProtocolin classURLAddress
-
setProtocol
- Overrides:
setProtocolin classURLAddress
-
getUsername
- Overrides:
getUsernamein classURLAddress
-
setUsername
- Overrides:
setUsernamein classURLAddress
-
getPassword
- Overrides:
getPasswordin classURLAddress
-
setPassword
- Overrides:
setPasswordin classURLAddress
-
getPath
- Overrides:
getPathin classURLAddress
-
setPath
- Overrides:
setPathin classURLAddress
-
setHost
- Overrides:
setHostin classURLAddress
-
setPort
- Overrides:
setPortin classURLAddress
-
setAddress
- Overrides:
setAddressin classURLAddress
-
getAddress
- Overrides:
getAddressin classURLAddress
-
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.
- Overrides:
getIpin classURLAddress- Returns:
- ip in string format
-
hashCode
public int hashCode()- Overrides:
hashCodein classURLAddress
-
equals
- Overrides:
equalsin classURLAddress
-
toString
- Overrides:
toStringin classURLAddress
-