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

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

public class RemoteContext
extends AbstractContext
implements java.io.Serializable

Context that hooks up to a remote source.

バージョン:
$Revision: 1.4 $
作成者:
Peter Donald
関連項目:
直列化された形式

フィールドの概要
static java.lang.String NAMESPACE
           
static java.lang.String NAMESPACE_NAME
           
static java.lang.String NAMING_PROVIDER
           
 
インタフェース 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
 
コンストラクタの概要
RemoteContext()
           
RemoteContext(java.util.Hashtable environment, javax.naming.Name baseName)
           
 
メソッドの概要
protected  void bind(javax.naming.Name name, java.lang.Object object, boolean rebind)
          Helper method to bind
 void close()
          Release resources associated with context.
 javax.naming.Context createSubcontext(javax.naming.Name name)
          Create a Subcontext.
 void destroySubcontext(javax.naming.Name name)
           
protected  void fillInContext(javax.naming.Context object)
           
protected  javax.naming.Name getAbsoluteName(javax.naming.Name name)
           
 java.lang.String getNameInNamespace()
           
protected  javax.naming.NameParser getNameParser()
           
protected  Namespace getNamespace()
           
protected  NamingProvider getProvider()
           
protected  javax.naming.NamingException handleException(java.lang.Exception e)
           
 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.
 void unbind(javax.naming.Name name)
          Unbind a object from a name.
 
クラス org.apache.avalon.excalibur.naming.AbstractContext から継承したメソッド
addToEnvironment, bind, bind, 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
 

フィールドの詳細

NAMESPACE_NAME

public static final java.lang.String NAMESPACE_NAME

NAMESPACE

public static final java.lang.String NAMESPACE

NAMING_PROVIDER

public static final java.lang.String NAMING_PROVIDER
コンストラクタの詳細

RemoteContext

public RemoteContext()

RemoteContext

public RemoteContext(java.util.Hashtable environment,
                     javax.naming.Name baseName)
              throws javax.naming.NamingException
メソッドの詳細

bind

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

close

public void close()
Release resources associated with context.
オーバーライド:
クラス AbstractContext 内の close

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

fillInContext

protected void fillInContext(javax.naming.Context object)
                      throws javax.naming.NamingException

getNamespace

protected Namespace getNamespace()
                          throws javax.naming.NamingException

getProvider

protected NamingProvider getProvider()
                              throws javax.naming.NamingException

getNameParser

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

getAbsoluteName

protected javax.naming.Name getAbsoluteName(javax.naming.Name name)
                                     throws javax.naming.NamingException

handleException

protected javax.naming.NamingException handleException(java.lang.Exception e)


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