APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.jndi.url.rmi

public Class rmiURLContext

extends GenericURLContext
Class Inheritance
Imports
java.net.URI, java.util.Hashtable, .Locale, javax.naming.*, javax.naming.spi.ResolveResult, com.sun.jndi.toolkit.url.GenericURLContext, .Uri.ParseMode, com.sun.jndi.rmi.registry.RegistryContext

An RMI URL context resolves names that are URLs of the form
  rmi://[host][:port][/[object]]
or
  rmi:[/][object]
If an object is specified, the URL resolves to the named object. Otherwise, the URL resolves to the specified RMI registry.
Author
Scott Seligman

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final Uri.ParseMode
public static final Uri.ParseMode
private static final String
Inherited from com.sun.jndi.toolkit.url.GenericURLContext:
myEnv

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ResolveResult
getRootURLContext(String url, Hashtable<?, ?> env)

Implements abstract com.sun.jndi.toolkit.url.GenericURLContext.getRootURLContext.

Resolves the registry portion of "url" to the corresponding RMI registry, and returns the atomic object name as the remaining name.

Inherited from com.sun.jndi.toolkit.url.GenericURLContext:
addToEnvironmentbindbindclosecomposeNamecomposeNamecreateSubcontextcreateSubcontextdestroySubcontextdestroySubcontextgetContinuationContextgetEnvironmentgetNameInNamespacegetNameParsergetNameParsergetURLPrefixgetURLSuffixlistlistlistBindingslistBindingslookuplookuplookupLinklookupLinkrebindrebindremoveFromEnvironmentrenamerenameunbindunbindurlEquals

Field Detail

DEFAULT_PARSE_MODEback to summary
private static final Uri.ParseMode DEFAULT_PARSE_MODE
PARSE_MODEback to summary
public static final Uri.ParseMode PARSE_MODE
PARSE_MODE_PROPback to summary
private static final String PARSE_MODE_PROP

Constructor Detail

rmiURLContextback to summary
public rmiURLContext(Hashtable<?, ?> env)

Method Detail

getRootURLContextback to summary
protected ResolveResult getRootURLContext(String url, Hashtable<?, ?> env) throws NamingException

Implements abstract com.sun.jndi.toolkit.url.GenericURLContext.getRootURLContext.

Resolves the registry portion of "url" to the corresponding RMI registry, and returns the atomic object name as the remaining name.

com.sun.jndi.url.rmi back to summary

public Class rmiURLContext.Parser

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv final Uri.ParseMode
pack-priv String
pack-priv int
pack-priv final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
public String
host()

public Uri.ParseMode
mode()

pack-priv NamingException
public String
public void
private void
private void
private void
public int
port()

public String
url()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hostback to summary
pack-priv String host
modeback to summary
pack-priv final Uri.ParseMode mode
objNameback to summary
pack-priv String objName
portback to summary
pack-priv int port
urlback to summary
pack-priv final String url

Constructor Detail

Parserback to summary
public Parser(String url)
Parserback to summary
public Parser(String url, Uri.ParseMode mode)

Method Detail

acceptsFragmentback to summary
protected boolean acceptsFragment()
hostback to summary
public String host()
modeback to summary
public Uri.ParseMode mode()
newNamingExceptionback to summary
pack-priv NamingException newNamingException(Throwable cause)
objNameback to summary
public String objName()
parseback to summary
public void parse() throws NamingException
parseCompatback to summary
private void parseCompat() throws NamingException
parseLegacyback to summary
private void parseLegacy()
parseStrictback to summary
private void parseStrict() throws NamingException
portback to summary
public int port()
urlback to summary
public String url()