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 GIOPVersion
DEFAULT_VERSION
private byte
major
private byte
minor
static GIOPVersion
V1_0
static GIOPVersion
V1_1
static GIOPVersion
V1_2
static GIOPVersion
V1_3
static GIOPVersion
V13_XX
static int
VERSION_1_0
static int
VERSION_1_1
static int
VERSION_1_2
static int
VERSION_1_3
static int
VERSION_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 GIOPVersion
chooseRequestVersion(ORB orb, IOR ior)
This chooses the appropriate GIOP version.boolean
equals(GIOPVersion gv)
boolean
equals(java.lang.Object obj)
static GIOPVersion
getInstance(byte major, byte minor)
byte
getMajor()
byte
getMinor()
int
hashCode()
int
intValue()
boolean
lessThan(GIOPVersion gv)
static GIOPVersion
parseVersion(java.lang.String s)
void
read(InputStream istream)
boolean
supportsIORIIOPProfileComponents()
java.lang.String
toString()
void
write(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
lessThan
public boolean lessThan(GIOPVersion gv)
-
intValue
public int intValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-