public final class RemoteLocation extends Object
Constructor and Description |
---|
RemoteLocation(String host,
int port)
Constructor for the Location object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHost() |
int |
getPort() |
int |
hashCode() |
static RemoteLocation |
parseServerAndPort(String server)
Parse remote server and port from the string representation server:port and store them in
a RemoteLocation object
|
String |
toString() |
public RemoteLocation(String host, int port)
host
- port
- public int getPort()
public String toString()
toString
in class Object
Object.toString()
public static RemoteLocation parseServerAndPort(String server)
server
- the input stringCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.