< prev index next >

src/jdk.naming.dns/share/classes/com/sun/jndi/dns/DnsContext.java

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.jndi.dns;
  27 
  28 
  29 import java.util.Enumeration;
  30 import java.util.Hashtable;
  31 
  32 import javax.naming.*;
  33 import javax.naming.directory.*;
  34 import javax.naming.spi.DirectoryManager;
  35 
  36 import com.sun.jndi.toolkit.ctx.*;

  37 
  38 
  39 /**
  40  * A DnsContext is a directory context representing a DNS node.
  41  *
  42  * @author Scott Seligman
  43  */
  44 
  45 
  46 public class DnsContext extends ComponentDirContext {
  47 
  48     DnsName domain;             // fully-qualified domain name of this context,
  49                                 // with a root (empty) label at position 0
  50     Hashtable<Object,Object> environment;
  51     private boolean envShared;  // true if environment is possibly shared
  52                                 // and so must be copied on write
  53     private boolean parentIsDns;        // was this DnsContext created by
  54                                         // another?  see composeName()
  55     private String[] servers;
  56     private Resolver resolver;




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.jndi.dns;
  27 
  28 
  29 import java.util.Enumeration;
  30 import java.util.Hashtable;
  31 
  32 import javax.naming.*;
  33 import javax.naming.directory.*;
  34 import javax.naming.spi.DirectoryManager;
  35 
  36 import com.sun.jndi.toolkit.ctx.*;
  37 import com.sun.jndi.toolkit.ctx.Continuation;
  38 
  39 
  40 /**
  41  * A DnsContext is a directory context representing a DNS node.
  42  *
  43  * @author Scott Seligman
  44  */
  45 
  46 
  47 public class DnsContext extends ComponentDirContext {
  48 
  49     DnsName domain;             // fully-qualified domain name of this context,
  50                                 // with a root (empty) label at position 0
  51     Hashtable<Object,Object> environment;
  52     private boolean envShared;  // true if environment is possibly shared
  53                                 // and so must be copied on write
  54     private boolean parentIsDns;        // was this DnsContext created by
  55                                         // another?  see composeName()
  56     private String[] servers;
  57     private Resolver resolver;


< prev index next >