Java Code Examples for com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage

The following are top voted examples for showing how to use com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage. 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: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 2
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 3
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 4
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 5
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 6
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 7
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 8
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 9
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 10
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 11
Project: infobip-open-jdk-8   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 12
Project: infobip-open-jdk-8   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 13
Project: openjdk-source-code-learn   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 14
Project: openjdk-source-code-learn   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 15
Project: OLD-OpenJDK8   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 16
Project: OLD-OpenJDK8   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 17
Project: openjdk-orb   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 18
Project: openjdk-orb   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 19
Project: openjdk-icedtea7   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_0 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.0->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.0: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.0<-: " + header);
    }
}
 
Example 20
Project: openjdk-icedtea7   File: CorbaMessageMediatorImpl.java   Source Code and License 6 votes vote down vote up
public void handleInput(RequestMessage_1_1 header) throws IOException
{
    try {
        if (transportDebug()) dprint(".REQUEST 1.1->: " + header);
        try {
            messageHeader = requestHeader = (RequestMessage) header;
            setInputObject();
            connection.serverRequest_1_1_Put(this);
        } finally {
            setWorkThenPoolOrResumeSelect(header);
        }
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug())
            dprint(".REQUEST 1.1: !!ERROR!!: " + header, t);
        // Mask the exception from thread.;
    } finally {
        if (transportDebug()) dprint(".REQUEST 1.1<-: " + header);
    }
}
 
Example 21
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 22
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 23
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 24
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 25
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 26
Project: infobip-open-jdk-8   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 27
Project: openjdk-source-code-learn   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 28
Project: OLD-OpenJDK8   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 29
Project: openjdk-orb   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 30
Project: openjdk-icedtea7   File: CorbaMessageMediatorImpl.java   Source Code and License 5 votes vote down vote up
public CorbaMessageMediatorImpl(ORB orb,
                                ContactInfo contactInfo,
                                Connection connection,
                                GIOPVersion giopVersion,
                                IOR ior,
                                int requestId,
                                short addrDisposition,
                                String operationName,
                                boolean isOneWay)
{
    this( orb, connection ) ;

    this.contactInfo = (CorbaContactInfo) contactInfo;
    this.addrDisposition = addrDisposition;

    streamFormatVersion =
        getStreamFormatVersionForThisRequest(
            ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
            giopVersion);
    streamFormatVersionSet = true;

    requestHeader = (RequestMessage) MessageBase.createRequest(
        this.orb,
        giopVersion,
        ORBUtility.getEncodingVersion(orb, ior),
        requestId,
        !isOneWay,
        ((CorbaContactInfo)this.contactInfo).getEffectiveTargetIOR(),
        this.addrDisposition,
        operationName,
        new ServiceContexts(orb),
        null);
}
 
Example 31
Project: OpenJSharp   File: CorbaProtocolHandler.java   Source Code and License 4 votes vote down vote up
public void handleRequest(RequestMessage header,
CorbaMessageMediator messageMediator);
 
Example 32
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
public RequestMessage getRequestHeader()
{
    return requestHeader;
}
 
Example 33
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
private void resumeSelect(Message header)
{
    // NOTE: VERY IMPORTANT:
    // Only participate in select after getting to the point
    // that proper serialization of fragments is ensured.

    if (transportDebug()) {
        dprint(".resumeSelect:->");
        // REVISIT: not-OO:
        String requestId = "?";
        if (header instanceof RequestMessage) {
            requestId =
                new Integer(((RequestMessage)header)
                            .getRequestId()).toString();
        } else if (header instanceof ReplyMessage) {
            requestId =
                new Integer(((ReplyMessage)header)
                            .getRequestId()).toString();
        } else if (header instanceof FragmentMessage_1_2) {
            requestId =
                new Integer(((FragmentMessage_1_2)header)
                            .getRequestId()).toString();
        }
        dprint(".resumeSelect: id/"
               + requestId
               + " " + getConnection()
               );

    }

    // IMPORTANT: To avoid bug (4953599), we force the Thread that does the NIO select
    // to also do the enable/disable of Ops using SelectionKey.interestOps(Ops of Interest).
    // Otherwise, the SelectionKey.interestOps(Ops of Interest) may block indefinitely in
    // this thread.
    EventHandler eventHandler = getConnection().getEventHandler();
    orb.getTransportManager().getSelector(0).registerInterestOps(eventHandler);

    if (transportDebug()) {
        dprint(".resumeSelect:<-");
    }
}
 
Example 34
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
public void handleInput(RequestMessage_1_2 header) throws IOException
{
    try {
        try {

            messageHeader = requestHeader = (RequestMessage) header;

            header.unmarshalRequestID(dispatchByteBuffer);
            setInputObject();

            if (transportDebug()) dprint(".REQUEST 1.2->: id/"
                                         + header.getRequestId()
                                         + ": "
                                         + header);

            // NOTE: in the old code this used to be done conditionally:
            // if (header.moreFragmentsToFollow()).
            // Now we always put it in. We take it out when
            // the response is done.
            // This must happen now so if a header is fragmented the stream
            // may be found.
            connection.serverRequestMapPut(header.getRequestId(), this);
        } finally {
            // Leader/Follower.
            // Note: This *MUST* come after putting stream in above map
            // since the header may be fragmented and you do not want to
            // start reading again until the map above is set.
            setWorkThenPoolOrResumeSelect(header);
        }
        //inputObject.unmarshalHeader(); // done in subcontract.
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug()) dprint(".REQUEST 1.2: id/"
                                     + header.getRequestId()
                                     + ": !!ERROR!!: "
                                     + header,
                                     t);
        // Mask the exception from thread.;
    } finally {
        connection.serverRequestMapRemove(header.getRequestId());

        if (transportDebug()) dprint(".REQUEST 1.2<-: id/"
                                     + header.getRequestId()
                                     + ": "
                                     + header);
    }
}
 
Example 35
Project: openjdk-jdk10   File: CorbaProtocolHandler.java   Source Code and License 4 votes vote down vote up
public void handleRequest(RequestMessage header,
CorbaMessageMediator messageMediator);
 
Example 36
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
public RequestMessage getRequestHeader()
{
    return requestHeader;
}
 
Example 37
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
private void resumeSelect(Message header)
{
    // NOTE: VERY IMPORTANT:
    // Only participate in select after getting to the point
    // that proper serialization of fragments is ensured.

    if (transportDebug()) {
        dprint(".resumeSelect:->");
        // REVISIT: not-OO:
        String requestId = "?";
        if (header instanceof RequestMessage) {
            requestId =
                new Integer(((RequestMessage)header)
                            .getRequestId()).toString();
        } else if (header instanceof ReplyMessage) {
            requestId =
                new Integer(((ReplyMessage)header)
                            .getRequestId()).toString();
        } else if (header instanceof FragmentMessage_1_2) {
            requestId =
                new Integer(((FragmentMessage_1_2)header)
                            .getRequestId()).toString();
        }
        dprint(".resumeSelect: id/"
               + requestId
               + " " + getConnection()
               );

    }

    // IMPORTANT: To avoid bug (4953599), we force the Thread that does the NIO select
    // to also do the enable/disable of Ops using SelectionKey.interestOps(Ops of Interest).
    // Otherwise, the SelectionKey.interestOps(Ops of Interest) may block indefinitely in
    // this thread.
    EventHandler eventHandler = getConnection().getEventHandler();
    orb.getTransportManager().getSelector(0).registerInterestOps(eventHandler);

    if (transportDebug()) {
        dprint(".resumeSelect:<-");
    }
}
 
Example 38
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
public void handleInput(RequestMessage_1_2 header) throws IOException
{
    try {
        try {

            messageHeader = requestHeader = (RequestMessage) header;

            header.unmarshalRequestID(dispatchByteBuffer);
            setInputObject();

            if (transportDebug()) dprint(".REQUEST 1.2->: id/"
                                         + header.getRequestId()
                                         + ": "
                                         + header);

            // NOTE: in the old code this used to be done conditionally:
            // if (header.moreFragmentsToFollow()).
            // Now we always put it in. We take it out when
            // the response is done.
            // This must happen now so if a header is fragmented the stream
            // may be found.
            connection.serverRequestMapPut(header.getRequestId(), this);
        } finally {
            // Leader/Follower.
            // Note: This *MUST* come after putting stream in above map
            // since the header may be fragmented and you do not want to
            // start reading again until the map above is set.
            setWorkThenPoolOrResumeSelect(header);
        }
        //inputObject.unmarshalHeader(); // done in subcontract.
        getProtocolHandler().handleRequest(header, this);
    } catch (Throwable t) {
        if (transportDebug()) dprint(".REQUEST 1.2: id/"
                                     + header.getRequestId()
                                     + ": !!ERROR!!: "
                                     + header,
                                     t);
        // Mask the exception from thread.;
    } finally {
        connection.serverRequestMapRemove(header.getRequestId());

        if (transportDebug()) dprint(".REQUEST 1.2<-: id/"
                                     + header.getRequestId()
                                     + ": "
                                     + header);
    }
}
 
Example 39
Project: openjdk9   File: CorbaProtocolHandler.java   Source Code and License 4 votes vote down vote up
public void handleRequest(RequestMessage header,
CorbaMessageMediator messageMediator);
 
Example 40
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License 4 votes vote down vote up
public RequestMessage getRequestHeader()
{
    return requestHeader;
}