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

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.server.ServerAddress
All Implemented Interfaces:
IServerAddress

public class ServerAddress
extends Object
implements IServerAddress

Default implementation of the IServerAddress interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.server.IServerAddress
IServerAddress.Protocol
 
Method Summary
 String getHost()
          Gets the IP address or hostname of the server.
 int getPort()
          Gets the port number of the server.
 Properties getProperties()
          Gets the properties parsed from the query component of the URI.
 IServerAddress.Protocol getProtocol()
          Gets the connection protocol.
 String getQuery()
          Gets the query component of the URI.
 String getRsh()
          Gets the command for running the server in 'rsh' mode.
 String getUri()
          Gets the URI form of the associated address.
 boolean isSecure()
          Return true, if the protocol is secure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProtocol

public IServerAddress.Protocol getProtocol()
Description copied from interface: IServerAddress
Gets the connection protocol.

Specified by:
getProtocol in interface IServerAddress
Returns:
the connection protocol
See Also:
IServerAddress.getProtocol()

getHost

public String getHost()
Description copied from interface: IServerAddress
Gets the IP address or hostname of the server.

Specified by:
getHost in interface IServerAddress
Returns:
the host
See Also:
IServerAddress.getHost()

getPort

public int getPort()
Description copied from interface: IServerAddress
Gets the port number of the server.

Specified by:
getPort in interface IServerAddress
Returns:
the port
See Also:
IServerAddress.getPort()

getQuery

public String getQuery()
Description copied from interface: IServerAddress
Gets the query component of the URI.

Specified by:
getQuery in interface IServerAddress
Returns:
the query
See Also:
IServerAddress.getQuery()

getProperties

public Properties getProperties()
Description copied from interface: IServerAddress
Gets the properties parsed from the query component of the URI.

Specified by:
getProperties in interface IServerAddress
Returns:
the properties
See Also:
IServerAddress.getProperties()

getUri

public String getUri()
Description copied from interface: IServerAddress
Gets the URI form of the associated address.

Specified by:
getUri in interface IServerAddress
Returns:
the uri
See Also:
IServerAddress.getUri()

getRsh

public String getRsh()
Description copied from interface: IServerAddress
Gets the command for running the server in 'rsh' mode.

Specified by:
getRsh in interface IServerAddress
Returns:
the rsh
See Also:
IServerAddress.getRsh()

isSecure

public boolean isSecure()
Description copied from interface: IServerAddress
Return true, if the protocol is secure.

Specified by:
isSecure in interface IServerAddress
Returns:
true/false
See Also:
IServerAddress.isSecure()


Copyright © 2015 Perforce Software. All Rights Reserved.