When an initial context is being created, the environment property "java.naming.provider.url" should contain a DNS pseudo-URL (see DnsUrl) or a space-separated list of them. Multiple URLs must all have the same domain value. If the property is not set, the default "dns:" is used.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static DnsContext | |
| public static DnsContext | |
| private static String | |
| public Context | getInitialContext(Hashtable<?, ?> env)
Implements javax. Creates an Initial Context for beginning name resolution. |
| public static boolean | |
| private static boolean | |
| private static String[] | |
| private static Context |
| DEFAULT_PORT | back to summary |
|---|---|
| private static final int DEFAULT_PORT | |
| DEFAULT_URL | back to summary |
|---|---|
| private static final String DEFAULT_URL | |
| DnsContextFactory | back to summary |
|---|---|
| public DnsContextFactory() | |
| constructProviderUrl | back to summary |
|---|---|
| private static String constructProviderUrl(String domain, String[] servers) | |
| getContext | back to summary |
|---|---|
| public static DnsContext getContext(String domain, String[] servers, Hashtable<?, ?> env) throws NamingException | |
| getContext | back to summary |
|---|---|
| public static DnsContext getContext(String domain, DnsUrl[] urls, Hashtable<?, ?> env) throws NamingException | |
| getInitCtxUrl | back to summary |
|---|---|
| private static String getInitCtxUrl(Hashtable<?, ?> env) | |
| getInitialContext | back to summary |
|---|---|
| public Context getInitialContext(Hashtable<?, ?> env) throws NamingException Implements javax. Doc from javax. Creates an Initial Context for beginning name resolution.
Special requirements of this context are supplied
using The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.
| |
| platformServersAvailable | back to summary |
|---|---|
| public static boolean platformServersAvailable() | |
| platformServersUsed | back to summary |
|---|---|
| private static boolean platformServersUsed(DnsUrl[] urls) | |
| serversForUrls | back to summary |
|---|---|
| private static String[] serversForUrls(DnsUrl[] urls) throws NamingException | |
| urlToContext | back to summary |
|---|---|
| private static Context urlToContext(String url, Hashtable<?, ?> env) throws NamingException | |