本文整理汇总了Java中com.sun.corba.se.spi.servicecontext.ServiceContexts.writeNullServiceContext方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceContexts.writeNullServiceContext方法的具体用法?Java ServiceContexts.writeNullServiceContext怎么用?Java ServiceContexts.writeNullServiceContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.corba.se.spi.servicecontext.ServiceContexts
的用法示例。
在下文中一共展示了ServiceContexts.writeNullServiceContext方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
ostream.write_ulong(this.request_id);
ostream.write_long(this.reply_status);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_2);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
// CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be
// aligned on an 8 octet boundary.
// Ensures that the first write operation called from the stub code,
// during body construction, would insert a header padding, such that
// the body is aligned on an 8-octet boundary.
((CDROutputStream)ostream).setHeaderPadding(true);
}
示例2: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_0);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
ostream.write_ulong(this.request_id);
ostream.write_boolean(this.response_expected);
nullCheck(this.object_key);
ostream.write_long(this.object_key.length);
ostream.write_octet_array(this.object_key, 0, this.object_key.length);
ostream.write_string(this.operation);
if (this.requesting_principal != null) {
ostream.write_Principal(this.requesting_principal);
} else {
ostream.write_long(0);
}
}
示例3: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_1);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
ostream.write_ulong(this.request_id);
ostream.write_boolean(this.response_expected);
nullCheck(this.reserved);
if (this.reserved.length != (3)) {
throw wrapper.badReservedLength(
org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
for (int _i0 = 0;_i0 < (3); ++_i0) {
ostream.write_octet(this.reserved[_i0]);
}
nullCheck(this.object_key);
ostream.write_long(this.object_key.length);
ostream.write_octet_array(this.object_key, 0, this.object_key.length);
ostream.write_string(this.operation);
if (this.requesting_principal != null) {
ostream.write_Principal(this.requesting_principal);
} else {
ostream.write_long(0);
}
}
示例4: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_0);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
ostream.write_ulong(this.request_id);
ostream.write_long(this.reply_status);
}
示例5: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
ostream.write_ulong(this.request_id);
ostream.write_octet(this.response_flags);
nullCheck(this.reserved);
if (this.reserved.length != (3)) {
throw wrapper.badReservedLength(
org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
for (int _i0 = 0;_i0 < (3); ++_i0) {
ostream.write_octet(this.reserved[_i0]);
}
nullCheck(this.target);
TargetAddressHelper.write(ostream, this.target);
ostream.write_string(this.operation);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_2);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
// CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be
// aligned on an 8 octet boundary.
// Ensures that the first write operation called from the stub code,
// during body construction, would insert a header padding, such that
// the body is aligned on an 8-octet boundary.
((CDROutputStream)ostream).setHeaderPadding(true);
}
示例6: write
import com.sun.corba.se.spi.servicecontext.ServiceContexts; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
super.write(ostream);
if (this.service_contexts != null) {
service_contexts.write(
(org.omg.CORBA_2_3.portable.OutputStream) ostream,
GIOPVersion.V1_1);
} else {
ServiceContexts.writeNullServiceContext(
(org.omg.CORBA_2_3.portable.OutputStream) ostream);
}
ostream.write_ulong(this.request_id);
ostream.write_long(this.reply_status);
}