Class GIOPVersion

java.lang.Object
com.sun.corba.ee.spi.ior.iiop.GIOPVersion

@ManagedData @Description("The maximum GIOP version supported by this IOR") public class GIOPVersion extends Object
  • Field Details

  • Constructor Details

    • GIOPVersion

      public GIOPVersion()
    • GIOPVersion

      public GIOPVersion(byte majorB, byte minorB)
    • GIOPVersion

      public GIOPVersion(int major, int minor)
  • Method Details

    • 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(GIOPVersion gv)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public boolean lessThan(GIOPVersion gv)
    • intValue

      public int intValue()
    • toString

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

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

      public static GIOPVersion parseVersion(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()
    • read

      public void read(InputStream istream)
    • write

      public void write(OutputStream ostream)