javax.naming

Interface Context

Known Subinterfaces:
DirContext, EventContext, EventDirContext, LdapContext
Known Implementing Classes:
InitialContext, InitialDirContext, InitialLdapContext

public interface Context

Field Summary

static String
APPLET
static String
AUTHORITATIVE
static String
BATCHSIZE
static String
DNS_URL
static String
INITIAL_CONTEXT_FACTORY
static String
LANGUAGE
static String
OBJECT_FACTORIES
static String
PROVIDER_URL
static String
REFERRAL
static String
SECURITY_AUTHENTICATION
static String
SECURITY_CREDENTIALS
static String
SECURITY_PRINCIPAL
static String
SECURITY_PROTOCOL
static String
STATE_FACTORIES
static String
URL_PKG_PREFIXES

Method Summary

Object
addToEnvironment(String propName, Object propVal)
void
bind(String name, Object obj)
void
bind(Name name, Object obj)
void
close()
String
composeName(String name, String prefix)
Name
composeName(Name name, Name prefix)
Context
createSubcontext(String name)
Context
createSubcontext(Name name)
void
destroySubcontext(String name)
void
destroySubcontext(Name name)
Hashtable
getEnvironment()
String
getNameInNamespace()
NameParser
getNameParser(String name)
NameParser
getNameParser(Name name)
NamingEnumeration
list(String name)
NamingEnumeration
list(Name name)
NamingEnumeration
listBindings(String name)
NamingEnumeration
listBindings(Name name)
Object
lookup(String name)
Object
lookup(Name name)
Object
lookupLink(String name)
Object
lookupLink(Name name)
void
rebind(String name, Object obj)
void
rebind(Name name, Object obj)
Object
removeFromEnvironment(String propName)
void
rename(String oldName, String newName)
void
rename(Name oldName, Name newName)
void
unbind(String name)
void
unbind(Name name)

Field Details

APPLET

public static final String APPLET
Field Value:
"java.naming.applet"

AUTHORITATIVE

public static final String AUTHORITATIVE
Field Value:
"java.naming.authoritative"

BATCHSIZE

public static final String BATCHSIZE
Field Value:
"java.naming.batchsize"

DNS_URL

public static final String DNS_URL
Field Value:
"java.naming.dns.url"

INITIAL_CONTEXT_FACTORY

public static final String INITIAL_CONTEXT_FACTORY
Field Value:
"java.naming.factory.initial"

LANGUAGE

public static final String LANGUAGE
Field Value:
"java.naming.language"

OBJECT_FACTORIES

public static final String OBJECT_FACTORIES
Field Value:
"java.naming.factory.object"

PROVIDER_URL

public static final String PROVIDER_URL
Field Value:
"java.naming.provider.url"

REFERRAL

public static final String REFERRAL
Field Value:
"java.naming.referral"

SECURITY_AUTHENTICATION

public static final String SECURITY_AUTHENTICATION
Field Value:
"java.naming.security.authentication"

SECURITY_CREDENTIALS

public static final String SECURITY_CREDENTIALS
Field Value:
"java.naming.security.credentials"

SECURITY_PRINCIPAL

public static final String SECURITY_PRINCIPAL
Field Value:
"java.naming.security.principal"

SECURITY_PROTOCOL

public static final String SECURITY_PROTOCOL
Field Value:
"java.naming.security.protocol"

STATE_FACTORIES

public static final String STATE_FACTORIES
Field Value:
"java.naming.factory.state"

URL_PKG_PREFIXES

public static final String URL_PKG_PREFIXES
Field Value:
"java.naming.factory.url.pkgs"

Method Details

addToEnvironment

public Object addToEnvironment(String propName,
                               Object propVal)
            throws NamingException

bind

public void bind(String name,
                 Object obj)
            throws NamingException

bind

public void bind(Name name,
                 Object obj)
            throws NamingException

close

public void close()
            throws NamingException

composeName

public String composeName(String name,
                          String prefix)
            throws NamingException

composeName

public Name composeName(Name name,
                        Name prefix)
            throws NamingException

createSubcontext

public Context createSubcontext(String name)
            throws NamingException

createSubcontext

public Context createSubcontext(Name name)
            throws NamingException

destroySubcontext

public void destroySubcontext(String name)
            throws NamingException

destroySubcontext

public void destroySubcontext(Name name)
            throws NamingException

getEnvironment

public Hashtable getEnvironment()
            throws NamingException

getNameInNamespace

public String getNameInNamespace()
            throws NamingException

getNameParser

public NameParser getNameParser(String name)
            throws NamingException

getNameParser

public NameParser getNameParser(Name name)
            throws NamingException

list

public NamingEnumeration list(String name)
            throws NamingException

list

public NamingEnumeration list(Name name)
            throws NamingException

listBindings

public NamingEnumeration listBindings(String name)
            throws NamingException

listBindings

public NamingEnumeration listBindings(Name name)
            throws NamingException

lookup

public Object lookup(String name)
            throws NamingException

lookup

public Object lookup(Name name)
            throws NamingException

lookupLink

public Object lookupLink(String name)
            throws NamingException

lookupLink

public Object lookupLink(Name name)
            throws NamingException

rebind

public void rebind(String name,
                   Object obj)
            throws NamingException

rebind

public void rebind(Name name,
                   Object obj)
            throws NamingException

removeFromEnvironment

public Object removeFromEnvironment(String propName)
            throws NamingException

rename

public void rename(String oldName,
                   String newName)
            throws NamingException

rename

public void rename(Name oldName,
                   Name newName)
            throws NamingException

unbind

public void unbind(String name)
            throws NamingException

unbind

public void unbind(Name name)
            throws NamingException

Context.java -- Copyright (C) 2000 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.