Package com.sun.corba.ee.impl.util
Class RepositoryId
java.lang.Object
com.sun.corba.ee.impl.util.RepositoryId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private long
private static final byte[]
Used to convert ascii to hex.static final RepositoryIdCache
private Class
private String
private static final String
private String
static final byte[]
private boolean
private boolean
private boolean
private boolean
static final String
private static final String
static final int
static final String
static final String
static final String
static final String
private static final String
private static final String
static final String
static final String
private static final String
private static final String
private static final String
private static final int
static final int
private static final String
private static final String
static final String
static final int
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
private static final String
private static final String
private static final int
static final String
static final String
static final String
static final int
static final Hashtable
<String, StringBuffer> private static final String
private static final int
static final String
static final String
static final String
static final String
static final String
private String
private static final long
private String
private long
private String
private String
private static final boolean
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
computeValueTag
(boolean codeBasePresent, int typeInfo, boolean chunkedEncoding) private static String
convertFromISOLatin1
(String name) Convert strings with ISO Latin 1 escape sequences back to original strings.static String
convertToISOLatin1
(String name) Convert strings with illegal IDL identifier characters.static String
createForAnyType
(Class<?> type) static String
createForAnyType
(Class<?> type, ClassInfoCache.ClassInfo cinfo) Createa a repository ID for the type if it is either a java type or an IDL type.static String
createForIDLType
(Class<?> ser, int major, int minor) Creates a repository ID for an IDL Java Type.static String
Creates a repository ID for a normal Java Type.static String
createForJavaType
(Class<?> clz) static String
createForJavaType
(Class<?> clz, ClassInfoCache.ClassInfo cinfo) Creates a repository ID for a normal Java Type.static String
static String
createForSpecialCase
(Class<?> clazz) static String
createForSpecialCase
(Class<?> clazz, ClassInfoCache.ClassInfo cinfo) private static String
createHashString
(Class<?> clazz) static String
createSequenceRepID
(Class<?> clazz) Creates a repository ID for a sequence.static String
Creates a repository ID for a sequence.private static String
static long
final String
final long
final Class
<?> static byte[]
getByteArray
(String repStr) final Class
<?> final Class
<?> getClassFromType
(Class<?> expectedType, String codebase) final Class
<?> getClassFromType
(String url) final String
final String
private static String
getIdFromHelper
(Class<?> clazz) final String
final String
final long
static String
static int
getTypeInfo
(int value_tag) final String
final String
final String
(package private) RepositoryId
static boolean
isAbstractBase
(Class<?> clazz) static boolean
isAnyRequired
(Class clazz) static boolean
isChunkedEncoding
(int value_tag) static boolean
isCodeBasePresent
(int value_tag) final boolean
final boolean
final boolean
final boolean
private static String
static void
setByteArray
(String repStr, byte[] repStrBytes) final String
toString()
static boolean
useFullValueDescription
(Class<?> clazz, ClassInfoCache.ClassInfo cinfo, String repositoryID) Checks to see if the FullValueDescription should be retrieved.static boolean
useFullValueDescription
(Class clazz, String repositoryID) Checks to see if the FullValueDescription should be retrieved.
-
Field Details
-
IDL_IDENTIFIER_CHARS
public static final byte[] IDL_IDENTIFIER_CHARS -
serialVersionUID
private static final long serialVersionUID- See Also:
-
defaultServerURL
-
useCodebaseOnly
private static final boolean useCodebaseOnly -
classToRepStr
-
classIDLToRepStr
-
classSeqToRepStr
-
repStrToByteArray
-
repStrToClass
-
repId
-
isSupportedFormat
private boolean isSupportedFormat -
typeString
-
versionString
-
isSequence
private boolean isSequence -
isRMIValueType
private boolean isRMIValueType -
isIDLType
private boolean isIDLType -
completeClassName
-
unqualifiedName
-
definedInId
-
clazz
-
suid
-
actualSuid
-
suidLong
private long suidLong -
actualSuidLong
private long actualSuidLong -
kSequenceKeyword
- See Also:
-
kValuePrefix
- See Also:
-
kIDLPrefix
- See Also:
-
kIDLNamePrefix
- See Also:
-
kIDLClassnamePrefix
- See Also:
-
kSequencePrefix
- See Also:
-
kCORBAPrefix
- See Also:
-
kArrayPrefix
- See Also:
-
kValuePrefixLength
private static final int kValuePrefixLength -
kIDLPrefixLength
private static final int kIDLPrefixLength -
kSequencePrefixLength
private static final int kSequencePrefixLength -
kInterfaceHashCode
- See Also:
-
kInterfaceOnlyHashStr
- See Also:
-
kExternalizableHashStr
- See Also:
-
kInitialValueTag
public static final int kInitialValueTag- See Also:
-
kNoTypeInfo
public static final int kNoTypeInfo- See Also:
-
kSingleRepTypeInfo
public static final int kSingleRepTypeInfo- See Also:
-
kPartialListTypeInfo
public static final int kPartialListTypeInfo- See Also:
-
kChunkedMask
public static final int kChunkedMask- See Also:
-
kPreComputed_StandardRMIUnchunked
public static final int kPreComputed_StandardRMIUnchunked -
kPreComputed_CodeBaseRMIUnchunked
public static final int kPreComputed_CodeBaseRMIUnchunked -
kPreComputed_StandardRMIChunked
public static final int kPreComputed_StandardRMIChunked -
kPreComputed_CodeBaseRMIChunked
public static final int kPreComputed_CodeBaseRMIChunked -
kPreComputed_StandardRMIUnchunked_NoRep
public static final int kPreComputed_StandardRMIUnchunked_NoRep -
kPreComputed_CodeBaseRMIUnchunked_NoRep
public static final int kPreComputed_CodeBaseRMIUnchunked_NoRep -
kPreComputed_StandardRMIChunked_NoRep
public static final int kPreComputed_StandardRMIChunked_NoRep -
kPreComputed_CodeBaseRMIChunked_NoRep
public static final int kPreComputed_CodeBaseRMIChunked_NoRep -
kWStringValueVersion
- See Also:
-
kWStringValueHash
- See Also:
-
kWStringStubValue
- See Also:
-
kWStringTypeStr
- See Also:
-
kWStringValueRepID
- See Also:
-
kAnyRepID
- See Also:
-
kClassDescValueHash
-
kClassDescStubValue
- See Also:
-
kClassDescTypeStr
- See Also:
-
kClassDescValueRepID
-
kObjectValueHash
- See Also:
-
kObjectStubValue
- See Also:
-
kSequenceValueHash
- See Also:
-
kPrimitiveSequenceValueHash
- See Also:
-
kSerializableValueHash
- See Also:
-
kSerializableStubValue
- See Also:
-
kExternalizableValueHash
- See Also:
-
kExternalizableStubValue
- See Also:
-
kRemoteValueHash
- See Also:
-
kRemoteStubValue
- See Also:
-
kRemoteTypeStr
- See Also:
-
kRemoteValueRepID
- See Also:
-
kSpecialArrayTypeStrings
-
kSpecialCasesRepIDs
-
kSpecialCasesStubValues
-
kSpecialCasesVersions
-
kSpecialCasesClasses
-
kSpecialCasesArrayPrefix
-
kSpecialPrimitives
-
ASCII_HEX
private static final byte[] ASCII_HEXUsed to convert ascii to hex. -
cache
-
kjava_rmi_Remote
-
korg_omg_CORBA_Object
-
-
Constructor Details
-
RepositoryId
RepositoryId() -
RepositoryId
RepositoryId(String aRepId)
-
-
Method Details
-
init
-
getUnqualifiedName
-
getDefinedInId
-
getTypeString
-
getVersionString
-
getSerialVersionUID
-
getActualSerialVersionUID
-
getSerialVersionUIDAsLong
public final long getSerialVersionUIDAsLong() -
getActualSerialVersionUIDAsLong
public final long getActualSerialVersionUIDAsLong() -
isRMIValueType
public final boolean isRMIValueType() -
isIDLType
public final boolean isIDLType() -
getRepositoryId
-
getByteArray
-
setByteArray
-
isSequence
public final boolean isSequence() -
isSupportedFormat
public final boolean isSupportedFormat() -
getClassName
-
getAnyClassFromType
- Throws:
ClassNotFoundException
-
getClassFromType
- Throws:
ClassNotFoundException
-
getClassFromType
public final Class<?> getClassFromType(Class<?> expectedType, String codebase) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getClassFromType
public final Class<?> getClassFromType(String url) throws ClassNotFoundException, MalformedURLException -
toString
-
useFullValueDescription
Checks to see if the FullValueDescription should be retrieved.- Parameters:
clazz
- The type to get description forrepositoryID
- The repository ID- Returns:
- If full description should be retrieved
- Throws:
IOException
- If suids do not match or if the repositoryID is not an RMIValueType.
-
useFullValueDescription
public static boolean useFullValueDescription(Class<?> clazz, ClassInfoCache.ClassInfo cinfo, String repositoryID) throws IOException Checks to see if the FullValueDescription should be retrieved.- Parameters:
clazz
- The type to get description forcinfo
- The ClassInfo for the type.repositoryID
- The repository ID- Returns:
- If full description should be retrieved
- Throws:
IOException
- If suids do not match or if the repositoryID is not an RMIValueType.
-
createHashString
-
createSequenceRepID
Creates a repository ID for a sequence. This is for expert users only as this method assumes the object passed is an array. If passed an object that is not an array, it will produce a rep id for a sequence of zero length. This would be an error.- Parameters:
ser
- The Java object to create a repository ID for- Returns:
- Created repository ID
-
createSequenceRepID
Creates a repository ID for a sequence. This is for expert users only as this method assumes the object passed is an array. If passed an object that is not an array, it will produce a malformed rep id.- Parameters:
clazz
- The Java class to create a repository ID for- Returns:
- Created repository ID
-
createForSpecialCase
-
createForSpecialCase
-
createForSpecialCase
-
createForJavaType
Creates a repository ID for a normal Java Type.- Parameters:
ser
- The Java object to create a repository ID for- Returns:
- Created repository ID
- Throws:
TypeMismatchException
- if ser implements the org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
-
createForJavaType
- Throws:
TypeMismatchException
-
createForJavaType
public static String createForJavaType(Class<?> clz, ClassInfoCache.ClassInfo cinfo) throws TypeMismatchException Creates a repository ID for a normal Java Type.- Parameters:
clz
- The Java class to create a repository ID forcinfo
- ClassInfo; may be null- Returns:
- Created repository ID
- Throws:
TypeMismatchException
- if ser implements the * org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
-
createForIDLType
public static String createForIDLType(Class<?> ser, int major, int minor) throws TypeMismatchException Creates a repository ID for an IDL Java Type.- Parameters:
ser
- The IDL Value object to create a repository ID formajor
- The major version numberminor
- The minor version number- Returns:
- Created repository ID
- Throws:
TypeMismatchException
- if ser does not implement the org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
-
getIdFromHelper
-
createForAnyType
-
createForAnyType
Createa a repository ID for the type if it is either a java type or an IDL type.- Parameters:
type
- The type to create rep. id forcinfo
- The ClassInfo for the type (pre-computed elsewhere to save time)- Returns:
- The rep. id.
-
isAbstractBase
-
isAnyRequired
-
fromHex
-
convertToISOLatin1
Convert strings with illegal IDL identifier characters.Section 5.5.7 of OBV spec.
- Parameters:
name
- String to convert- Returns:
- Converted String
-
convertFromISOLatin1
Convert strings with ISO Latin 1 escape sequences back to original strings.Section 5.5.7 of OBV spec.
-
delete
-
replace
-
computeValueTag
public static int computeValueTag(boolean codeBasePresent, int typeInfo, boolean chunkedEncoding) -
isCodeBasePresent
public static boolean isCodeBasePresent(int value_tag) -
getTypeInfo
public static int getTypeInfo(int value_tag) -
isChunkedEncoding
public static boolean isChunkedEncoding(int value_tag) -
getServerURL
-