public final class Url extends Object implements Comparable<Url>, Serializable
| 构造器和说明 |
|---|
Url(String protocol,
String host,
int port) |
Url(String protocol,
String host,
int port,
Map<String,String> parameters) |
Url(String protocol,
String host,
int port,
String path) |
Url(String protocol,
String host,
int port,
String path,
Map<String,String> parameters) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Url url) |
boolean |
equals(Object obj) |
String |
getAbsolutePath() |
String |
getAddress() |
String |
getHost() |
String |
getParameter(String key) |
boolean |
getParameter(String key,
boolean defaultValue) |
int |
getParameter(String key,
int defaultValue) |
long |
getParameter(String key,
long defaultValue) |
String |
getParameter(String key,
String defaultValue) |
Map<String,String> |
getParameters() |
String |
getPath() |
int |
getPort() |
int |
getPort(int defaultPort) |
String |
getProtocol() |
int |
hashCode() |
String |
toIdentityString() |
public String getProtocol()
public String getHost()
public int getPort()
public int getPort(int defaultPort)
public String getAddress()
public String getPath()
public String getAbsolutePath()
public int getParameter(String key, int defaultValue)
public long getParameter(String key, long defaultValue)
public boolean getParameter(String key, boolean defaultValue)
public String toIdentityString()
public int compareTo(Url url)
compareTo 在接口中 Comparable<Url>Copyright © 2020. All Rights Reserved.