Class ServerAddressBuilder
java.lang.Object
com.perforce.p4java.impl.mapbased.server.ServerAddressBuilder
The purpose of this class is for building a server address object.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates an empty server address builder.ServerAddressBuilder(String serverAddress) Instantiates a new server address builder from a string. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the server address.getHost()Gets the host.intgetPort()Gets the port.Gets the properties (parsed from the query string).Gets the protocol.getQuery()Gets the query.getRsh()Gets the rsh command.getUri()Gets the uri.voidSets the host.voidsetPort(int port) Sets the port.voidsetProtocol(IServerAddress.Protocol protocol) Sets the protocol.voidSets the rsh command.
-
Constructor Details
-
ServerAddressBuilder
public ServerAddressBuilder()Instantiates an empty server address builder. -
ServerAddressBuilder
Instantiates a new server address builder from a string.- Parameters:
serverAddress- the server address- Throws:
URISyntaxException- on error
-
-
Method Details
-
build
Builds the server address.- Returns:
- the server address
-
getProtocol
Gets the protocol.- Returns:
- the protocol
-
setProtocol
Sets the protocol.- Parameters:
protocol- the protocol
-
getHost
Gets the host.- Returns:
- the host
-
setHost
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
Gets the query.- Returns:
- the query
-
getProperties
Gets the properties (parsed from the query string).- Returns:
- the properties
-
getUri
Gets the uri.- Returns:
- the uri
-
getRsh
Gets the rsh command.- Returns:
- the rsh command
-
setRsh
Sets the rsh command.- Parameters:
rsh- the rsh command
-