Additional top-level classes in compilation unit: CT, BaseNameClassPairEnumeration, NameClassPairEnumeration, BindingEnumeration.
Modifier and Type | Field and Description |
---|---|
private static final int | |
private boolean | |
private static final boolean | |
private static final int | |
private static final int | |
pack-priv DnsName | |
pack-priv Hashtable | |
private boolean | |
private static final String | |
private static final String | |
private CT | |
pack-priv static final NameParser | |
private boolean | |
private boolean | |
private static final String | |
private Resolver | |
private int | |
private static final String | |
private String[] | |
private int | |
private static final ZoneNode |
Access | Constructor and Description |
---|---|
public | DnsContext(String domain, String[] servers, Hashtable<?, ?> environment)
Returns a DNS context for a given domain and servers. |
pack-priv | |
private |
ANY | back to summary |
---|---|
private static final int ANY |
authoritative | back to summary |
---|---|
private boolean authoritative |
debug | back to summary |
---|---|
private static final boolean debug |
DEFAULT_INIT_TIMEOUT | back to summary |
---|---|
private static final int DEFAULT_INIT_TIMEOUT |
DEFAULT_RETRIES | back to summary |
---|---|
private static final int DEFAULT_RETRIES |
domain | back to summary |
---|---|
pack-priv DnsName domain |
environment | back to summary |
---|---|
pack-priv Hashtable<Object, Object> environment |
envShared | back to summary |
---|---|
private boolean envShared |
INIT_TIMEOUT | back to summary |
---|---|
private static final String INIT_TIMEOUT |
LOOKUP_ATTR | back to summary |
---|---|
private static final String LOOKUP_ATTR |
lookupCT | back to summary |
---|---|
private CT lookupCT |
nameParser | back to summary |
---|---|
pack-priv static final NameParser nameParser |
parentIsDns | back to summary |
---|---|
private boolean parentIsDns |
recursion | back to summary |
---|---|
private boolean recursion |
RECURSION | back to summary |
---|---|
private static final String RECURSION |
resolver | back to summary |
---|---|
private Resolver resolver |
retries | back to summary |
---|---|
private int retries |
RETRIES | back to summary |
---|---|
private static final String RETRIES |
servers | back to summary |
---|---|
private String[] servers |
timeout | back to summary |
---|---|
private int timeout |
zoneTree | back to summary |
---|---|
private static final ZoneNode zoneTree |
DnsContext | back to summary |
---|---|
public DnsContext(String domain, String[] servers, Hashtable<?, ?> environment) throws NamingException Returns a DNS context for a given domain and servers. Each server is of the form "server[:port]". IPv6 literal host names include delimiting brackets. There must be at least one server. The environment must not be null; it is cloned before being stored.
|
DnsContext | back to summary |
---|---|
pack-priv DnsContext(DnsContext ctx, DnsName domain) |
DnsContext | back to summary |
---|---|
private DnsContext(DnsContext ctx) |
addToEnvironment | back to summary |
---|---|
public Object addToEnvironment(String propName, Object propVal) throws NamingException Implements javax. Doc from javax. Adds a new environment property to the environment of this context. If the property already exists, its value is overwritten. See class description for more details on environment properties.
|
attrIdsToClassesAndTypes | back to summary |
---|---|
private static CT[] attrIdsToClassesAndTypes(String[] attrIds) throws InvalidAttributeIdentifierException |
c_bind | back to summary |
---|---|
public void c_bind(Name name, Object obj, Continuation cont) throws NamingException |
c_bind | back to summary |
---|---|
public void c_bind(Name name, Object obj, Attributes attrs, Continuation cont) throws NamingException Implements abstract com. |
c_createSubcontext | back to summary |
---|---|
public Context c_createSubcontext(Name name, Continuation cont) throws NamingException Overrides com. |
c_createSubcontext | back to summary |
---|---|
public DirContext c_createSubcontext(Name name, Attributes attrs, Continuation cont) throws NamingException Implements abstract com. |
c_destroySubcontext | back to summary |
---|---|
public void c_destroySubcontext(Name name, Continuation cont) throws NamingException Overrides com. |
c_getAttributes | back to summary |
---|---|
public Attributes c_getAttributes(Name name, String[] attrIds, Continuation cont) throws NamingException Implements abstract com. |
c_getNameParser | back to summary |
---|---|
public NameParser c_getNameParser(Name name, Continuation cont) throws NamingException Overrides com. |
c_getSchema | back to summary |
---|---|
public DirContext c_getSchema(Name name, Continuation cont) throws NamingException Implements abstract com. |
c_getSchemaClassDefinition | back to summary |
---|---|
public DirContext c_getSchemaClassDefinition(Name name, Continuation cont) throws NamingException Implements abstract com. |
c_list | back to summary |
---|---|
public NamingEnumeration |
c_listBindings | back to summary |
---|---|
public NamingEnumeration Overrides com. |
c_lookup | back to summary |
---|---|
public Object c_lookup(Name name, Continuation cont) throws NamingException |
c_lookupLink | back to summary |
---|---|
public Object c_lookupLink(Name name, Continuation cont) throws NamingException Overrides com. |
c_modifyAttributes | back to summary |
---|---|
public void c_modifyAttributes(Name name, int mod_op, Attributes attrs, Continuation cont) throws NamingException Implements abstract com. |
c_modifyAttributes | back to summary |
---|---|
public void c_modifyAttributes(Name name, ModificationItem[] mods, Continuation cont) throws NamingException Implements abstract com. |
c_rebind | back to summary |
---|---|
public void c_rebind(Name name, Object obj, Continuation cont) throws NamingException |
c_rebind | back to summary |
---|---|
public void c_rebind(Name name, Object obj, Attributes attrs, Continuation cont) throws NamingException Implements abstract com. |
c_rename | back to summary |
---|---|
public void c_rename(Name oldname, Name newname, Continuation cont) throws NamingException |
c_search | back to summary |
---|---|
public NamingEnumeration Implements abstract com. |
c_search | back to summary |
---|---|
public NamingEnumeration Implements abstract com. |
c_search | back to summary |
---|---|
public NamingEnumeration Implements abstract com. |
c_unbind | back to summary |
---|---|
public void c_unbind(Name name, Continuation cont) throws NamingException |
classAndTypeMatch | back to summary |
---|---|
private static boolean classAndTypeMatch(int rrclass, int rrtype, CT[] cts) |
close | back to summary |
---|---|
public void close() Implements javax. Doc from javax. Closes this context. This method releases this context's resources immediately, instead of waiting for them to be released automatically by the garbage collector. This method is idempotent: invoking it on a context that has already been closed has no effect. Invoking any other method on a closed context is not allowed, and results in undefined behaviour. |
composeName | back to summary |
---|---|
public Name composeName(Name name, Name prefix) throws NamingException Overrides com. Implements javax. Doc from javax. Composes the name of this context with a name relative to
this context.
Given a name ( For example, if this context is named "wiz.com" relative to the initial context, then composeName("east", "wiz.com")might return "east.wiz.com" .
If instead this context is named "org/research", then
composeName("user/jane", "org/research")might return "org/research/user/jane" while
composeName("user/jane", "research")returns "research/user/jane" .
|
dprint | back to summary |
---|---|
private static final void dprint(String msg) |
fromAttrId | back to summary |
---|---|
private static CT fromAttrId(String attrId) throws InvalidAttributeIdentifierException |
fullyQualify | back to summary |
---|---|
pack-priv DnsName fullyQualify(Name name) throws NamingException |
getClassAndTypeToQuery | back to summary |
---|---|
private static CT getClassAndTypeToQuery(CT[] cts) |
getEnvironment | back to summary |
---|---|
public Hashtable Implements javax. Doc from javax. Retrieves the environment in effect for this context. See class description for more details on environment properties. The caller should not make any changes to the object returned:
their effect on the context is undefined.
The environment of this context may be changed using
|
getLookupCT | back to summary |
---|---|
private CT getLookupCT(String attrId) throws InvalidAttributeIdentifierException |
getNameInNamespace | back to summary |
---|---|
public String getNameInNamespace() Implements javax. Doc from javax. Retrieves the full name of this context within its own namespace. Many naming services have a notion of a "full name" for objects
in their respective namespaces. For example, an LDAP entry has
a distinguished name, and a DNS record has a fully qualified name.
This method allows the client application to retrieve this name.
The string returned by this method is not a JNDI composite name
and should not be passed directly to context methods.
In naming systems for which the notion of full name does not
make sense,
|
getNameNode | back to summary |
---|---|
private NameNode getNameNode(DnsName fqdn) throws NamingException |
getResolver | back to summary |
---|---|
private synchronized Resolver getResolver() throws NamingException |
initFromEnvironment | back to summary |
---|---|
private void initFromEnvironment() throws InvalidAttributeIdentifierException |
isZoneCurrent | back to summary |
---|---|
private boolean isZoneCurrent(ZoneNode znode, DnsName zone) throws NamingException |
p_getEnvironment | back to summary |
---|---|
protected Hashtable Overrides com. Doc from com. A cheap way of getting the environment. Default implementation is NOT cheap because it simply calls getEnvironment(), which most implementations clone before returning. Subclass should ALWAYS override this with the cheapest possible way. The toolkit knows to clone when necessary.
|
populateZone | back to summary |
---|---|
private NameNode populateZone(ZoneNode znode, DnsName zone) throws NamingException |
removeFromEnvironment | back to summary |
---|---|
public Object removeFromEnvironment(String propName) throws NamingException Implements javax. Doc from javax. Removes an environment property from the environment of this context. See class description for more details on environment properties.
|
rrsToAttrs | back to summary |
---|---|
private static Attributes rrsToAttrs(ResourceRecords rrs, CT[] cts) |
setProviderUrl | back to summary |
---|---|
pack-priv void setProviderUrl(String url) |
toAttrId | back to summary |
---|---|
private static String toAttrId(int rrclass, int rrtype) |