Modifier and Type | Method and Description |
---|---|
String |
getVersion()
RMI的连接器协议通过此连接器服务器理解版。
|
RMIConnection |
newClient(Object credentials)
使一个新的连接通过RMI连接器。
|
String getVersion() throws RemoteException
RMI的连接器协议通过此连接器服务器理解版。这是一个有下列格式的字符串:
协议版本实现名称
的protocol-version
是一系列的两个或两个以上的非负整数之间用句点分隔(.
)。该版本由本文档中描述的实现必须在这里使用字符串1.0
。
协议版本后必须有一个空格,其次是实现名称。执行名称的格式是未指定的。它建议它包括一个实现版本号。一个实现可以使用一个空字符串作为它的实现名称,例如出于安全原因。
RemoteException
-如果有一个通讯异常远程方法调用期间。
RMIConnection newClient(Object credentials) throws IOException
使一个新的连接通过RMI连接器。每个远程客户端调用这个方法来获得一个新的RMI对象代表其连接。
credentials
这个对象指定用户定义的凭据将通过为服务器验证用户在创建
RMIConnection
可空。
IOException
-如果新的客户端对象不能被创造或出口,或如果有一个通讯异常远程方法调用期间。
SecurityException
如果提供的凭据不允许服务器验证调用者成功。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.