public class ServerAddressBuilder extends Object
| Constructor and Description |
|---|
ServerAddressBuilder()
Instantiates an empty server address builder.
|
ServerAddressBuilder(String serverAddress)
Instantiates a new server address builder from a string.
|
| Modifier and Type | Method and Description |
|---|---|
ServerAddress |
build()
Builds the server address.
|
String |
getHost()
Gets the host.
|
int |
getPort()
Gets the port.
|
Properties |
getProperties()
Gets the properties (parsed from the query string).
|
IServerAddress.Protocol |
getProtocol()
Gets the protocol.
|
String |
getQuery()
Gets the query.
|
String |
getRsh()
Gets the rsh command.
|
String |
getUri()
Gets the uri.
|
void |
setHost(String host)
Sets the host.
|
void |
setPort(int port)
Sets the port.
|
void |
setProtocol(IServerAddress.Protocol protocol)
Sets the protocol.
|
void |
setRsh(String rsh)
Sets the rsh command.
|
public ServerAddressBuilder()
public ServerAddressBuilder(String serverAddress) throws URISyntaxException
serverAddress - the server addressURISyntaxExceptionpublic ServerAddress build()
public IServerAddress.Protocol getProtocol()
public void setProtocol(IServerAddress.Protocol protocol)
protocol - the protocolpublic String getHost()
public void setHost(String host)
host - the hostpublic int getPort()
public void setPort(int port)
port - the portpublic String getQuery()
public Properties getProperties()
public String getUri()
public String getRsh()
public void setRsh(String rsh)
rsh - the rsh commandCopyright © 2017 Perforce Software. All Rights Reserved.