public class PathURLAddress extends URLAddress
| 构造器和说明 |
|---|
PathURLAddress(String protocol,
String username,
String password,
String path,
String host,
int port) |
PathURLAddress(String protocol,
String username,
String password,
String path,
String host,
int port,
String rawAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
String |
getAddress() |
String |
getIp()
Fetch IP address for this URL.
|
String |
getPassword() |
String |
getPath() |
String |
getProtocol() |
String |
getUsername() |
int |
hashCode() |
URLAddress |
setAddress(String host,
int port) |
URLAddress |
setHost(String host) |
PathURLAddress |
setPassword(String password) |
PathURLAddress |
setPath(String path) |
URLAddress |
setPort(int port) |
URLAddress |
setProtocol(String protocol) |
URLAddress |
setUsername(String username) |
String |
toString() |
getHost, getPort, getRawAddress, getTimestamp, parse, setTimestamppublic PathURLAddress(String protocol, String username, String password, String path, String host, int port)
public String getProtocol()
getProtocol 在类中 URLAddresspublic URLAddress setProtocol(String protocol)
setProtocol 在类中 URLAddresspublic String getUsername()
getUsername 在类中 URLAddresspublic URLAddress setUsername(String username)
setUsername 在类中 URLAddresspublic String getPassword()
getPassword 在类中 URLAddresspublic PathURLAddress setPassword(String password)
setPassword 在类中 URLAddresspublic String getPath()
getPath 在类中 URLAddresspublic PathURLAddress setPath(String path)
setPath 在类中 URLAddresspublic URLAddress setHost(String host)
setHost 在类中 URLAddresspublic URLAddress setPort(int port)
setPort 在类中 URLAddresspublic URLAddress setAddress(String host, int port)
setAddress 在类中 URLAddresspublic String getAddress()
getAddress 在类中 URLAddresspublic String getIp()
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 在类中 URLAddresspublic int hashCode()
hashCode 在类中 URLAddresspublic boolean equals(Object obj)
equals 在类中 URLAddresspublic String toString()
toString 在类中 URLAddressCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.