Class ServerAddress
java.lang.Object
com.perforce.p4java.impl.mapbased.server.ServerAddress
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptiongetHost()Gets the IP address or hostname of the server.intgetPort()Gets the port number of the server.Gets the properties parsed from the query component of the URI.Gets the connection protocol.getQuery()Gets the query component of the URI.getRsh()Gets the command for running the server in 'rsh' mode.getUri()Gets the URI form of the associated address.booleanisSecure()Return true, if the protocol is secure.
-
Method Details
-
getProtocol
Description copied from interface:IServerAddressGets the connection protocol.- Specified by:
getProtocolin interfaceIServerAddress- Returns:
- the connection protocol
- See Also:
-
getHost
Description copied from interface:IServerAddressGets the IP address or hostname of the server.- Specified by:
getHostin interfaceIServerAddress- Returns:
- the host
- See Also:
-
getPort
public int getPort()Description copied from interface:IServerAddressGets the port number of the server.- Specified by:
getPortin interfaceIServerAddress- Returns:
- the port
- See Also:
-
getQuery
Description copied from interface:IServerAddressGets the query component of the URI.- Specified by:
getQueryin interfaceIServerAddress- Returns:
- the query
- See Also:
-
getProperties
Description copied from interface:IServerAddressGets the properties parsed from the query component of the URI.- Specified by:
getPropertiesin interfaceIServerAddress- Returns:
- the properties
- See Also:
-
getUri
Description copied from interface:IServerAddressGets the URI form of the associated address.- Specified by:
getUriin interfaceIServerAddress- Returns:
- the uri
- See Also:
-
getRsh
Description copied from interface:IServerAddressGets the command for running the server in 'rsh' mode.- Specified by:
getRshin interfaceIServerAddress- Returns:
- the rsh
- See Also:
-
isSecure
public boolean isSecure()Description copied from interface:IServerAddressReturn true, if the protocol is secure.- Specified by:
isSecurein interfaceIServerAddress- Returns:
- true/false
- See Also:
-