Java Code Examples for com.sun.corba.se.spi.ior.iiop.GIOPVersion#V1_2

The following examples show how to use com.sun.corba.se.spi.ior.iiop.GIOPVersion#V1_2 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageBase.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public static Message createCloseConnection(GIOPVersion gv) {
    if (gv.equals(GIOPVersion.V1_0)) { // 1.0
        return new Message_1_0(Message.GIOPBigMagic, false,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_1)) { // 1.1
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_1,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_2)) { // 1.2
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_2,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else {
        throw wrapper.giopVersionError(
            CompletionStatus.COMPLETED_MAYBE);
    }
}
 
Example 2
Source File: MessageBase.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public static Message createMessageError(GIOPVersion gv) {
    if (gv.equals(GIOPVersion.V1_0)) { // 1.0
        return new Message_1_0(Message.GIOPBigMagic, false,
                               Message.GIOPMessageError, 0);
    } else if (gv.equals(GIOPVersion.V1_1)) { // 1.1
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_1,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPMessageError, 0);
    } else if (gv.equals(GIOPVersion.V1_2)) { // 1.2
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_2,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPMessageError, 0);
    } else {
        throw wrapper.giopVersionError(
            CompletionStatus.COMPLETED_MAYBE);
    }
}
 
Example 3
Source File: MessageBase.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public static Message createMessageError(GIOPVersion gv) {
    if (gv.equals(GIOPVersion.V1_0)) { // 1.0
        return new Message_1_0(Message.GIOPBigMagic, false,
                               Message.GIOPMessageError, 0);
    } else if (gv.equals(GIOPVersion.V1_1)) { // 1.1
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_1,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPMessageError, 0);
    } else if (gv.equals(GIOPVersion.V1_2)) { // 1.2
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_2,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPMessageError, 0);
    } else {
        throw wrapper.giopVersionError(
            CompletionStatus.COMPLETED_MAYBE);
    }
}
 
Example 4
Source File: MessageBase.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public static Message createCloseConnection(GIOPVersion gv) {
    if (gv.equals(GIOPVersion.V1_0)) { // 1.0
        return new Message_1_0(Message.GIOPBigMagic, false,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_1)) { // 1.1
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_1,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_2)) { // 1.2
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_2,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else {
        throw wrapper.giopVersionError(
            CompletionStatus.COMPLETED_MAYBE);
    }
}
 
Example 5
Source File: MessageBase.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public static Message createCloseConnection(GIOPVersion gv) {
    if (gv.equals(GIOPVersion.V1_0)) { // 1.0
        return new Message_1_0(Message.GIOPBigMagic, false,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_1)) { // 1.1
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_1,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else if (gv.equals(GIOPVersion.V1_2)) { // 1.2
        return new Message_1_1(Message.GIOPBigMagic, GIOPVersion.V1_2,
                               FLAG_NO_FRAG_BIG_ENDIAN,
                               Message.GIOPCloseConnection, 0);
    } else {
        throw wrapper.giopVersionError(
            CompletionStatus.COMPLETED_MAYBE);
    }
}
 
Example 6
Source File: ReplyMessage_1_2.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
ReplyMessage_1_2(ORB orb, int _request_id, int _reply_status,
        ServiceContexts _service_contexts, IOR _ior) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPReply, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    request_id = _request_id;
    reply_status = _reply_status;
    service_contexts = _service_contexts;
    ior = _ior;
}
 
Example 7
Source File: RequestMessage_1_2.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
RequestMessage_1_2(ORB orb, int _request_id, byte _response_flags,
        byte[] _reserved, TargetAddress _target,
        String _operation, ServiceContexts _service_contexts) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPRequest, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    request_id = _request_id;
    response_flags = _response_flags;
    reserved = _reserved;
    target = _target;
    operation = _operation;
    service_contexts = _service_contexts;
}
 
Example 8
Source File: LocateReplyMessage_1_2.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
LocateReplyMessage_1_2(ORB orb, int _request_id,
        int _reply_status, IOR _ior) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPLocateReply, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    request_id = _request_id;
    reply_status = _reply_status;
    ior = _ior;
}
 
Example 9
Source File: ReplyMessage_1_2.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
ReplyMessage_1_2(ORB orb, int _request_id, int _reply_status,
        ServiceContexts _service_contexts, IOR _ior) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPReply, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    request_id = _request_id;
    reply_status = _reply_status;
    service_contexts = _service_contexts;
    ior = _ior;
}
 
Example 10
Source File: EncapsInputStream.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public EncapsInputStream(org.omg.CORBA.ORB orb, byte[] data, int size)
{
    this(orb, data, size, GIOPVersion.V1_2);
}
 
Example 11
Source File: CDRInputStream_1_2.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
Example 12
Source File: FragmentMessage_1_2.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
FragmentMessage_1_2(int _request_id) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPFragment, 0);
    this.message_type = GIOPFragment;
    request_id = _request_id;
}
 
Example 13
Source File: IDLJavaSerializationOutputStream.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public final GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
Example 14
Source File: IDLJavaSerializationInputStream.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
Example 15
Source File: EncapsOutputStream.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public EncapsOutputStream(ORB orb, boolean isLittleEndian) {
    this(orb, GIOPVersion.V1_2, isLittleEndian);
}
 
Example 16
Source File: IDLJavaSerializationInputStream.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
Example 17
Source File: CancelRequestMessage_1_2.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
CancelRequestMessage_1_2(int _request_id) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPCancelRequest, CANCEL_REQ_MSG_SIZE);
    request_id = _request_id;
}
 
Example 18
Source File: EncapsOutputStream.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public EncapsOutputStream(ORB orb) {
    // GIOP version 1.2 with no fragmentation, big endian,
    // UTF8 for char data and UTF-16 for wide char data;
    this(orb, GIOPVersion.V1_2);
}
 
Example 19
Source File: IDLJavaSerializationOutputStream.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public final GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
Example 20
Source File: CancelRequestMessage_1_2.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
CancelRequestMessage_1_2(int _request_id) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPCancelRequest, CANCEL_REQ_MSG_SIZE);
    request_id = _request_id;
}