public class Servers extends Object
限定符和类型 | 方法和说明 |
---|---|
static List<InetSocketAddress> |
parse(String specs,
int defaultPort)
Parses a space and/or comma separated sequence of server specifications
of the form hostname or hostname:port.
|
public static List<InetSocketAddress> parse(String specs, int defaultPort)
specs
- server specs (see description)defaultPort
- the default port if not specifiedCopyright © 2009 The Apache Software Foundation