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

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

?? jndi-fs.html

?? fscontext-1_2-beta3.zip
?? HTML
字號:
<HTML><HEAD><title> JNDI/File System Service Provider</title></HEAD><BODY BGCOLOR="#FFFFFF" TEXT=#000000 LINK=#0000ff VLINK=#000077ALINK=#ff0000><hr SIZE=3 NOSHADE WIDTH="100%"><center><h1>File System Service Provider for the<br>Java Naming and 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">Types of Objects and how Objects are Named</A></LI><LI><A HREF="#API">API Mapping</A></LI></UL><P><HR><P> <A NAME="INTRO"><H2>Introduction</H2><p>JNDI offers a universal naming API and a standardized way to storeobjects in a namespace. The file system service provider supportsthese features for a local or networked file system. Its purpose is two-fold:<ul><li> Allow clients to traverse the file system namespace using JNDI's    context interface.</li><li> Allow clients to store Java objects in the file system.</li></ul>These two separate functions are actually handled by two differentproviders (i.e., classes). The first class handles accessing the filesystem and can be used independently of the second. The second classhandles storage of Java objects and is used in conjunction with thefirst (i.e., it is a subclass of the first).<p>This document describes the features of the file system service providerand contains details of how JNDI is mapped to the file system.<hr><p> <A NAME="CONF"><H2>Conformance</H2><p>The file system service provider accesses the file system using the<tt>java.io.File</tt> class. The file system can be local ornetworked--the only requirement is that it is accessible using the<tt>java.io.File</tt> class.  Use of the <tt>java.io.File</tt> class makesthe service provider platform independent. Therefore, the file systemservice provider conforms to the file system of whatever platform it isexecuting on.<p>The file system service provider treats each directory as a contextand each file as a <tt>java.io.File</tt> object stored in the context representingthe file's parent directory.<p>Java objects can also be stored in file system. Each object isstored in an invisible file as a set of properties that the serviceprovider uses to re-construct the object. The file has the sameformat used by <tt>java.util.Properties</tt>. Although the file can beviewed and edited, the properties within have little meaning outside ofthe service provider.<hr><p><A NAME="PROP"><H2>Environment Properties</H2><p>   The following JNDI environment properties are relevant to the filesystem service provider. See the <a href=http://java.sun.com//products/jndi/1.2/javadoc/javax/naming/InitialContext.html#ENVIRONMENT>JNDI documentation</a>for a description of how properties are initialized using the environment properties, system properties, applet parameters, and resource files.<p><b><pre>java.naming.factory.initial</pre></b><blockquote>    This environment property is used to select the file system     service provider. It's not actually used by the provider itself.     It specifies the class name of the initial context factory for     the provider. It can have one of two values. The first choice    names the class responsible for file system access.<p>    For example:<p><blockquote><pre>env.put(Context.INITIAL_CONTEXT_FACTORY,     "com.sun.jndi.fscontext.FSContextFactory");</pre></blockquote><p>    The second choice names the class--a subclass of <tt>FSContextFactory</tt>--which     adds the ability to lookup and store Java objects in the file system.<p>    For example:<p><blockquote><pre>env.put(Context.INITIAL_CONTEXT_FACTORY,     "com.sun.jndi.fscontext.RefFSContextFactory");</pre></blockquote><p>    This environment property must be set if you are using the file system    provider for the initial context. The only exception is if you supply    only URLs to the initial context, in which case, you don't need    to specify this property. See the     <a href=#TYPE>Types of Objects and how Objects are Named</a> section    for details.   </blockquote>   <b><pre>java.naming.provider.url</pre></b>    <blockquote>        Specifies the file to be used as the root context. It must be a     file URL representing a directory in the file system.<p>    For example:<p><blockquote><pre>file:///home/kafka</pre></blockquote><p>    this URL will cause the provider to use the directory named <em>kafka</em>    in the directory <em>home</em> in the root directory as the base context.     Performing a <tt>list()</tt> on the initial context would be equivalent to     typing the UNIX command <em>ls</em> in the directory <em>/home/kafka</em> directory.    If this property is not set, it defaults to the root of the local file system.</blockquote><b><pre>java.naming.factory.state</pre></b><blockquote>    A colon-separated list of the fully qualified class names    of state factory classes used to get an object's state for storing    given the object itself. You can use this mechanism to transform    an object into forms that the files system service provider supports.    The file system service provider supports storing <tt>Reference</tt>     and <tt>Referenceable</tt> objects.     See <a href="http://java.sun.com/products/jndi/1.2/javadoc/javax/naming/spi/NamingManager.html#getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><tt>javax.naming.spi.NamingManager.getStateToBind()</tt></a> for details.</blockquote><b><pre>java.naming.factory.object</pre></b><blockquote>    A colon-separated list of the fully qualified class names    of object factory classes for transforming objects read from the file system.    You can use this mechanism to transform an object into forms expected    by the application. See<a href="http://java.sun.com/products/jndi/1.2/javadoc/javax/naming/spi/NamingManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><tt>javax.naming.spi.NamingManager.getObjectInstance()</tt></a> for details.</blockquote><hr><p><A NAME="TYPE"><H2>Types of Objects and how Objects are Named</H2><p><b>Names</b><p>Contexts and objects are named using the filename syntax of the local ornetworked file system of the underlying platform. When naming objects,use either the <tt>javax.naming.Name</tt> classor construct strings with <tt>java.io.File.separator</tt>.  This will ensure that the code willwork on any file system, regardless of its filename syntax.<p>A context in the file system service provider is simply adirectory. Calling <tt>list()</tt> on a context is equivalent to issuingthe UNIX command <em>ls</em> on the corresponding directory. The initial contextis the directory specified in the<tt>java.naming.provider.url</tt> property. Files are represented as objects ofclass <tt>java.io.File</tt> bound to the context representing the file'sparent directory.  All objects are named relative to the context on whichyou make a call.<p>For example, if the local file system looks like this:<p><pre>                             (root)                                |                              home                                |                              kafka                                |                      ---------------------                      |                   |                metamorphosis          castle                                          |                                  -----------------                                  |       |       |                                 ch1     ch2     ch3</pre><p>Then, an initial context could be created using the following code:<p><blockquote><pre>Hashtable env = new Hashtable(11);env.put(Context.INITIAL_CONTEXT_FACTORY,        "com.sun.jndi.fscontext.RefFSContextFactory");env.put(Context.PROVIDER_URL,        "file:///home/kafka");Context initCtx = new InitialContext(env);</pre></blockquote><p>The following call on the initial context would cause the contextrepresenting "metamorphosis" to be returned:<p><blockquote><pre>Context ctx = initCtx.lookup("metamorphosis");</pre></blockquote><p>The following call on the initial context would return the <tt>File</tt> objectrepresenting <em>ch1</em> to be returned:<p><blockquote><pre>Context ctx = initCtx.lookup("castle" + File.separator + "ch1");</pre></blockquote><p>Java objects can be stored in the file system under the following conditions:<ul><li>The initial factory is <tt>RefFSContextFactory</tt> (not    <tt>FSContextFactory</tt>)</li><li>The object is of type <tt><a href=http://java.sun.com/products/jndi/1.2/javadoc/javax/naming/Reference.html>java.naming.Reference</a></tt> or implements<tt><a href=http://java.sun.com/products/jndi/1.2/javadoc/javax/naming/Referenceable.html>java.naming.Referenceable</a></tt></ul>Here is an example of how to store a <tt>Referenceable</tt> object:<blockquote><pre>class MyObject implements Referenceable {	...}MyObject obj = new MyObject();initCtx.bind("metamorphosis/myBoundObject", obj);</pre></blockquote><p>To retrieve an object, the object factory listed in the <tt>Reference</tt>must be made available, for example, in the classpath of the application.<p><blockquote><pre>MyObject obj = initCtx.lookup("metamorphosis/myBoundObject");</pre></blockquote><p><b>URLS</b><p>You can supply a "file" URL to the initial context. For example,<p><blockquote><pre>InitialContext ictx = new InitialContext();Object helloRef = ictx.lookup("file:/c:/tmp/somefile");</pre></blockquote><hr><p><A NAME="API"><H2>API Mapping</H2><p>This section describes how the various JNDI calls are mapped to thefile system.<b><pre>addToEnvironment()</pre></b>    <blockquote>    Adds the given property and value to the context's environment.    </blockquote><b><pre>bind()</pre></b>    <blockquote>    Binds the given object to the named context. The object must be a    <tt>Reference</tt> or implement the <tt>Referenceable</tt> interface.     The bound object is stored  as a set of properties in a file called     <em>.bindings</em>. Its parent     directory is the directory corresponding to the context in which     the object is bound. This only works with <tt>RefFSContext</tt>.    <tt>NamingManager.getStateToBind()</tt> is called to allow the object    to be transformed into <tt>Reference</tt> and <tt>Referenceable</tt>    objects so that it can be bound.    </blockquote>    <b><pre>close()</pre></b>        <blockquote>    Releases the context's internal data structures.    </blockquote>    <b><pre>composeName()</pre></b>    <blockquote>    Concatenates two names.    </blockquote><b><pre>createSubcontext()</pre></b>    <blockquote>    Creates a subcontext by creating the corresponding directory in the     file system.    </blockquote><b><pre>destroySubcontext()</pre></b>    <blockquote>    Destroys a subcontext by deleting the corresponding directory in the     file system.   </blockquote>    <b><pre>getEnvironment()</pre></b>    <blockquote>      Returns the context's environment.    </blockquote><b><pre>getNameInNamespace()</pre></b>    <blockquote>    Returns the absolute filename of the directory in the file system.    </blockquote><b><pre>getNameParser()</pre></b>    <blockquote>    Returns a name parser for file system names.    </blockquote>    <b><pre>lookup()lookupLink()</pre></b>    <blockquote>    Returns the object named relative to the context. The object is of type    <tt>Context</tt> if the name refers to a directory, a <tt>File</tt>     if the name refers to a file), or of an arbitrary type if that was previously     bound in the file system.    <tt>NamingManager.getObjectInstance()</tt>    is called before the object is returned in case the application    or user has supplied object factories.    </blockquote><b><pre>list()listBindings()</pre></b>    <blockquote>    Lists the contents of the named context (i.e. directory). The contents    will consist of other contexts (directories), files, and objects    previously bound to the named context.    <tt>NamingManager.getObjectInstance()</tt>    is called on the objects returned in <tt>listBindings</tt>    before they are returned in case the application    or user has supplied object factories.    </blockquote><b><pre>removeFromEnvironment()</pre></b>    <blockquote>    Removes the named property from the context's environment.    </blockquote>    <b><pre>rebind()</pre></b>    <blockquote>    Binds the given object to the file system, overwriting any previous    object. If an object was previously bound to the given name, it is    overwritten. The supplied object must be a <tt>Reference</tt> or implement    the <tt>Referenceable</tt> interface. Like <tt>bind()</tt>,    <tt>NamingManager.getStateToBind()</tt> is called     to allow the object to be transformed into <tt>Reference</tt> and    <tt>Referenceable</tt> objects.    </blockquote>    <b><pre>rename()</pre></b>    <blockquote>    Renames an object. Renaming a context or file results in a corresponding    change to its name in the file system. Arbitrary objects can be renamed    too.    </blockquote>    <b><pre>unbind()</pre></b><blockquote>    Removes the given name and object from the file system.</blockquote><HR SIZE=3 NOSHADE WIDTH=100%><br><i>Copyright &copy; 1999 Sun Microsystems, Inc., All Rights Reserved.</i>    </body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品一区二区三区| 偷拍亚洲欧洲综合| 亚洲精品视频在线| 美女视频黄 久久| 99在线精品视频| 日韩女优视频免费观看| 国产精品国产三级国产aⅴ原创| 日韩精品成人一区二区三区| 色欧美乱欧美15图片| 国产日韩欧美一区二区三区乱码| 五月天丁香久久| 91首页免费视频| 中文字幕精品一区| 国产精品亚洲成人| 日韩你懂的在线播放| 亚洲r级在线视频| 91美女在线看| 亚洲丝袜制服诱惑| 风间由美中文字幕在线看视频国产欧美| 欧美高清视频不卡网| 一区二区三区免费网站| www.亚洲国产| 国产丝袜美腿一区二区三区| 麻豆精品精品国产自在97香蕉| 欧美亚洲一区三区| 一区二区免费在线播放| 色综合咪咪久久| 中文字幕一区二区日韩精品绯色| 国模无码大尺度一区二区三区| 日韩精品影音先锋| 免费美女久久99| 日韩欧美亚洲国产精品字幕久久久| 亚洲国产欧美一区二区三区丁香婷| 91原创在线视频| 亚洲男人的天堂网| 91豆麻精品91久久久久久| 中文字幕一区二区三区不卡 | 亚洲丝袜自拍清纯另类| 成人精品国产一区二区4080| 国产精品久久久久天堂| 色婷婷久久久综合中文字幕| 亚洲三级理论片| 91九色02白丝porn| 亚洲成人精品一区| 日韩欧美一级片| 久久精品理论片| 亚洲国产高清aⅴ视频| 99久久国产综合精品色伊| 一区二区三区中文免费| 欧美另类久久久品| 精品无人区卡一卡二卡三乱码免费卡 | 韩国v欧美v亚洲v日本v| 国产欧美一区二区精品性| 97se亚洲国产综合在线| 亚洲综合一二区| 精品粉嫩aⅴ一区二区三区四区| 懂色中文一区二区在线播放| 一区二区三区影院| 日韩午夜电影在线观看| 福利视频网站一区二区三区| 一区二区三区中文字幕电影| 91麻豆精品国产91久久久| 国产老女人精品毛片久久| 中文字幕欧美一| 欧美日韩精品一区二区| 国产一区二区在线观看免费| 最新国产精品久久精品| 欧美久久久一区| 粉嫩久久99精品久久久久久夜| 一区二区在线看| 欧美刺激午夜性久久久久久久| 大白屁股一区二区视频| 日韩精品一二三四| 国产精品久久久久久久久快鸭| 在线播放国产精品二区一二区四区| 国产一区二区三区高清播放| 亚洲高清一区二区三区| 中文字幕的久久| 日韩三级电影网址| 在线免费观看日韩欧美| 国产成人午夜99999| 午夜av区久久| 亚洲欧美日韩在线| 国产日韩欧美不卡在线| 欧美一区在线视频| 色吧成人激情小说| 粉嫩高潮美女一区二区三区| 日韩精品一级二级| 国产最新精品免费| 亚洲大尺度视频在线观看| 欧美极品aⅴ影院| 日韩一区和二区| 精品视频在线视频| 99久久夜色精品国产网站| 经典三级在线一区| 天堂资源在线中文精品| 伊人开心综合网| 亚洲欧美乱综合| 国产精品初高中害羞小美女文| 久久综合九色综合欧美就去吻| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产一区二区三区av电影| 日本中文字幕一区二区有限公司| 一区二区三区中文字幕| 亚洲色图一区二区三区| 国产精品理伦片| 欧美激情在线一区二区| 国产欧美一二三区| 久久久久久一级片| 久久综合久久综合久久| 久久亚洲综合色一区二区三区| 日韩一级免费一区| 日韩欧美你懂的| 欧美va天堂va视频va在线| 欧美一区二区精品| 精品国产麻豆免费人成网站| 久久免费午夜影院| 久久精品人人做人人爽97| 欧美国产欧美亚州国产日韩mv天天看完整| 2欧美一区二区三区在线观看视频| 精品国产91久久久久久久妲己| 日韩午夜在线播放| 2021久久国产精品不只是精品| 欧美va亚洲va在线观看蝴蝶网| 久久久综合精品| 国产精品久久看| 一区二区三区.www| 青娱乐精品视频| 国产精品一区专区| caoporen国产精品视频| 色成年激情久久综合| 欧美日韩在线综合| 日韩免费在线观看| 欧美国产精品一区二区| 国产精品盗摄一区二区三区| 玉米视频成人免费看| 午夜天堂影视香蕉久久| 麻豆精品视频在线| 成人深夜在线观看| 日本国产一区二区| 欧美一级久久久| 欧美国产日韩在线观看| 一区二区三区久久| 久久精品国产久精国产| 成人免费的视频| 欧美视频一区在线观看| 精品国产网站在线观看| 国产精品美女一区二区在线观看| 亚洲情趣在线观看| 欧美系列一区二区| 日韩一级片网站| 亚洲人成网站在线| 免费精品视频在线| 91丝袜国产在线播放| 日韩欧美一级二级三级| 亚洲色图清纯唯美| 精品亚洲成a人在线观看| 色综合色综合色综合色综合色综合| 91麻豆精品久久久久蜜臀| 日本一区二区三区高清不卡| 午夜成人免费电影| 99久久精品国产网站| 日韩精品在线一区| 亚洲超碰97人人做人人爱| 国产成人av一区二区| 538prom精品视频线放| 中文子幕无线码一区tr| 蜜桃视频在线观看一区| 日本韩国视频一区二区| 久久久91精品国产一区二区精品 | 久久99国产精品尤物| 在线看不卡av| 国产精品久久久久婷婷二区次| 九九视频精品免费| 欧美三级在线视频| 自拍偷拍亚洲综合| 国产精品99久久不卡二区| 日韩一区二区三区观看| 亚洲电影第三页| 色视频成人在线观看免| 国产精品久久国产精麻豆99网站| 麻豆成人免费电影| 欧美日产在线观看| 亚洲国产sm捆绑调教视频 | 国产aⅴ综合色| 久久综合久久综合久久综合| 久久精品国产亚洲a| 欧美一区在线视频| 午夜激情一区二区三区| 欧美性大战久久| 亚洲自拍偷拍麻豆| 欧美日韩中字一区| 亚洲福中文字幕伊人影院| 色视频一区二区| 亚洲国产精品一区二区久久恐怖片 | 这里只有精品视频在线观看| 亚洲永久免费av| 欧美午夜不卡在线观看免费| 亚洲午夜免费视频| 欧美精品在线视频|