本文整理汇总了Java中com.sun.corba.se.impl.encoding.CDROutputObject类的典型用法代码示例。如果您正苦于以下问题:Java CDROutputObject类的具体用法?Java CDROutputObject怎么用?Java CDROutputObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CDROutputObject类属于com.sun.corba.se.impl.encoding包,在下文中一共展示了CDROutputObject类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createAppropriateOutputObject
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
private CDROutputObject createAppropriateOutputObject(
CorbaMessageMediator messageMediator,
Message msg, LocateReplyMessage reply)
{
CDROutputObject outputObject;
if (msg.getGIOPVersion().lessThan(GIOPVersion.V1_2)) {
// locate msgs 1.0 & 1.1 :=> grow,
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
(ORB) messageMediator.getBroker(),
this,
GIOPVersion.V1_0,
(CorbaConnection) messageMediator.getConnection(),
reply,
ORBConstants.STREAM_FORMAT_VERSION_1);
} else {
// 1.2 :=> stream
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
(ORB) messageMediator.getBroker(),
messageMediator,
reply,
ORBConstants.STREAM_FORMAT_VERSION_1);
}
return outputObject;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:CorbaMessageMediatorImpl.java
示例2: newCDROutputObject
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
public static CDROutputObject newCDROutputObject(
final ORB orb, final MessageMediator messageMediator,
final Message header, final byte streamFormatVersion) {
return AccessController.doPrivileged(
new PrivilegedAction<CDROutputObject>() {
@Override
public CDROutputObject run() {
return new CDROutputObject(orb, messageMediator,
header, streamFormatVersion);
}
});
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:OutputStreamFactory.java
示例3: sendResponse
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
private void sendResponse(CorbaMessageMediator messageMediator)
{
if (orb.subcontractDebugFlag) {
dprint(".handleRequest: " + opAndId(messageMediator)
+ ": sending response");
}
// REVISIT - type and location
CDROutputObject outputObject = (CDROutputObject)
messageMediator.getOutputObject();
if (outputObject != null) {
// REVISIT - can be null for TRANSIENT below.
outputObject.finishSendingMessage();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:CorbaMessageMediatorImpl.java
示例4: sendHelper
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
protected void sendHelper(GIOPVersion giopVersion, Message msg)
throws IOException
{
// REVISIT: See comments in CDROutputObject constructor.
CDROutputObject outputObject =
sun.corba.OutputStreamFactory.newCDROutputObject((ORB)orb, null, giopVersion,
this, msg, ORBConstants.STREAM_FORMAT_VERSION_1);
msg.write(outputObject);
outputObject.writeTo(this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:SocketOrChannelConnectionImpl.java
示例5: overflow
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
public void overflow (ByteBufferWithInfo bbwi)
{
// Set the fragment's moreFragments field to true
MessageBase.setFlag(bbwi.byteBuffer, Message.MORE_FRAGMENTS_BIT);
try {
sendFragment(false);
} catch(SystemException se){
orb.getPIHandler().invokeClientPIEndingPoint(
ReplyMessage.SYSTEM_EXCEPTION, se);
throw se;
}
// Reuse the old buffer
// REVISIT - need to account for case when needed > available
// even after fragmenting. This is the large array case, so
// the caller should retry when it runs out of space.
bbwi.position(0);
bbwi.buflen = bbwi.byteBuffer.limit();
bbwi.fragmented = true;
// Now we must marshal in the fragment header/GIOP header
// REVISIT - we can optimize this by not creating the fragment message
// each time.
FragmentMessage header = ((CDROutputObject)outputObject).getMessageHeader().createFragmentMessage();
header.write(((CDROutputObject)outputObject));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:32,代码来源:BufferManagerWriteStream.java
示例6: overflow
import com.sun.corba.se.impl.encoding.CDROutputObject; //导入依赖的package包/类
public void overflow (ByteBufferWithInfo bbwi)
{
// Set the fragment's moreFragments field to true
MessageBase.setFlag(bbwi.byteBuffer, Message.MORE_FRAGMENTS_BIT);
// Enqueue the previous fragment
queue.enqueue(bbwi);
// Create a new bbwi
ByteBufferWithInfo newBbwi = new ByteBufferWithInfo(orb, this);
newBbwi.fragmented = true;
// XREVISIT - Downcast
((CDROutputObject)outputObject).setByteBufferWithInfo(newBbwi);
// Now we must marshal in the fragment header/GIOP header
// REVISIT - we can optimize this by not creating the fragment message
// each time.
// XREVISIT - Downcast
FragmentMessage header =
((CDROutputObject)outputObject).getMessageHeader()
.createFragmentMessage();
header.write((CDROutputObject)outputObject);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:BufferManagerWriteCollect.java
注:本文中的com.sun.corba.se.impl.encoding.CDROutputObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论