Package com.sun.jndi.url.iiop
Class iiopURLContext
java.lang.Object
com.sun.jndi.url.iiop.GenericURLContext
com.sun.jndi.url.iiop.iiopURLContext
- All Implemented Interfaces:
Context
An IIOP URL context.
- Author:
- Rosanna Lee
-
Field Summary
Fields inherited from class com.sun.jndi.url.iiop.GenericURLContext
myEnvFields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES -
Method Summary
Modifier and TypeMethodDescriptionprotected ResolveResultgetRootURLContext(String name, Hashtable<?, ?> env) Resolves 'name' into a target context with remaining name.protected NamegetURLSuffix(String prefix, String url) Return the suffix of an "iiop", "iiopname", or "corbaname" url.Methods inherited from class com.sun.jndi.url.iiop.GenericURLContext
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getContinuationContext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getURLPrefix, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind, urlEquals
-
Method Details
-
getRootURLContext
Resolves 'name' into a target context with remaining name. It only resolves the hostname/port number. The remaining name contains the rest of the name found in the URL. For example, with a iiop URL "iiop://localhost:900/rest/of/name", this method resolves "iiop://localhost:900/" to the "NameService" context on for the ORB at 'localhost' on port 900, and returns as the remaining name "rest/of/name".- Specified by:
getRootURLContextin classGenericURLContext- Throws:
NamingException
-
getURLSuffix
Return the suffix of an "iiop", "iiopname", or "corbaname" url. prefix parameter is ignored.- Overrides:
getURLSuffixin classGenericURLContext- Throws:
NamingException
-