@Deprecated public final class PrincipalHolder extends Object implements Streamable
一种容器类类型的值Principal被用来存储“out”和“INOUT” IDL方法参数。 如果IDL方法签名具有IDL Principal作为“out”或“inout”参数,则程序员必须传递一个PrincipalHolder的实例作为方法调用中的相应参数; 对于“inout”参数,程序员还必须填写要发送到服务器的“in”值。 在方法调用返回之前,ORB将填写与从服务器返回的“out”值对应的值。
如果myPrincipalHolder是实例PrincipalHolder ,存储在其值value字段可以与被访问myPrincipalHolder.value 。
| Modifier and Type | Field and Description |
|---|---|
Principal |
value
已弃用
由
PrincipalHolder对象持有的
Principal值。
|
| Constructor and Description |
|---|
PrincipalHolder()
已弃用
构造一个新的
PrincipalHolder对象,其
value字段初始化为
null 。
|
PrincipalHolder(Principal initial)
已弃用
构造一个新的
PrincipalHolder对象,其
value字段初始化为给定的
Principal对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
_read(InputStream input)
已弃用
从
istream读取数据,并使用未编组的数据启动持有人的
value字段。
|
TypeCode |
_type()
已弃用
检索对应于持有人的
value字段中的值的
TypeCode对象。
|
void |
_write(OutputStream output)
已弃用
在
ostream的
value领域的
value 。
|
public Principal value
PrincipalHolder对象持有的
Principal值。
public PrincipalHolder()
PrincipalHolder对象,其
value字段初始化为
null 。
public PrincipalHolder(Principal initial)
PrincipalHolder对象,其
value字段初始化为给定的
Principal对象。
initial -
Principal用于初始化新创建的
PrincipalHolder对象的
value字段
public void _read(InputStream input)
Streamable
istream读取数据,并使用未编组的数据启动持有人的
value字段。
_read在接口
Streamable
input - 表示来自电线的CDR数据的InputStream。
public void _write(OutputStream output)
Streamable
ostream的
value字段中的
value 。
_write中的
Streamable
output - CDR OutputStream
public TypeCode _type()
Streamable
value字段中的值的
TypeCode对象。
_type在接口
Streamable
TypeCode对象持有人持有的价值
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.