public class URLAddress extends Object implements Serializable
| Constructor and Description |
|---|
URLAddress(String host,
int port) |
URLAddress(String host,
int port,
String rawAddress) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAddress() |
String |
getHost() |
String |
getIp() |
String |
getPassword() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
String |
getRawAddress() |
long |
getTimestamp() |
String |
getUsername() |
int |
hashCode() |
static URLAddress |
parse(String rawAddress,
String defaultProtocol,
boolean encoded) |
URLAddress |
setAddress(String host,
int port) |
URLAddress |
setHost(String host) |
URLAddress |
setPassword(String password) |
URLAddress |
setPath(String path) |
URLAddress |
setPort(int port) |
URLAddress |
setProtocol(String protocol) |
void |
setTimestamp(long timestamp) |
URLAddress |
setUsername(String username) |
String |
toString() |
public URLAddress(String host, int port)
public String getProtocol()
public URLAddress setProtocol(String protocol)
public String getUsername()
public URLAddress setUsername(String username)
public String getPassword()
public URLAddress setPassword(String password)
public String getPath()
public URLAddress setPath(String path)
public String getHost()
public URLAddress setHost(String host)
public int getPort()
public URLAddress setPort(int port)
public String getAddress()
public URLAddress setAddress(String host, int port)
public String getIp()
public String getRawAddress()
public long getTimestamp()
public void setTimestamp(long timestamp)
public static URLAddress parse(String rawAddress, String defaultProtocol, boolean encoded)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.