Package com.primavera.integration.client
Class RMIURL
java.lang.Object
com.primavera.integration.client.RMIURL
This helper class is used to generate the URL for Remote Mode required by Session's
getDatabaseInstances() and login() methods. The service mode used (standard, compression or SSL)
is differentiated by the URL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCompression service mode.static final intLocal mode.static final intSSL service mode.static final intStandard service mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the default RMI registry host.static intGets the default RMI registry port number.static StringReturn the default URL for an RMI standard service 'RemoteSession'.static StringgetRmiUrl(int iMode) Return the URL for an RMI service 'RemoteSession' for the specified service mode using the default host and port.static StringReturn the URL for an RMI service 'RemoteSession' for the specified service mode, host and port.static voidsetDefaultHost(String sHost) Sets the default RMI registry host.static voidsetDefaultPort(int iPort) Sets the default RMI registry port number.
-
Field Details
-
LOCAL_SERVICE
public static final int LOCAL_SERVICELocal mode.- See Also:
-
STANDARD_RMI_SERVICE
public static final int STANDARD_RMI_SERVICEStandard service mode.- See Also:
-
COMPRESSION_RMI_SERVICE
public static final int COMPRESSION_RMI_SERVICECompression service mode.- See Also:
-
SSL_RMI_SERVICE
public static final int SSL_RMI_SERVICESSL service mode.- See Also:
-
-
Method Details
-
getRmiUrl
Return the default URL for an RMI standard service 'RemoteSession'.- Returns:
- the default URL for an RMI standard service
-
getRmiUrl
Return the URL for an RMI service 'RemoteSession' for the specified service mode using the default host and port.- Parameters:
iMode- indicates standard/compression/SSL mode- Returns:
- the URL for an RMI service
-
getRmiUrl
Return the URL for an RMI service 'RemoteSession' for the specified service mode, host and port.- Parameters:
iMode- indicates standard/compression/SSL modesHost- the RMI registry hostiPort- the RMI registry port number- Returns:
- the URL for an RMI service
- Throws:
IllegalArgumentException- if the host parameter is null
-
getDefaultHost
Gets the default RMI registry host.- Returns:
- the default RMI registry host
-
setDefaultHost
Sets the default RMI registry host.- Parameters:
sHost- the new default RMI registry host- Throws:
IllegalArgumentException- if the host parameter is null
-
getDefaultPort
public static int getDefaultPort()Gets the default RMI registry port number.- Returns:
- the default RMI registry port number
-
setDefaultPort
public static void setDefaultPort(int iPort) Sets the default RMI registry port number.- Parameters:
iPort- the new default RMI registry port number
-