亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jndi-dns.html

?? J[2]EE JavaJNDI examples
?? HTML
字號:
<HTML><HEAD><title>JNDI/DNS Service Provider</title></HEAD><BODY BGCOLOR="#FFFFFF" TEXT=#000000 LINK=#0000ff VLINK=#000077ALINK=#ff0000><hr SIZE=3 NOSHADE WIDTH="100%"><center><h1>DNS Service Provider for the <br>Java Naming Directory Interface<font size=4><sup>TM</sup></font> (JNDI)</h1></center><hr SIZE=3 NOSHADE WIDTH="100%"><P><FONT SIZE=-1>Please send feedback to<a href="mailto:jndi@java.sun.com">jndi@java.sun.com</a></FONT><P><P><I>Table of Contents</I><UL><LI><A HREF="#INTRO">Introduction</A></LI><LI> <A HREF="#CONF">Conformance</A></LI><LI><A HREF="#PROP">Environment Properties</A></LI><LI><A HREF="#TYPE">Mapping DNS Content to JNDI</A></LI><LI><A HREF="#URL">DNS Pseudo-URLs</A></LI><LI><A HREF="#API">API Mapping</A></LI><LI><A HREF="#USAGE">Usage Examples</A></LI><LI><A HREF="#SEC">Security Considerations</A></LI><li><A HREF="#FED">Federation</A></LI></UL><P><HR><P> <A NAME="INTRO"><H2>Introduction</H2><p>The DNS service provider allows JNDI applications to accessinformation stored in the internet Domain Name System.The provider presents the DNS namespace as a tree of JNDI directorycontexts, and DNS resource records as JNDI attributes.<p>This document describes the features of the DNS service provider,and contains details of how DNS is mapped onto JNDI.<p><hr><p><A NAME="CONF"><H2>Conformance</H2><p>The DNS service provider supports the Domain Name System as described in <a href=http://www.ietf.org/rfc/rfc1034.txt> RFC 1034</a> and<a href=http://www.ietf.org/rfc/rfc1035.txt> RFC 1035</a>.It currently supports the following resource record types and classes:<br><blockquote><table><tr valign=top><td>  <table border>  <tr><td> <em>Type</em>		</td>      <td> <em>Where Specified</em>	</td></tr>  <tr><td> A	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> NS	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> CNAME</td> <td align=center> RFC 1035 </td></tr>  <tr><td> SOA	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> PTR	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> MX	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> TXT	</td> <td align=center> RFC 1035 </td></tr>  <tr><td> HINFO</td> <td align=center> RFC 1035 </td></tr>  <tr><td> AAAA	</td> <td align=center> RFC 1886 </td></tr>  <tr><td> NAPTR</td> <td align=center> RFC 2168 </td></tr>  <tr><td> SRV	</td> <td align=center> RFC 2782 </td></tr>  </table></td><td> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td><td>  <table border>  <tr><td> <em>Class</em>		</td>      <td> <em>Where Specified</em>	</td></tr>  <tr><td> IN </td> <td align=center> RFC 1035 </td></tr>  <tr><td> HS </td> <td align=center> RFC 1035 </td></tr>  </table></td></tr></table></blockquote>Each lookup is initially performed using UDP.  If the response is toolong to be returned in a UDP packet without being truncated, thelookup is repeated using TCP.<p><hr><p><A NAME="PROP"><H2>Environment Properties</H2><p>The following JNDI environment properties are relevant to the DNSservice provider.  See the <a href=http://java.sun.com/j2se/1.3/docs/api/javax/naming/InitialContext.html#ENVIRONMENT>JNDI documentation</a>for a  description of how properties are initialized using the initialcontext constructor, system properties, applet parameters, and resource files.<b><pre>java.naming.authoritative</pre></b><blockquote>    This property is used to specify whether all responses must be    authoritative. If its value is <tt>"true"</tt>, only authoritative    responses are accepted from DNS servers; otherwise, all responses    are accepted.    If this property has not been set, the default is <tt>"false"</tt>.    Here is an example that specifies that all responses must be authoritative.<blockquote><pre>env.put(Context.AUTHORITATIVE, "true");</pre></blockquote>    Note that some information might be made unavailable when you request    that only authoritative responses be returned    because the DNS protocol does not provide a way to request authoritative     information. For example, the DNS service provider might have retrieved    nonauthoritative data as the result of a query and     is subsequently forced to discard it because only authoritative data     may be returned.</blockquote><b><pre>java.naming.factory.initial</pre></b><blockquote>    This property is used to select the DNS service provider as    the initial context.  It is not used by the provider itself.    It specifies the class name of the initial context factory for    the provider, and may be set as in the following example:<blockquote><pre>env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");</pre></blockquote></blockquote><b><pre>java.naming.factory.object</pre></b><blockquote>    This property contains    a colon-separated list of the fully-qualified class names    of object factories for transforming objects read from DNS.    This mechanism is used to transform objects into forms more useful    to the application.  See    <a href="http://java.sun.com/j2se/1.3/docs/api/javax/naming/spi/DirectoryManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, javax.naming.directory.Attributes)">    <tt>DirectoryManager.getObjectInstance()</tt></a> for details.</blockquote><b><pre>java.naming.provider.url</pre></b><blockquote>    This property specifies the host name and port of the DNS server used by    the initial DNS context, as well the initial context's domain name.    For details on the URL format see <a href="#URL">DNS Pseudo-URLs</a> below.    <p>    For example:<blockquote><pre>env.put(Context.PROVIDER_URL, "dns://server1.sun.com/java.sun.com");</pre></blockquote>    will cause the provider to use the DNS server at server1.sun.com,    and set the initial context's domain name to java.sun.com.    If this property is not set, it defaults to "dns:" (all defaults    as described in the <strong>DNS Pseudo-URLs</strong> section are used).    <p>    Multiple DNS servers may be specified by setting this property    to a space-separated list of URLs.  Each of the servers is contacted    in turn until one of them responds.    Since the initial context has only a single domain name, if multiple    URLs are listed then each must contain the same domain part.  For    example:<blockquote><pre>env.put(Context.PROVIDER_URL,    "dns://server1.sun.com/java.sun.com dns://server2.sun.com/java.sun.com");</pre></blockquote></blockquote><b><pre>com.sun.jndi.dns.lookup.attr</pre></b><blockquote>    Before JNDI invokes an object factory on a DNS context, it by    default reads and passes to the factory any internet TXT attributes    of the context.    This property, if set, names an alternate attribute identifier to    use.  See <a href=#TYPE> Mapping DNS Content to JNDI</a> below    for information on the format of attribute identifiers.</blockquote><b><pre>com.sun.jndi.dns.recursion</pre></b><blockquote>    This property is used to specify that recursion is disallowed on DNS queries.    If this property has not been set or if it has been set to <tt>"true"</tt>,     recursion is allowed; otherwise, recursion is disallowed.    Here is an example that specifies that recursion on DNS queries is to    be disallowed. <blockquote><pre>env.put("com.sun.jndi.dns.recursion", "false");</pre></blockquote></blockquote><hr><p><A NAME="TYPE"><H2>Mapping DNS Content to JNDI</H2>The DNS service provider maps DNS names, nodes, and resource records ontoJNDI data types as follows.<h4>Names</h4>DNS domain names are represented by JNDI compound <tt>Name</tt>objects with right-to-left, dot-separated syntax, and withbackslash&nbsp;(<tt>\</tt>) as the escape character.  Names arecase-insensitive.  They do not include trailing dots, with one exception:when an empty compound name is known to refer to the root domain, it may berepresented as "<tt>.</tt>".<h4>Nodes and Resource Records</h4>A DNS node is represented by a <tt>DirContext</tt> object.The resource records of the node are represented by attributes ofthe context.  For example, if the DNS node sun.com contains an Arecord with the address 192.9.49.33 and an MX record with thedata "10 sun.com", the corresponding JNDI context will have an attributewith identifier "<tt>A</tt>" and string value "192.9.49.33" and an attributewith identifier "<tt>MX</tt>" and string value "10 sun.com".<p> Multiple records of the same type are represented as multi-valuedattributes.  Records of unsupported types are represented byattributes with numeric identifiers and with byte arrays as values.<h4>Attribute Identifiers</h4><p> DNS resource record class and type names are mapped onto JNDIattribute identifiers.  If a record is in the internet class,the corresponding attribute ID is simply the record's type name.If the type is an unsupported one, its integer value is used instead.If the record is not in the internet class, the class name (or integerclass value) is prepended to the attribute ID, separated by a space.For example, the attribute identifier "<tt>AAAA</tt>" represents an IPv6address record, and the attribute identifier "<tt>HS 97</tt>" represents aresource record of type 97 in the Hesiod class.<p> <em>Superclass</em> attribute identifiers are also defined.These may be useful when querying records using the<tt>DirContext.getAttributes()</tt> method.  If an attribute namehas "<tt>*</tt>" in place of a type name (or class name), itrepresents records of any type (or class).  For example, the attributeidentifier "<tt>IN&nbsp;*</tt>" may be passed to the<tt>getAttributes()</tt> method to find all internet class records.The attribute identifier "<tt>*&nbsp;*</tt>" representsrecords of any class or type.<p>Attribute identifiers are case-insensitive.<p><hr><p><A NAME="URL"><H2>DNS Pseudo-URLs</H2>A URL-like notation is used to represent a DNS server, port, and domain in the <tt>java.naming.provider.url</tt> property and in URL names passedto the initial context.  The format of this pseudo-URL is:<pre>   dns:[//host[:port]][/domain]</pre>The host and port indicate the DNS server to use.The host defaults to "localhost", and the port defaults to 53.The domain is the DNS domain name of the context, and is not necessarilyrelated to the domain of the server; it defaults to "." (the root domain).<p><hr><p><A NAME="API"><H2>API Mapping</H2>The DNS service provider implements the <tt>DirContext</tt> interface.Methods are mapped onto DNS operations as described below.Methods not listed are not supported.<b><pre>addToEnvironment()</pre></b>    <blockquote>    Adds a new property to the environment, or changes an existing property.    </blockquote>    <b><pre>close()</pre></b>    <blockquote>    Releases internal data structures.    </blockquote>    <b><pre>composeName()</pre></b>    <blockquote>    Composes two names.    </blockquote>    <b><pre>getAttributes()</pre></b>    <blockquote>      Returns attributes representing DNS resource records.    </blockquote>    <b><pre>getEnvironment()</pre></b>    <blockquote>      Returns the environment properties associated with this context.    </blockquote><b><pre>getNameInNamespace()</pre></b>    <blockquote>    Returns the fully-qualified domain name of this node.     </blockquote><b><pre>getNameParser()</pre></b>    <blockquote>    Returns a name parser for DNS domain names.    </blockquote><b><pre>lookup()lookupLink()</pre></b>    <blockquote>    Returns a <tt>DirContext</tt> that represents the named node.    The <tt>DirectoryManager.getObjectInstance()</tt> method is invoked    on the object before it is returned, in case the application    or user has supplied object factories.    </blockquote><b><pre>list()listBindings()</pre></b>    <blockquote>    The listing of the DNS namespace is    implemented using zone transfers, so these operations are    potentially compute- and network-intensive, and they may not be    supported by all DNS installations.    The <tt>DirectoryManager.getObjectInstance()</tt> method is invoked    on an object before it is returned, in case the application    or user has supplied object factories; no attributes are passed in.    </blockquote><b><pre>removeFromEnvironment()</pre></b>    <blockquote>    Removes a property from the environment.    </blockquote><hr><p><A NAME="USAGE"><H2>Usage Examples</H2><h4>Example 1</h4>In this example we create an initial context representing the sun.com domain,then read the IP addresses (the A records) of two hosts in that domain.<blockquote><pre>Hashtable env = new Hashtable();env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");env.put("java.naming.provider.url",    "dns://server1.sun.com/sun.com");DirContext ictx = new InitialDirContext(env);Attributes attrs1 = ictx.getAttributes("host1", new String[] {"A"});Attributes attrs2 = ictx.getAttributes("host2", new String[] {"A"});</pre></blockquote><h4>Example 2</h4>Instead of using the properties as above, we may pass a DNS pseudo-URLto the methods of the default initial context.  In this example we read theMX record of a host in the sun.com domain.<blockquote><pre>DirContext ictx = new InitialDirContext();Attributes attrs3 = ictx.getAttributes("dns://server1.sun.com/host3.sun.com",                                       new String[] {"MX"});</pre></blockquote><hr><p><A NAME="SEC"><h2>Security Considerations</h2>When a security manager has been installed,the DNS service provider and the application using it must both begranted the following permissions:<p><pre>permission java.net.SocketPermission "host[:port]", "connect,accept";</pre>for each host/port identified in the <tt>java.naming.provider.url</tt>property, in URL string names supplied to context methods, and inobject references.<p><hr><p><A NAME="FED"><H2>Federation</H2>The DNS service provider treats composite names as <em>strongly separated</em>.That is, it processes the first component of the composite name as a DNS domain name and the rest of the components as names in the <a href=http://java.sun.com/j2se/1.3/docs/guide/jndi/spec/spi/jndispi.fm.html#1003689>next naming system(s)</a> (<i>nns</i>).  The implicit next naming system is determined dynamically.<p>For example, here is an example that liststhe root of the next naming system federated beyond a DNS context,and one that looks up a name using a multi-component composite name:<blockquote><pre>// List the root of the nns.// Note the use of a trailing slash to indicate traversal into the nns.NamingEnumeration enum = ctx.list("java.sun.com/");// A composite name lookup.Object obj = ctx.lookup("sun.com/some/x/y/z");</pre></blockquote>        <p><HR SIZE=3 NOSHADE WIDTH=100%><br><i>Copyright &copy; 2001 Sun Microsystems, Inc., All Rights Reserved.</i> </body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av一区二区三区| 亚洲精品一区二区精华| 精品黑人一区二区三区久久| 国产色产综合产在线视频| 一区二区三区视频在线观看| 激情小说亚洲一区| 在线观看不卡一区| 久久久久久久久岛国免费| 一区二区三区精品视频| 懂色av中文字幕一区二区三区| 欧美精品在线视频| 一区二区三区四区国产精品| 国产一区二区在线影院| 在线播放中文一区| 一区二区三区在线视频观看| 欧美午夜精品一区二区三区| 久久蜜桃一区二区| 日韩成人一区二区| 欧美系列亚洲系列| 亚洲欧美日韩电影| 不卡av在线网| 日本一区二区不卡视频| 韩国精品一区二区| 欧美成人vps| 久久国产综合精品| 日韩一级完整毛片| 老色鬼精品视频在线观看播放| 色拍拍在线精品视频8848| 国产精品毛片大码女人| 国产成人午夜电影网| 精品国产免费一区二区三区香蕉| 亚洲一区二区三区三| 99re亚洲国产精品| 国产精品萝li| 不卡的av电影| 亚洲人成7777| 在线视频一区二区三| 亚洲国产成人porn| 欧美日韩激情一区| 五月婷婷久久丁香| 日韩三区在线观看| 国产一区二区精品久久| 久久亚洲精品小早川怜子| 狠狠色狠狠色合久久伊人| 亚洲最大的成人av| 色女孩综合影院| 一区二区三区国产豹纹内裤在线| 91激情五月电影| 一区二区三区自拍| 欧美一区二区三区精品| 国产在线不卡一卡二卡三卡四卡| 精品不卡在线视频| 成人av免费在线| 一区二区三区不卡视频| 欧美日韩激情在线| 国产在线一区二区综合免费视频| 久久精品亚洲精品国产欧美 | 国产精品国产三级国产专播品爱网 | 美女脱光内衣内裤视频久久网站 | 国产馆精品极品| 综合欧美亚洲日本| 欧美日韩精品欧美日韩精品| 老司机免费视频一区二区| 国产精品女人毛片| 欧美日韩电影一区| 成人在线视频一区二区| 亚洲综合清纯丝袜自拍| 精品国产伦一区二区三区观看方式 | 日韩av中文在线观看| 精品免费视频一区二区| 成人精品电影在线观看| 亚洲一区二区欧美日韩| 日韩欧美视频一区| 99视频一区二区三区| 日本不卡的三区四区五区| 26uuuu精品一区二区| 日本韩国欧美在线| 国产成人精品在线看| 亚洲电影在线播放| 国产精品无码永久免费888| 欧美男男青年gay1069videost| 91免费在线播放| 久久91精品国产91久久小草| 中文字幕亚洲成人| 久久午夜羞羞影院免费观看| 欧美在线短视频| 不卡电影一区二区三区| 精品一区二区三区在线观看| 亚洲综合另类小说| 国产精品理伦片| 久久精品人人做人人爽97| 欧美裸体一区二区三区| 色中色一区二区| 国产成人午夜高潮毛片| 精品综合久久久久久8888| 亚洲成va人在线观看| 亚洲欧美日韩一区二区三区在线观看| 26uuu亚洲综合色| 91精品国产aⅴ一区二区| 91久久人澡人人添人人爽欧美| 国产99久久久精品| 国产精品中文字幕日韩精品| 日本aⅴ亚洲精品中文乱码| 一二三四社区欧美黄| 中文字幕制服丝袜一区二区三区| 久久综合一区二区| 欧美tk丨vk视频| 欧美一级高清片| 91精品国产黑色紧身裤美女| 欧美日韩精品欧美日韩精品| 91国偷自产一区二区三区成为亚洲经典 | 中文字幕一区二区三| 欧美激情在线看| 国产精品免费久久久久| 久久女同互慰一区二区三区| 久久夜色精品一区| 国产亚洲一区二区三区| 久久久久久一级片| 久久日一线二线三线suv| 久久伊人中文字幕| 久久久电影一区二区三区| 亚洲精品在线免费播放| 久久亚洲欧美国产精品乐播| 久久一夜天堂av一区二区三区| 久久伊人中文字幕| 国产欧美视频一区二区三区| 欧美经典一区二区| 一色屋精品亚洲香蕉网站| 中文字幕一区二区三区乱码在线| 中文字幕一区二区5566日韩| 亚洲老妇xxxxxx| 亚洲成人午夜电影| 久久精品国产久精国产| 国产91综合网| 99久久精品国产麻豆演员表| 色综合欧美在线| 在线91免费看| 精品1区2区在线观看| 国产精品久久久久aaaa樱花| 亚洲乱码国产乱码精品精小说| 亚洲国产精品精华液网站| 蜜芽一区二区三区| 国产麻豆91精品| 91麻豆免费在线观看| 欧美日韩精品欧美日韩精品| 精品乱人伦一区二区三区| 欧美国产一区二区| 夜夜嗨av一区二区三区四季av| 日韩高清在线一区| 国产成人aaaa| 欧美日本在线看| 久久蜜桃av一区二区天堂 | 国产suv精品一区二区三区| 欧美日韩精品一区二区天天拍小说 | 日韩久久久久久| 中文天堂在线一区| 亚洲不卡av一区二区三区| 国产精品1区2区| 精品视频资源站| 国产欧美精品日韩区二区麻豆天美| 一区二区在线观看免费视频播放| 美国三级日本三级久久99| 91亚洲资源网| 精品福利一二区| 亚洲一二三四久久| 国产成人免费视频网站| 在线播放/欧美激情| 中文字幕一区二区在线观看| 麻豆精品视频在线| 色猫猫国产区一区二在线视频| 精品奇米国产一区二区三区| 一区二区三区在线视频观看| 国产福利91精品| 在线成人午夜影院| 一区二区三区在线观看欧美| 国产精品1024久久| 欧美成人一区二区三区在线观看| 亚洲欧美偷拍另类a∨色屁股| 久久99精品视频| 欧美理论电影在线| 专区另类欧美日韩| 成人性生交大片免费看视频在线 | 91精品国产91久久久久久一区二区 | 亚洲视频小说图片| 成人午夜私人影院| 久久久亚洲午夜电影| 麻豆精品在线观看| 91精品国产一区二区三区蜜臀| 一区二区三区在线看| 色综合网色综合| 亚洲欧洲色图综合| 99久久国产综合色|国产精品| 久久久亚洲精品一区二区三区 | 亚洲人精品一区| 成人综合激情网| 中文在线资源观看网站视频免费不卡| 狠狠色丁香婷综合久久| 久久亚洲二区三区| 国产黄色91视频| 国产精品电影一区二区|