本文整理汇总了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;
}
示例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();
}
示例3: waitForResponse
import com.sun.corba.se.pept.encoding.InputObject; //导入依赖的package包/类
public InputObject waitForResponse()
{
if (getRequestHeader().isResponseExpected()) {
return connection.waitForResponse(this);
}
return null;
}
示例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);
}
示例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();
}
}
示例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());
}
示例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());
}
示例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));
}
}
}