com.perforce.p4java.impl.mapbased.server
Class ServerAddressBuilder

java.lang.Object
  extended by 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 Summary
ServerAddressBuilder(String serverAddress)
          Instantiates a new server address builder from a string.
 
Method Summary
 ServerAddress build()
          Builds the server address.
 String getHost()
          Gets the host.
 int getPort()
          Gets the port.
 Properties getProperties()
          Gets the properties (parsed from the query string).
 IServerAddress.Protocol getProtocol()
          Gets the protocol.
 String getQuery()
          Gets the query.
 String getRsh()
          Gets the rsh command.
 String getUri()
          Gets the uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAddressBuilder

public ServerAddressBuilder(String serverAddress)
                     throws URISyntaxException
Instantiates a new server address builder from a string.

Parameters:
serverAddress - the server address
Throws:
URISyntaxException
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

getHost

public String getHost()
Gets the host.

Returns:
the host

getPort

public int getPort()
Gets the port.

Returns:
the host

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


Copyright © 2015 Perforce Software. All Rights Reserved.