Class iiopURLContext

java.lang.Object
com.sun.jndi.url.iiop.GenericURLContext
com.sun.jndi.url.iiop.iiopURLContext
All Implemented Interfaces:
Context

public class iiopURLContext extends GenericURLContext
An IIOP URL context.
Author:
Rosanna Lee
  • Method Details

    • getRootURLContext

      protected ResolveResult getRootURLContext(String name, Hashtable<?,?> env) throws NamingException
      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:
      getRootURLContext in class GenericURLContext
      Throws:
      NamingException
    • getURLSuffix

      protected Name getURLSuffix(String prefix, String url) throws NamingException
      Return the suffix of an "iiop", "iiopname", or "corbaname" url. prefix parameter is ignored.
      Overrides:
      getURLSuffix in class GenericURLContext
      Throws:
      NamingException