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