OSDN Git Service

Initial jndi check-in
[pf3gnuchains/gcc-fork.git] / libjava / javax / naming / Context.java
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 public interface Context
12 {
13   // Property with name of the inital context factory to use
14   public static final String INITIAL_CONTEXT_FACTORY 
15     = "java.naming.factory.initial";
16
17   // Property with colon-separated list of object factories to use.
18   public static final String OBJECT_FACTORIES
19     = "java.naming.factory.object";
20
21   // Property with colon-separated list of state factories to use.
22   public static final String STATE_FACTORIES
23     = "java.naming.factory.state";
24
25   // Property with colon-separated list of package prefixes to use.
26   public static final String URL_PKG_PREFIXES
27     = "java.naming.factory.url.pkgs";
28
29   // Property with URL specifying configuration for the service
30   // provider to use.
31   public static final String PROVIDER_URL 
32     = "java.naming.provider.url";
33   
34   // Property with the DNS host and domain names to use.
35   public static final String DNS_URL 
36     = "java.naming.dns.url";
37   
38   // Property with the authoritativeness of the service requested.
39   public static final String AUTHORITATIVE 
40     = "java.naming.authoritative";
41   
42   // Property with the batch size to use when returning data via the
43   // service's protocol.
44   public static final String BATCHSIZE
45     = "java.naming.batchsize";
46   
47   // Property defining how referrals encountered by the service
48   // provider are to be processed.
49   public static final String REFERRAL
50     = "java.naming.referral";
51
52   // Property specifying the security protocol to use.
53   public static final String SECURITY_PROTOCOL
54     = "java.naming.security.protocol";
55
56   // Property specifying the security level to use.
57   public static final String SECURITY_AUTHENTICATION
58     = "java.naming.security.authentication";
59
60   // Property for the identity of the principal for authenticating
61   // the caller to the service.
62   public static final String SECURITY_PRINCIPAL
63     = "java.naming.security.principal";
64
65   // Property specifying the credentials of the principal for
66   // authenticating the caller to the service.
67   public static final String SECURITY_CREDENTIAL
68     = "java.naming.security.credentials";
69
70   // Property for specifying the preferred language to use with the
71   // service.
72   public static final String LANGUAGE
73     = "java.naming.language";
74
75   // Property for the initial context constructor to use when searching
76   // for other properties.
77   public static final String APPLET
78     = "java.naming.applet";
79
80   public void bind (Name name, Object obj) throws NamingException;
81   public void bind (String name, Object obj) throws NamingException;
82 }
83