Class ServerAddress
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.ServerAddress
-
- All Implemented Interfaces:
IServerAddress
public class ServerAddress extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
Gets the IP address or hostname of the server.int
getPort()
Gets the port number of the server.java.util.Properties
getProperties()
Gets the properties parsed from the query component of the URI.IServerAddress.Protocol
getProtocol()
Gets the connection protocol.java.lang.String
getQuery()
Gets the query component of the URI.java.lang.String
getRsh()
Gets the command for running the server in 'rsh' mode.java.lang.String
getUri()
Gets the URI form of the associated address.boolean
isSecure()
Return true, if the protocol is secure.
-
-
-
Method Detail
-
getProtocol
public IServerAddress.Protocol getProtocol()
Description copied from interface:IServerAddress
Gets the connection protocol.- Specified by:
getProtocol
in interfaceIServerAddress
- Returns:
- the connection protocol
- See Also:
IServerAddress.getProtocol()
-
getHost
public java.lang.String getHost()
Description copied from interface:IServerAddress
Gets the IP address or hostname of the server.- Specified by:
getHost
in interfaceIServerAddress
- 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 interfaceIServerAddress
- Returns:
- the port
- See Also:
IServerAddress.getPort()
-
getQuery
public java.lang.String getQuery()
Description copied from interface:IServerAddress
Gets the query component of the URI.- Specified by:
getQuery
in interfaceIServerAddress
- Returns:
- the query
- See Also:
IServerAddress.getQuery()
-
getProperties
public java.util.Properties getProperties()
Description copied from interface:IServerAddress
Gets the properties parsed from the query component of the URI.- Specified by:
getProperties
in interfaceIServerAddress
- Returns:
- the properties
- See Also:
IServerAddress.getProperties()
-
getUri
public java.lang.String getUri()
Description copied from interface:IServerAddress
Gets the URI form of the associated address.- Specified by:
getUri
in interfaceIServerAddress
- Returns:
- the uri
- See Also:
IServerAddress.getUri()
-
getRsh
public java.lang.String getRsh()
Description copied from interface:IServerAddress
Gets the command for running the server in 'rsh' mode.- Specified by:
getRsh
in interfaceIServerAddress
- 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 interfaceIServerAddress
- Returns:
- true/false
- See Also:
IServerAddress.isSecure()
-
-