Package com.sun.corba.ee.spi.ior.iiop
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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static GIOPVersionDEFAULT_VERSIONprivate bytemajorprivate byteminorstatic GIOPVersionV1_0static GIOPVersionV1_1static GIOPVersionV1_2static GIOPVersionV1_3static GIOPVersionV13_XXstatic intVERSION_1_0static intVERSION_1_1static intVERSION_1_2static intVERSION_1_3static intVERSION_13_XX
-
Constructor Summary
Constructors Constructor Description GIOPVersion()GIOPVersion(byte majorB, byte minorB)GIOPVersion(int major, int minor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GIOPVersionchooseRequestVersion(ORB orb, IOR ior)This chooses the appropriate GIOP version.booleanequals(GIOPVersion gv)booleanequals(java.lang.Object obj)static GIOPVersiongetInstance(byte major, byte minor)bytegetMajor()bytegetMinor()inthashCode()intintValue()booleanlessThan(GIOPVersion gv)static GIOPVersionparseVersion(java.lang.String s)voidread(InputStream istream)booleansupportsIORIIOPProfileComponents()java.lang.StringtoString()voidwrite(OutputStream ostream)
-
-
-
Field Detail
-
V1_0
public static final GIOPVersion V1_0
-
V1_1
public static final GIOPVersion V1_1
-
V1_2
public static final GIOPVersion V1_2
-
V1_3
public static final GIOPVersion V1_3
-
V13_XX
public static final GIOPVersion V13_XX
-
DEFAULT_VERSION
public static final GIOPVersion DEFAULT_VERSION
-
VERSION_1_0
public static final int VERSION_1_0
- See Also:
- Constant Field Values
-
VERSION_1_1
public static final int VERSION_1_1
- See Also:
- Constant Field Values
-
VERSION_1_2
public static final int VERSION_1_2
- See Also:
- Constant Field Values
-
VERSION_1_3
public static final int VERSION_1_3
- See Also:
- Constant Field Values
-
VERSION_13_XX
public static final int VERSION_13_XX
- See Also:
- Constant Field Values
-
major
private byte major
-
minor
private byte 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(GIOPVersion gv)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
lessThan
public boolean lessThan(GIOPVersion gv)
-
intValue
public int intValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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 useior- IOR to use- Returns:
- smallest(profGIOPVersion, orbGIOPVersion).
-
supportsIORIIOPProfileComponents
public boolean supportsIORIIOPProfileComponents()
-
read
public void read(InputStream istream)
-
write
public void write(OutputStream ostream)
-
-