Java Code Examples for com.sun.corba.se.pept.encoding.InputObject

The following are top voted examples for showing how to use com.sun.corba.se.pept.encoding.InputObject. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}
 
Example 2
Project: OpenJSharp   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 3
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
Example 4
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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);
}
 
Example 5
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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();
    }
}
 
Example 6
Project: OpenJSharp   File: CorbaContactInfoBase.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 7
Project: OpenJSharp   File: SocketOrChannelAcceptorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
Example 8
Project: openjdk-jdk10   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}
 
Example 9
Project: openjdk-jdk10   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 10
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
Example 11
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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);
}
 
Example 12
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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();
    }
}
 
Example 13
Project: openjdk-jdk10   File: CorbaContactInfoBase.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 14
Project: openjdk-jdk10   File: SocketOrChannelAcceptorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
Example 15
Project: openjdk9   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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));
        }
    }
}
 
Example 16
Project: openjdk9   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}
 
Example 17
Project: openjdk9   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 18
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
Example 19
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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);
}
 
Example 20
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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();
    }
}
 
Example 21
Project: openjdk9   File: CorbaContactInfoBase.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 22
Project: openjdk9   File: SocketOrChannelAcceptorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
Example 23
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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));
        }
    }
}
 
Example 24
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}
 
Example 25
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 26
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
Example 27
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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);
}
 
Example 28
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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();
    }
}
 
Example 29
Project: lookaside_java-1.8.0-openjdk   File: CorbaContactInfoBase.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 30
Project: lookaside_java-1.8.0-openjdk   File: SocketOrChannelAcceptorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
Example 31
Project: jdk8u_corba   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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));
        }
    }
}
 
Example 32
Project: jdk8u_corba   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}
 
Example 33
Project: jdk8u_corba   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 34
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject waitForResponse()
{
    if (getRequestHeader().isResponseExpected()) {
        return connection.waitForResponse(this);
    }
    return null;
}
 
Example 35
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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);
}
 
Example 36
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
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();
    }
}
 
Example 37
Project: jdk8u_corba   File: CorbaContactInfoBase.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 38
Project: jdk8u_corba   File: SocketOrChannelAcceptorImpl.java   Source Code and License 5 votes vote down vote up
public InputObject createInputObject(Broker broker,
                                     MessageMediator messageMediator)
{
    CorbaMessageMediator corbaMessageMediator = (CorbaMessageMediator)
        messageMediator;
    return new CDRInputObject((ORB)broker,
                              (CorbaConnection)messageMediator.getConnection(),
                              corbaMessageMediator.getDispatchBuffer(),
                              corbaMessageMediator.getDispatchHeader());
}
 
Example 39
Project: infobip-open-jdk-8   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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));
        }
    }
}
 
Example 40
Project: infobip-open-jdk-8   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
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;
}