| 1 | /* Copyright (C) 2000 Free Software Foundation
|
|---|
| 2 |
|
|---|
| 3 | This file is part of libgcj.
|
|---|
| 4 |
|
|---|
| 5 | This software is copyrighted work licensed under the terms of the
|
|---|
| 6 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|---|
| 7 | details. */
|
|---|
| 8 |
|
|---|
| 9 | package javax.naming;
|
|---|
| 10 |
|
|---|
| 11 | import java.util.Hashtable;
|
|---|
| 12 |
|
|---|
| 13 | public interface Context
|
|---|
| 14 | {
|
|---|
| 15 | // Property with name of the inital context factory to use
|
|---|
| 16 | public static final String INITIAL_CONTEXT_FACTORY
|
|---|
| 17 | = "java.naming.factory.initial";
|
|---|
| 18 |
|
|---|
| 19 | // Property with colon-separated list of object factories to use.
|
|---|
| 20 | public static final String OBJECT_FACTORIES
|
|---|
| 21 | = "java.naming.factory.object";
|
|---|
| 22 |
|
|---|
| 23 | // Property with colon-separated list of state factories to use.
|
|---|
| 24 | public static final String STATE_FACTORIES
|
|---|
| 25 | = "java.naming.factory.state";
|
|---|
| 26 |
|
|---|
| 27 | // Property with colon-separated list of package prefixes to use.
|
|---|
| 28 | public static final String URL_PKG_PREFIXES
|
|---|
| 29 | = "java.naming.factory.url.pkgs";
|
|---|
| 30 |
|
|---|
| 31 | // Property with URL specifying configuration for the service
|
|---|
| 32 | // provider to use.
|
|---|
| 33 | public static final String PROVIDER_URL
|
|---|
| 34 | = "java.naming.provider.url";
|
|---|
| 35 |
|
|---|
| 36 | // Property with the DNS host and domain names to use.
|
|---|
| 37 | public static final String DNS_URL
|
|---|
| 38 | = "java.naming.dns.url";
|
|---|
| 39 |
|
|---|
| 40 | // Property with the authoritativeness of the service requested.
|
|---|
| 41 | public static final String AUTHORITATIVE
|
|---|
| 42 | = "java.naming.authoritative";
|
|---|
| 43 |
|
|---|
| 44 | // Property with the batch size to use when returning data via the
|
|---|
| 45 | // service's protocol.
|
|---|
| 46 | public static final String BATCHSIZE
|
|---|
| 47 | = "java.naming.batchsize";
|
|---|
| 48 |
|
|---|
| 49 | // Property defining how referrals encountered by the service
|
|---|
| 50 | // provider are to be processed.
|
|---|
| 51 | public static final String REFERRAL
|
|---|
| 52 | = "java.naming.referral";
|
|---|
| 53 |
|
|---|
| 54 | // Property specifying the security protocol to use.
|
|---|
| 55 | public static final String SECURITY_PROTOCOL
|
|---|
| 56 | = "java.naming.security.protocol";
|
|---|
| 57 |
|
|---|
| 58 | // Property specifying the security level to use.
|
|---|
| 59 | public static final String SECURITY_AUTHENTICATION
|
|---|
| 60 | = "java.naming.security.authentication";
|
|---|
| 61 |
|
|---|
| 62 | // Property for the identity of the principal for authenticating
|
|---|
| 63 | // the caller to the service.
|
|---|
| 64 | public static final String SECURITY_PRINCIPAL
|
|---|
| 65 | = "java.naming.security.principal";
|
|---|
| 66 |
|
|---|
| 67 | // Property specifying the credentials of the principal for
|
|---|
| 68 | // authenticating the caller to the service.
|
|---|
| 69 | public static final String SECURITY_CREDENTIALS
|
|---|
| 70 | = "java.naming.security.credentials";
|
|---|
| 71 |
|
|---|
| 72 | // Property for specifying the preferred language to use with the
|
|---|
| 73 | // service.
|
|---|
| 74 | public static final String LANGUAGE
|
|---|
| 75 | = "java.naming.language";
|
|---|
| 76 |
|
|---|
| 77 | // Property for the initial context constructor to use when searching
|
|---|
| 78 | // for other properties.
|
|---|
| 79 | public static final String APPLET
|
|---|
| 80 | = "java.naming.applet";
|
|---|
| 81 |
|
|---|
| 82 | public void bind (Name name, Object obj) throws NamingException;
|
|---|
| 83 | public void bind (String name, Object obj) throws NamingException;
|
|---|
| 84 |
|
|---|
| 85 | public Object lookup (Name name) throws NamingException;
|
|---|
| 86 | public Object lookup (String name) throws NamingException;
|
|---|
| 87 |
|
|---|
| 88 | public void rebind (Name name, Object obj) throws NamingException;
|
|---|
| 89 | public void rebind (String name, Object obj) throws NamingException;
|
|---|
| 90 |
|
|---|
| 91 | public void unbind (Name name) throws NamingException;
|
|---|
| 92 | public void unbind (String name) throws NamingException;
|
|---|
| 93 |
|
|---|
| 94 | public void rename (Name oldName, Name newName) throws NamingException;
|
|---|
| 95 | public void rename (String oldName, String newName) throws NamingException;
|
|---|
| 96 |
|
|---|
| 97 | public NamingEnumeration list (Name name) throws NamingException;
|
|---|
| 98 | public NamingEnumeration list (String name) throws NamingException;
|
|---|
| 99 |
|
|---|
| 100 | public NamingEnumeration listBindings (Name name) throws NamingException;
|
|---|
| 101 | public NamingEnumeration listBindings (String name) throws NamingException;
|
|---|
| 102 |
|
|---|
| 103 | public void destroySubcontext (Name name) throws NamingException;
|
|---|
| 104 | public void destroySubcontext (String name) throws NamingException;
|
|---|
| 105 |
|
|---|
| 106 | public Context createSubcontext (Name name) throws NamingException;
|
|---|
| 107 | public Context createSubcontext (String name) throws NamingException;
|
|---|
| 108 |
|
|---|
| 109 | public Object lookupLink (Name name) throws NamingException;
|
|---|
| 110 | public Object lookupLink (String name) throws NamingException;
|
|---|
| 111 |
|
|---|
| 112 | public NameParser getNameParser (Name name) throws NamingException;
|
|---|
| 113 | public NameParser getNameParser (String name) throws NamingException;
|
|---|
| 114 |
|
|---|
| 115 | public Name composeName (Name name, Name prefix) throws NamingException;
|
|---|
| 116 | public String composeName (String name,
|
|---|
| 117 | String prefix) throws NamingException;
|
|---|
| 118 |
|
|---|
| 119 | public Object addToEnvironment (String propName,
|
|---|
| 120 | Object propVal) throws NamingException;
|
|---|
| 121 |
|
|---|
| 122 | public Object removeFromEnvironment (String propName) throws NamingException;
|
|---|
| 123 |
|
|---|
| 124 | public Hashtable getEnvironment () throws NamingException;
|
|---|
| 125 |
|
|---|
| 126 | public void close () throws NamingException;
|
|---|
| 127 |
|
|---|
| 128 | public String getNameInNamespace () throws NamingException;
|
|---|
| 129 | }
|
|---|
| 130 |
|
|---|