Package com.sun.corba.ee.impl.resolver
Class INSURLOperationImpl
java.lang.Object
com.sun.corba.ee.impl.resolver.INSURLOperationImpl
- All Implemented Interfaces:
Operation
This class provides an Operation that converts from CORBA INS URL strings into
CORBA object references. It will eventually become extensible, but for now it
simply encapsulates the existing implementation. Once the full extensibility
is in place, we want this operation to convert string to INSURL, which has mainly
a public resolver method that returns an object reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INSURLHandlerprivate static final intprivate static final OMGSystemExceptionprivate ORBprivate Objectprivate NamingContextExtprivate static final intprivate static final ORBUtilSystemException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidA utility method to clear the RootNamingContext, if there is an exception in resolving CosNaming:Name from the RootNamingContext,private NamingContextExtThis is required for corbaname: resolution.private ObjectgetIORFromString(String str) This static method takes a Stringified IOR and converts it into IOR object.private ObjectgetIORUsingCorbaloc(INSURL corbalocObject) This is an internal method to get the IOR from the CorbalocURL object.Apply some function to a value and return the result.private ObjectresolveCorbaloc(CorbalocURL theCorbaLocObject) resolves a corbaloc: url that is encapsulated in a CorbalocURL object.private ObjectresolveCorbaname(CorbanameURL theCorbaName) resolves a corbaname: url that is encapsulated in a CorbanameURL object.private ObjectresolveINSURL(INSURL theURLObject)
-
Field Details
-
orb
-
wrapper
-
omgWrapper
-
rootNamingContextExt
-
rootContextCacheLock
-
insURLHandler
-
NIBBLES_PER_BYTE
private static final int NIBBLES_PER_BYTE- See Also:
-
UN_SHIFT
private static final int UN_SHIFT- See Also:
-
-
Constructor Details
-
INSURLOperationImpl
-
-
Method Details
-
getIORFromString
This static method takes a Stringified IOR and converts it into IOR object. It is the caller's responsibility to only pass strings that start with "IOR:". -
operate
Description copied from interface:OperationApply some function to a value and return the result. -
resolveINSURL
-
resolveCorbaloc
resolves a corbaloc: url that is encapsulated in a CorbalocURL object.- Returns:
- the CORBA.Object if resolution is successful
-
resolveCorbaname
resolves a corbaname: url that is encapsulated in a CorbanameURL object.- Returns:
- the CORBA.Object if resolution is successful
-
getIORUsingCorbaloc
This is an internal method to get the IOR from the CorbalocURL object.- Returns:
- the CORBA.Object if resolution is successful
-
getDefaultRootNamingContext
This is required for corbaname: resolution. Currently we are not caching RootNamingContext as the reference to rootNamingContext may not be Persistent in all the implementations. _REVISIT_ to clear the rootNamingContext in case of COMM_FAILURE.- Returns:
- the org.omg.COSNaming.NamingContextExt if resolution is successful
-
clearRootNamingContextCache
private void clearRootNamingContextCache()A utility method to clear the RootNamingContext, if there is an exception in resolving CosNaming:Name from the RootNamingContext,
-