public final class URL extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
URL.ProtocolType
ProtocolType Enum
|
| 限定符和类型 | 字段和说明 |
|---|---|
static char |
COLON
symbol :
|
static byte |
HESSIAN_2 |
static byte |
JSON |
static byte |
PROTOBUF |
| 构造器和说明 |
|---|
URL() |
URL(InetSocketAddress address)
constructor
|
URL(InetSocketAddress address,
Byte serializerIndex)
constructor
|
URL(String ipAddress)
constructor
|
URL(String ipAddress,
int port)
constructor
|
URL(URL.ProtocolType protocol,
String ipAddress,
int port,
String host,
String path,
Byte serializerIndex,
Map<String,String> parameters)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildAddressString()
build address string
|
String |
getAddressString()
Getter method for property addressString.
|
String |
getHost()
Getter method for property host.
|
String |
getIpAddress()
Getter method for property ipAddress.
|
Map<String,String> |
getParameters()
Getter method for property parameters.
|
String |
getPath()
Getter method for property path.
|
int |
getPort()
Getter method for property port.
|
URL.ProtocolType |
getProtocol()
Getter method for property protocol.
|
Byte |
getSerializerIndex()
Getter method for property serializerIndex.
|
static InetSocketAddress |
toInetSocketAddress(URL url)
url transfer to InetSocketAddress
|
String |
toString() |
static URL |
valueOf(String url)
TODO Other protocol
|
public static final char COLON
public static final byte HESSIAN_2
public static final byte PROTOBUF
public static final byte JSON
public URL()
public URL(URL.ProtocolType protocol, String ipAddress, int port, String host, String path, Byte serializerIndex, Map<String,String> parameters)
protocol - ipAddress - port - host - path - serializerIndex - parameters - public URL(String ipAddress, int port)
ipAddress - port - public URL(InetSocketAddress address)
address - public URL(InetSocketAddress address, Byte serializerIndex)
address - serializerIndex - public URL(String ipAddress)
ipAddress - public static InetSocketAddress toInetSocketAddress(URL url)
url - public URL.ProtocolType getProtocol()
public String getHost()
public String getIpAddress()
public int getPort()
public String getPath()
public Map<String,String> getParameters()
public String getAddressString()
public String buildAddressString()
public Byte getSerializerIndex()
Copyright © 2019 The Ant Financial. All rights reserved.