Class GIOPVersion


  • @ManagedData
    @Description("The maximum GIOP version supported by this IOR")
    public class GIOPVersion
    extends java.lang.Object
    • Constructor Detail

      • GIOPVersion

        public GIOPVersion()
      • GIOPVersion

        public GIOPVersion​(byte majorB,
                           byte minorB)
      • GIOPVersion

        public GIOPVersion​(int major,
                           int minor)
    • Method Detail

      • getMajor

        @ManagedAttribute
        @Description("The Major GIOP version (almost always 1)")
        public byte getMajor()
      • getMinor

        @ManagedAttribute
        @Description("The Minor GIOP version (almost always 0, 1, or 2. This ORB almost always uses 2")
        public byte getMinor()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • lessThan

        public boolean lessThan​(GIOPVersion gv)
      • intValue

        public int intValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getInstance

        public static GIOPVersion getInstance​(byte major,
                                              byte minor)
      • parseVersion

        public static GIOPVersion parseVersion​(java.lang.String s)
      • chooseRequestVersion

        public static GIOPVersion chooseRequestVersion​(ORB orb,
                                                       IOR ior)
        This chooses the appropriate GIOP version.
        Parameters:
        orb - ORB to use
        ior - IOR to use
        Returns:
        smallest(profGIOPVersion, orbGIOPVersion).
      • supportsIORIIOPProfileComponents

        public boolean supportsIORIIOPProfileComponents()