Class ServerAddressBuilder
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.ServerAddressBuilder
-
public class ServerAddressBuilder extends java.lang.ObjectThe 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 ServerAddressbuild()Builds the server address.java.lang.StringgetHost()Gets the host.intgetPort()Gets the port.java.util.PropertiesgetProperties()Gets the properties (parsed from the query string).IServerAddress.ProtocolgetProtocol()Gets the protocol.java.lang.StringgetQuery()Gets the query.java.lang.StringgetRsh()Gets the rsh command.java.lang.StringgetUri()Gets the uri.voidsetHost(java.lang.String host)Sets the host.voidsetPort(int port)Sets the port.voidsetProtocol(IServerAddress.Protocol protocol)Sets the protocol.voidsetRsh(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.URISyntaxExceptionInstantiates 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
-
-