1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 import java
.util
.Hashtable
;
13 public interface Context
15 // Property with name of the inital context factory to use
16 public static final String INITIAL_CONTEXT_FACTORY
17 = "java.naming.factory.initial";
19 // Property with colon-separated list of object factories to use.
20 public static final String OBJECT_FACTORIES
21 = "java.naming.factory.object";
23 // Property with colon-separated list of state factories to use.
24 public static final String STATE_FACTORIES
25 = "java.naming.factory.state";
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";
31 // Property with URL specifying configuration for the service
33 public static final String PROVIDER_URL
34 = "java.naming.provider.url";
36 // Property with the DNS host and domain names to use.
37 public static final String DNS_URL
38 = "java.naming.dns.url";
40 // Property with the authoritativeness of the service requested.
41 public static final String AUTHORITATIVE
42 = "java.naming.authoritative";
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";
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";
54 // Property specifying the security protocol to use.
55 public static final String SECURITY_PROTOCOL
56 = "java.naming.security.protocol";
58 // Property specifying the security level to use.
59 public static final String SECURITY_AUTHENTICATION
60 = "java.naming.security.authentication";
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";
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";
72 // Property for specifying the preferred language to use with the
74 public static final String LANGUAGE
75 = "java.naming.language";
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";
82 public void bind (Name name
, Object obj
) throws NamingException
;
83 public void bind (String name
, Object obj
) throws NamingException
;
85 public Object
lookup (Name name
) throws NamingException
;
86 public Object
lookup (String name
) throws NamingException
;
88 public void rebind (Name name
, Object obj
) throws NamingException
;
89 public void rebind (String name
, Object obj
) throws NamingException
;
91 public void unbind (Name name
) throws NamingException
;
92 public void unbind (String name
) throws NamingException
;
94 public void rename (Name oldName
, Name newName
) throws NamingException
;
95 public void rename (String oldName
, String newName
) throws NamingException
;
97 public NamingEnumeration
list (Name name
) throws NamingException
;
98 public NamingEnumeration
list (String name
) throws NamingException
;
100 public NamingEnumeration
listBindings (Name name
) throws NamingException
;
101 public NamingEnumeration
listBindings (String name
) throws NamingException
;
103 public void destroySubcontext (Name name
) throws NamingException
;
104 public void destroySubcontext (String name
) throws NamingException
;
106 public Context
createSubcontext (Name name
) throws NamingException
;
107 public Context
createSubcontext (String name
) throws NamingException
;
109 public Object
lookupLink (Name name
) throws NamingException
;
110 public Object
lookupLink (String name
) throws NamingException
;
112 public NameParser
getNameParser (Name name
) throws NamingException
;
113 public NameParser
getNameParser (String name
) throws NamingException
;
115 public Name
composeName (Name name
, Name prefix
) throws NamingException
;
116 public String
composeName (String name
,
117 String prefix
) throws NamingException
;
119 public Object
addToEnvironment (String propName
,
120 Object propVal
) throws NamingException
;
122 public Object
removeFromEnvironment (String propName
) throws NamingException
;
124 public Hashtable
getEnvironment () throws NamingException
;
126 public void close () throws NamingException
;
128 public String
getNameInNamespace () throws NamingException
;