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


Java GIOPVersion.V1_2属性代码示例

本文整理汇总了Java中com.sun.corba.se.spi.ior.iiop.GIOPVersion.V1_2属性的典型用法代码示例。如果您正苦于以下问题:Java GIOPVersion.V1_2属性的具体用法?Java GIOPVersion.V1_2怎么用?Java GIOPVersion.V1_2使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.corba.se.spi.ior.iiop.GIOPVersion的用法示例。


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

示例1: createCloseConnection

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);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:MessageBase.java

示例2: createMessageError

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);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:MessageBase.java

示例3: LocateReplyMessage_1_2

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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:LocateReplyMessage_1_2.java

示例4: RequestMessage_1_2

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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:RequestMessage_1_2.java

示例5: LocateRequestMessage_1_2

LocateRequestMessage_1_2(ORB orb, int _request_id, TargetAddress _target) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPLocateRequest, 0);
    this.orb = orb;
    request_id = _request_id;
    target = _target;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:LocateRequestMessage_1_2.java

示例6: ReplyMessage_1_2

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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:ReplyMessage_1_2.java

示例7: EncapsOutputStream

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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:5,代码来源:EncapsOutputStream.java

示例8: getGIOPVersion

public final GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:3,代码来源:IDLJavaSerializationOutputStream.java

示例9: getGIOPVersion

public GIOPVersion getGIOPVersion() {
    return GIOPVersion.V1_2;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:3,代码来源:CDROutputStream_1_2.java

示例10: EncapsInputStream

public EncapsInputStream(org.omg.CORBA.ORB orb, byte[] data, int size)
{
    this(orb, data, size, GIOPVersion.V1_2);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:EncapsInputStream.java

示例11: FragmentMessage_1_2

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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:6,代码来源:FragmentMessage_1_2.java


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