|
Primavera Integration API Release 8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.client.RMIURL
public class 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 | |
---|---|
static int |
COMPRESSION_RMI_SERVICE
Compression service mode. |
static int |
LOCAL_SERVICE
Local mode. |
static int |
SSL_RMI_SERVICE
SSL service mode. |
static int |
STANDARD_RMI_SERVICE
Standard service mode. |
Method Summary | |
---|---|
static String |
getDefaultHost()
Gets the default RMI registry host. |
static int |
getDefaultPort()
Gets the default RMI registry port number. |
static String |
getRmiUrl()
Return the default URL for an RMI standard service 'RemoteSession'. |
static String |
getRmiUrl(int iMode)
Return the URL for an RMI service 'RemoteSession' for the specified service mode using the default host and port. |
static String |
getRmiUrl(int iMode,
String sHost,
int iPort)
Return the URL for an RMI service 'RemoteSession' for the specified service mode, host and port. |
static void |
setDefaultHost(String sHost)
Sets the default RMI registry host. |
static void |
setDefaultPort(int iPort)
Sets the default RMI registry port number. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LOCAL_SERVICE
public static final int STANDARD_RMI_SERVICE
public static final int COMPRESSION_RMI_SERVICE
public static final int SSL_RMI_SERVICE
Method Detail |
---|
public static String getRmiUrl()
public static String getRmiUrl(int iMode)
iMode
- indicates standard/compression/SSL mode
public static String getRmiUrl(int iMode, String sHost, int iPort)
iMode
- indicates standard/compression/SSL modesHost
- the RMI registry hostiPort
- the RMI registry port number
IllegalArgumentException
- if the host parameter is nullpublic static String getDefaultHost()
public static void setDefaultHost(String sHost)
sHost
- the new default RMI registry host
IllegalArgumentException
- if the host parameter is nullpublic static int getDefaultPort()
public static void setDefaultPort(int iPort)
iPort
- the new default RMI registry port number
|
Primavera Integration API Release 8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |