public class RMIURL extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static String getRmiUrl()
public static String getRmiUrl(int iMode)
iMode
- indicates standard/compression/SSL modepublic static String getRmiUrl(int iMode, String sHost, int iPort)
iMode
- indicates standard/compression/SSL modesHost
- the RMI registry hostiPort
- the RMI registry port numberIllegalArgumentException
- if the host parameter is nullpublic static String getDefaultHost()
public static void setDefaultHost(String sHost)
sHost
- the new default RMI registry hostIllegalArgumentException
- if the host parameter is nullpublic static int getDefaultPort()
public static void setDefaultPort(int iPort)
iPort
- the new default RMI registry port numberCopyright © 2003, 2022, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.