Class ServerAddressBuilder

java.lang.Object
com.perforce.p4java.impl.mapbased.server.ServerAddressBuilder

public class ServerAddressBuilder extends Object
The purpose of this class is for building a server address object.
  • Constructor Details

    • ServerAddressBuilder

      public ServerAddressBuilder()
      Instantiates an empty server address builder.
    • ServerAddressBuilder

      public ServerAddressBuilder(String serverAddress) throws URISyntaxException
      Instantiates a new server address builder from a string.
      Parameters:
      serverAddress - the server address
      Throws:
      URISyntaxException - on error
  • Method Details

    • 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 String getHost()
      Gets the host.
      Returns:
      the host
    • setHost

      public void setHost(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 String getQuery()
      Gets the query.
      Returns:
      the query
    • getProperties

      public Properties getProperties()
      Gets the properties (parsed from the query string).
      Returns:
      the properties
    • getUri

      public String getUri()
      Gets the uri.
      Returns:
      the uri
    • getRsh

      public String getRsh()
      Gets the rsh command.
      Returns:
      the rsh command
    • setRsh

      public void setRsh(String rsh)
      Sets the rsh command.
      Parameters:
      rsh - the rsh command