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 Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GIOPVersion
private byte
private byte
static final GIOPVersion
static final GIOPVersion
static final GIOPVersion
static final GIOPVersion
static final GIOPVersion
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GIOPVersion
chooseRequestVersion
(ORB orb, IOR ior) This chooses the appropriate GIOP version.boolean
equals
(GIOPVersion gv) boolean
static GIOPVersion
getInstance
(byte major, byte minor) byte
getMajor()
byte
getMinor()
int
hashCode()
int
intValue()
boolean
lessThan
(GIOPVersion gv) static GIOPVersion
void
read
(InputStream istream) boolean
toString()
void
write
(OutputStream ostream)
-
Field Details
-
V1_0
-
V1_1
-
V1_2
-
V1_3
-
V13_XX
-
DEFAULT_VERSION
-
VERSION_1_0
public static final int VERSION_1_0- See Also:
-
VERSION_1_1
public static final int VERSION_1_1- See Also:
-
VERSION_1_2
public static final int VERSION_1_2- See Also:
-
VERSION_1_3
public static final int VERSION_1_3- See Also:
-
VERSION_13_XX
public static final int VERSION_13_XX- See Also:
-
major
private byte major -
minor
private byte minor
-
-
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
-
equals
-
hashCode
public int hashCode() -
lessThan
-
intValue
public int intValue() -
toString
-
getInstance
-
parseVersion
-
chooseRequestVersion
This chooses the appropriate GIOP version.- Parameters:
orb
- ORB to useior
- IOR to use- Returns:
- smallest(profGIOPVersion, orbGIOPVersion).
-
supportsIORIIOPProfileComponents
public boolean supportsIORIIOPProfileComponents() -
read
-
write
-