Class ServerAddressBuilder
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.ServerAddressBuilder
-
public class ServerAddressBuilder extends java.lang.Object
The purpose of this class is for building a server address object.
-
-
Constructor Summary
Constructors Constructor Description ServerAddressBuilder()
Instantiates an empty server address builder.ServerAddressBuilder(java.lang.String serverAddress)
Instantiates a new server address builder from a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ServerAddressBuilder
public ServerAddressBuilder()
Instantiates an empty server address builder.
-
ServerAddressBuilder
public ServerAddressBuilder(java.lang.String serverAddress) throws java.net.URISyntaxException
Instantiates a new server address builder from a string.- Parameters:
serverAddress
- the server address- Throws:
java.net.URISyntaxException
- on error
-
-
Method Detail
-
build
public ServerAddress build()
Builds the server address.- Returns:
- the server address
-
getProtocol
public IServerAddress.Protocol getProtocol()
Gets the protocol.- Returns:
- the protocol
-
setProtocol
public void setProtocol(IServerAddress.Protocol protocol)
Sets the protocol.- Parameters:
protocol
- the protocol
-
getHost
public java.lang.String getHost()
Gets the host.- Returns:
- the host
-
setHost
public void setHost(java.lang.String host)
Sets the host.- Parameters:
host
- the host
-
getPort
public int getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(int port)
Sets the port.- Parameters:
port
- the port
-
getQuery
public java.lang.String getQuery()
Gets the query.- Returns:
- the query
-
getProperties
public java.util.Properties getProperties()
Gets the properties (parsed from the query string).- Returns:
- the properties
-
getUri
public java.lang.String getUri()
Gets the uri.- Returns:
- the uri
-
getRsh
public java.lang.String getRsh()
Gets the rsh command.- Returns:
- the rsh command
-
setRsh
public void setRsh(java.lang.String rsh)
Sets the rsh command.- Parameters:
rsh
- the rsh command
-
-