org.apache.avalon.excalibur.naming
クラス AbstractURLContext

java.lang.Object
  |
  +--org.apache.avalon.excalibur.naming.AbstractContext
        |
        +--org.apache.avalon.excalibur.naming.AbstractURLContext
すべての実装インタフェース:
javax.naming.Context, javax.naming.NameParser

public abstract class AbstractURLContext
extends AbstractContext
implements javax.naming.NameParser

Abstract JNDI Context that can be inherited from to provide a particular type of Context.

バージョン:
$Revision: 1.4 $
作成者:
Peter Donald

フィールドの概要
protected  java.lang.String m_scheme
           
 
インタフェース 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
 
コンストラクタの概要
AbstractURLContext(java.lang.String scheme, java.util.Hashtable environment)
           
 
メソッドの概要
protected  void bind(javax.naming.Name name, java.lang.Object object, boolean rebind)
          Helper method to bind
 javax.naming.Context createSubcontext(javax.naming.Name name)
          Create a Subcontext.
 void destroySubcontext(javax.naming.Name name)
           
protected  javax.naming.spi.ResolveResult getBaseURLContext(javax.naming.Name name, java.util.Hashtable environment)
           
protected  int getEndIndexOfURLPart(java.lang.String name, int index)
          Find end index of url part in string.
 java.lang.String getNameInNamespace()
           
protected  javax.naming.NameParser getNameParser()
           
 javax.naming.NamingEnumeration list(javax.naming.Name name)
          Enumerates the names bound in the named context.
 javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
          Enumerates the names bound in the named context, along with the objects bound to them.
 java.lang.Object lookup(javax.naming.Name name)
          Get the object named.
protected abstract  javax.naming.Context newContext(java.lang.String urlPart)
          Return a new instance of the base context for a URL.
 javax.naming.Name parse(java.lang.String name)
           
 void unbind(javax.naming.Name name)
          Unbind a object from a name.
 
クラス org.apache.avalon.excalibur.naming.AbstractContext から継承したメソッド
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, destroySubcontext, getEnvironment, getLeafName, getNameParser, getNameParser, getPathName, getRawEnvironment, isSelf, list, listBindings, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

m_scheme

protected final java.lang.String m_scheme
コンストラクタの詳細

AbstractURLContext

public AbstractURLContext(java.lang.String scheme,
                          java.util.Hashtable environment)
メソッドの詳細

parse

public javax.naming.Name parse(java.lang.String name)
                        throws javax.naming.NamingException
定義:
インタフェース javax.naming.NameParser 内の parse

getNameParser

protected javax.naming.NameParser getNameParser()
                                         throws javax.naming.NamingException
オーバーライド:
クラス AbstractContext 内の getNameParser

bind

protected void bind(javax.naming.Name name,
                    java.lang.Object object,
                    boolean rebind)
             throws javax.naming.NamingException
Helper method to bind
オーバーライド:
クラス AbstractContext 内の bind

createSubcontext

public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
Create a Subcontext.
パラメータ:
name - the name of subcontext
戻り値:
the created context
例外:
javax.naming.NamingException - if an error occurs (ie context exists, badly formated name etc)

destroySubcontext

public void destroySubcontext(javax.naming.Name name)
                       throws javax.naming.NamingException

getNameInNamespace

public java.lang.String getNameInNamespace()
                                    throws javax.naming.NamingException

list

public javax.naming.NamingEnumeration list(javax.naming.Name name)
                                    throws javax.naming.NamingException
Enumerates the names bound in the named context.
パラメータ:
name - the name of the context
戻り値:
the enumeration
例外:
javax.naming.NamingException - if an error occurs

listBindings

public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
                                            throws javax.naming.NamingException
Enumerates the names bound in the named context, along with the objects bound to them.
パラメータ:
name - the name of the context
戻り値:
the enumeration
例外:
javax.naming.NamingException - if an error occurs

lookup

public java.lang.Object lookup(javax.naming.Name name)
                        throws javax.naming.NamingException
Get the object named.
パラメータ:
name - the name
戻り値:
the object
例外:
javax.naming.NamingException - if an error occurs (ie object name is inavlid or unbound)

unbind

public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
Unbind a object from a name.
パラメータ:
name - the name
例外:
javax.naming.NamingException - if an error occurs

getBaseURLContext

protected javax.naming.spi.ResolveResult getBaseURLContext(javax.naming.Name name,
                                                           java.util.Hashtable environment)
                                                    throws javax.naming.NamingException

getEndIndexOfURLPart

protected int getEndIndexOfURLPart(java.lang.String name,
                                   int index)
                            throws javax.naming.NamingException
Find end index of url part in string. Default implementation looks for //.../[name-part] ///[name-part] //... (no name part) [name-part]
パラメータ:
name - the name
index - the index where "scheme:" ends
戻り値:
the index where url ends
例外:
javax.naming.NamingException - if an error occurs

newContext

protected abstract javax.naming.Context newContext(java.lang.String urlPart)
                                            throws javax.naming.NamingException
Return a new instance of the base context for a URL. This must be implemented in particular URLContext.
パラメータ:
urlPart - the part of url string not including "scheme:"
戻り値:
a base URLContext for urlPart
例外:
javax.naming.NamingException - if an error occurs


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."