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.StringgetHost()Gets the IP address or hostname of the server.intgetPort()Gets the port number of the server.java.util.PropertiesgetProperties()Gets the properties parsed from the query component of the URI.IServerAddress.ProtocolgetProtocol()Gets the connection protocol.java.lang.StringgetQuery()Gets the query component of the URI.java.lang.StringgetRsh()Gets the command for running the server in 'rsh' mode.java.lang.StringgetUri()Gets the URI form of the associated address.booleanisSecure()Return true, if the protocol is secure.
-
-
-
Method Detail
-
getProtocol
public IServerAddress.Protocol getProtocol()
Description copied from interface:IServerAddressGets the connection protocol.- Specified by:
getProtocolin interfaceIServerAddress- Returns:
- the connection protocol
- See Also:
IServerAddress.getProtocol()
-
getHost
public java.lang.String getHost()
Description copied from interface:IServerAddressGets the IP address or hostname of the server.- Specified by:
getHostin interfaceIServerAddress- Returns:
- the host
- See Also:
IServerAddress.getHost()
-
getPort
public int getPort()
Description copied from interface:IServerAddressGets the port number of the server.- Specified by:
getPortin interfaceIServerAddress- Returns:
- the port
- See Also:
IServerAddress.getPort()
-
getQuery
public java.lang.String getQuery()
Description copied from interface:IServerAddressGets the query component of the URI.- Specified by:
getQueryin interfaceIServerAddress- Returns:
- the query
- See Also:
IServerAddress.getQuery()
-
getProperties
public java.util.Properties 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:
IServerAddress.getProperties()
-
getUri
public java.lang.String getUri()
Description copied from interface:IServerAddressGets the URI form of the associated address.- Specified by:
getUriin interfaceIServerAddress- Returns:
- the uri
- See Also:
IServerAddress.getUri()
-
getRsh
public java.lang.String getRsh()
Description copied from interface:IServerAddressGets the command for running the server in 'rsh' mode.- Specified by:
getRshin interfaceIServerAddress- Returns:
- the rsh
- See Also:
IServerAddress.getRsh()
-
isSecure
public boolean isSecure()
Description copied from interface:IServerAddressReturn true, if the protocol is secure.- Specified by:
isSecurein interfaceIServerAddress- Returns:
- true/false
- See Also:
IServerAddress.isSecure()
-
-