org.eclipse.jetty.jndi.java
类 javaRootURLContext

java.lang.Object
  继承者 org.eclipse.jetty.jndi.java.javaRootURLContext
所有已实现的接口:
Context

public class javaRootURLContext
extends Object
implements Context

javaRootURLContext

This is the root of the java: url namespace

Notes

Thanks to Rickard Oberg for the idea of binding an ObjectFactory at "comp".

Usage


字段摘要
protected static NameParser __javaNameParser
           
protected static NamingContext __nameRoot
           
protected  Hashtable _env
           
static String URL_PREFIX
           
 
从接口 javax.naming.Context 继承的字段
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
构造方法摘要
javaRootURLContext(Hashtable env)
          Creates a new javaRootURLContext instance.
 
方法摘要
 Object addToEnvironment(String propName, Object propVal)
           
 void bind(Name name, Object obj)
           
 void bind(String name, Object obj)
           
 void close()
           
 Name composeName(Name name, Name prefix)
           
 String composeName(String name, String prefix)
           
 Context createSubcontext(Name name)
           
 Context createSubcontext(String name)
           
 void destroySubcontext(Name name)
           
 void destroySubcontext(String name)
           
 Hashtable getEnvironment()
           
 String getNameInNamespace()
           
 NameParser getNameParser(Name name)
           
 NameParser getNameParser(String name)
           
static NamingContext getRoot()
           
 NamingEnumeration list(Name name)
           
 NamingEnumeration list(String name)
           
 NamingEnumeration listBindings(Name name)
           
 NamingEnumeration listBindings(String name)
           
 Object lookup(Name name)
           
 Object lookup(String name)
           
 Object lookupLink(Name name)
           
 Object lookupLink(String name)
           
 void rebind(Name name, Object obj)
           
 void rebind(String name, Object obj)
           
 Object removeFromEnvironment(String propName)
           
 void rename(Name oldName, Name newName)
           
 void rename(String oldStr, String newStr)
           
protected  Name stripProtocol(Name name)
           
protected  String stripProtocol(String name)
           
 void unbind(Name name)
           
 void unbind(String name)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

URL_PREFIX

public static final String URL_PREFIX
另请参见:
常量字段值

_env

protected Hashtable _env

__nameRoot

protected static NamingContext __nameRoot

__javaNameParser

protected static NameParser __javaNameParser
构造方法详细信息

javaRootURLContext

public javaRootURLContext(Hashtable env)
Creates a new javaRootURLContext instance.

参数:
env - a Hashtable value
方法详细信息

lookup

public Object lookup(Name name)
              throws NamingException
指定者:
接口 Context 中的 lookup
抛出:
NamingException

lookup

public Object lookup(String name)
              throws NamingException
指定者:
接口 Context 中的 lookup
抛出:
NamingException

bind

public void bind(Name name,
                 Object obj)
          throws NamingException
指定者:
接口 Context 中的 bind
抛出:
NamingException

bind

public void bind(String name,
                 Object obj)
          throws NamingException
指定者:
接口 Context 中的 bind
抛出:
NamingException

unbind

public void unbind(String name)
            throws NamingException
指定者:
接口 Context 中的 unbind
抛出:
NamingException

unbind

public void unbind(Name name)
            throws NamingException
指定者:
接口 Context 中的 unbind
抛出:
NamingException

rename

public void rename(String oldStr,
                   String newStr)
            throws NamingException
指定者:
接口 Context 中的 rename
抛出:
NamingException

rename

public void rename(Name oldName,
                   Name newName)
            throws NamingException
指定者:
接口 Context 中的 rename
抛出:
NamingException

rebind

public void rebind(Name name,
                   Object obj)
            throws NamingException
指定者:
接口 Context 中的 rebind
抛出:
NamingException

rebind

public void rebind(String name,
                   Object obj)
            throws NamingException
指定者:
接口 Context 中的 rebind
抛出:
NamingException

lookupLink

public Object lookupLink(Name name)
                  throws NamingException
指定者:
接口 Context 中的 lookupLink
抛出:
NamingException

lookupLink

public Object lookupLink(String name)
                  throws NamingException
指定者:
接口 Context 中的 lookupLink
抛出:
NamingException

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException
指定者:
接口 Context 中的 createSubcontext
抛出:
NamingException

createSubcontext

public Context createSubcontext(String name)
                         throws NamingException
指定者:
接口 Context 中的 createSubcontext
抛出:
NamingException

destroySubcontext

public void destroySubcontext(Name name)
                       throws NamingException
指定者:
接口 Context 中的 destroySubcontext
抛出:
NamingException

destroySubcontext

public void destroySubcontext(String name)
                       throws NamingException
指定者:
接口 Context 中的 destroySubcontext
抛出:
NamingException

list

public NamingEnumeration list(Name name)
                       throws NamingException
指定者:
接口 Context 中的 list
抛出:
NamingException

list

public NamingEnumeration list(String name)
                       throws NamingException
指定者:
接口 Context 中的 list
抛出:
NamingException

listBindings

public NamingEnumeration listBindings(Name name)
                               throws NamingException
指定者:
接口 Context 中的 listBindings
抛出:
NamingException

listBindings

public NamingEnumeration listBindings(String name)
                               throws NamingException
指定者:
接口 Context 中的 listBindings
抛出:
NamingException

composeName

public Name composeName(Name name,
                        Name prefix)
                 throws NamingException
指定者:
接口 Context 中的 composeName
抛出:
NamingException

composeName

public String composeName(String name,
                          String prefix)
                   throws NamingException
指定者:
接口 Context 中的 composeName
抛出:
NamingException

close

public void close()
           throws NamingException
指定者:
接口 Context 中的 close
抛出:
NamingException

getNameInNamespace

public String getNameInNamespace()
                          throws NamingException
指定者:
接口 Context 中的 getNameInNamespace
抛出:
NamingException

getNameParser

public NameParser getNameParser(Name name)
                         throws NamingException
指定者:
接口 Context 中的 getNameParser
抛出:
NamingException

getNameParser

public NameParser getNameParser(String name)
                         throws NamingException
指定者:
接口 Context 中的 getNameParser
抛出:
NamingException

addToEnvironment

public Object addToEnvironment(String propName,
                               Object propVal)
                        throws NamingException
指定者:
接口 Context 中的 addToEnvironment
抛出:
NamingException

removeFromEnvironment

public Object removeFromEnvironment(String propName)
                             throws NamingException
指定者:
接口 Context 中的 removeFromEnvironment
抛出:
NamingException

getEnvironment

public Hashtable getEnvironment()
指定者:
接口 Context 中的 getEnvironment

getRoot

public static NamingContext getRoot()

stripProtocol

protected Name stripProtocol(Name name)
                      throws NamingException
抛出:
NamingException

stripProtocol

protected String stripProtocol(String name)


Copyright © 2013. All Rights Reserved.