当前位置: 首页>>代码示例>>Java>>正文


Java InputObject类代码示例

本文整理汇总了Java中com.sun.corba.se.pept.encoding.InputObject的典型用法代码示例。如果您正苦于以下问题:Java InputObject类的具体用法?Java InputObject怎么用?Java InputObject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InputObject类属于com.sun.corba.se.pept.encoding包,在下文中一共展示了InputObject类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: peekUserExceptionId

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
protected String peekUserExceptionId(InputObject inputObject)
{
    CDRInputObject cdrInputObject = (CDRInputObject) inputObject;
    // REVISIT - need interface for mark/reset
    cdrInputObject.mark(Integer.MAX_VALUE);
    String result = cdrInputObject.read_string();
    cdrInputObject.reset();
    return result;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:CorbaClientRequestDispatcherImpl.java

示例2: releaseReply

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public void releaseReply(org.omg.CORBA.Object self, InputStream input)
{
    // NOTE: InputStream may be null (e.g., exception request from PI).
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    subcontract.endRequest(orb, self, (InputObject)input);
    orb.releaseOrDecrementInvocationInfo();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CorbaClientDelegateImpl.java

示例3: waitForResponse

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CorbaMessageMediatorImpl.java

示例4: signalResponseReceived

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
private void signalResponseReceived()
{
    // This will end up using the MessageMediator associated with
    // the original request instead of the current mediator (which
    // need to be constructed to hold the dispatchBuffer and connection).
    connection.getResponseWaitingRoom()
        .responseReceived((InputObject)inputObject);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:CorbaMessageMediatorImpl.java

示例5: endRequest

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
private void endRequest(CorbaMessageMediator messageMediator)
{
    ORB orb = (ORB) messageMediator.getBroker();
    if (orb.subcontractDebugFlag) {
        dprint(".handleRequest<-: " + opAndId(messageMediator));
    }

    // release NIO ByteBuffers to ByteBufferPool

    try {
        OutputObject outputObj = messageMediator.getOutputObject();
        if (outputObj != null) {
            outputObj.close();
        }
        InputObject inputObj = messageMediator.getInputObject();
        if (inputObj != null) {
            inputObj.close();
        }
    } catch (IOException ex) {
        // Given what close() does, this catch shouldn't ever happen.
        // See CDRInput/OutputObject.close() for more info.
        // It also won't result in a Corba error if an IOException happens.
        if (orb.subcontractDebugFlag) {
            dprint(".endRequest: IOException:" + ex.getMessage(), ex);
        }
    } finally {
        ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:CorbaMessageMediatorImpl.java

示例6: createInputObject

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    // REVISIT: Duplicate of acceptor code.
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CorbaContactInfoBase.java

示例7: createInputObject

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:SocketOrChannelAcceptorImpl.java

示例8: marshalingComplete

import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public InputObject marshalingComplete(java.lang.Object self,
                                      OutputObject outputObject)
    throws
        ApplicationException,
        org.omg.CORBA.portable.RemarshalException
{
    ORB orb = null;
    CorbaMessageMediator messageMediator = null;
    try {
        messageMediator = (CorbaMessageMediator)
            outputObject.getMessageMediator();

        orb = (ORB) messageMediator.getBroker();

        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete->: " + opAndId(messageMediator));
        }

        InputObject inputObject =
            marshalingComplete1(orb, messageMediator);

        return processResponse(orb, messageMediator, inputObject);

    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete<-: " + opAndId(messageMediator));
        }
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:30,代码来源:CorbaClientRequestDispatcherImpl.java


注:本文中的com.sun.corba.se.pept.encoding.InputObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。