link start!
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
package javax.naming;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
public interface Context {
|
||||
public static final String APPLET = "java.naming.applet";
|
||||
public static final String AUTHORITATIVE = "java.naming.authoritative";
|
||||
public static final String BATCHSIZE = "java.naming.batchsize";
|
||||
public static final String DNS_URL = "java.naming.dns.url";
|
||||
public static final String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial";
|
||||
public static final String LANGUAGE = "java.naming.language";
|
||||
public static final String OBJECT_FACTORIES = "java.naming.factory.object";
|
||||
public static final String PROVIDER_URL = "java.naming.provider.url";
|
||||
public static final String REFERRAL = "java.naming.referral";
|
||||
public static final String SECURITY_AUTHENTICATION = "java.naming.security.authentication";
|
||||
public static final String SECURITY_CREDENTIALS = "java.naming.security.credentials";
|
||||
public static final String SECURITY_PRINCIPAL = "java.naming.security.principal";
|
||||
public static final String SECURITY_PROTOCOL = "java.naming.security.protocol";
|
||||
public static final String STATE_FACTORIES = "java.naming.factory.state";
|
||||
public static final String URL_PKG_PREFIXES = "java.naming.factory.url.pkgs";
|
||||
|
||||
Object addToEnvironment(String str, Object obj) throws NamingException;
|
||||
|
||||
void bind(String str, Object obj) throws NamingException;
|
||||
|
||||
void bind(Name name, Object obj) throws NamingException;
|
||||
|
||||
void close() throws NamingException;
|
||||
|
||||
String composeName(String str, String str2) throws NamingException;
|
||||
|
||||
Name composeName(Name name, Name name2) throws NamingException;
|
||||
|
||||
Context createSubcontext(String str) throws NamingException;
|
||||
|
||||
Context createSubcontext(Name name) throws NamingException;
|
||||
|
||||
void destroySubcontext(String str) throws NamingException;
|
||||
|
||||
void destroySubcontext(Name name) throws NamingException;
|
||||
|
||||
Hashtable getEnvironment() throws NamingException;
|
||||
|
||||
String getNameInNamespace() throws NamingException;
|
||||
|
||||
NameParser getNameParser(String str) throws NamingException;
|
||||
|
||||
NameParser getNameParser(Name name) throws NamingException;
|
||||
|
||||
NamingEnumeration list(String str) throws NamingException;
|
||||
|
||||
NamingEnumeration list(Name name) throws NamingException;
|
||||
|
||||
NamingEnumeration listBindings(String str) throws NamingException;
|
||||
|
||||
NamingEnumeration listBindings(Name name) throws NamingException;
|
||||
|
||||
Object lookup(String str) throws NamingException;
|
||||
|
||||
Object lookup(Name name) throws NamingException;
|
||||
|
||||
Object lookupLink(String str) throws NamingException;
|
||||
|
||||
Object lookupLink(Name name) throws NamingException;
|
||||
|
||||
void rebind(String str, Object obj) throws NamingException;
|
||||
|
||||
void rebind(Name name, Object obj) throws NamingException;
|
||||
|
||||
Object removeFromEnvironment(String str) throws NamingException;
|
||||
|
||||
void rename(String str, String str2) throws NamingException;
|
||||
|
||||
void rename(Name name, Name name2) throws NamingException;
|
||||
|
||||
void unbind(String str) throws NamingException;
|
||||
|
||||
void unbind(Name name) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package javax.naming;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface Name extends Cloneable, Serializable {
|
||||
Name add(int i, String str) throws InvalidNameException;
|
||||
|
||||
Name add(String str) throws InvalidNameException;
|
||||
|
||||
Name addAll(int i, Name name) throws InvalidNameException;
|
||||
|
||||
Name addAll(Name name) throws InvalidNameException;
|
||||
|
||||
Object clone();
|
||||
|
||||
int compareTo(Object obj);
|
||||
|
||||
boolean endsWith(Name name);
|
||||
|
||||
String get(int i);
|
||||
|
||||
Enumeration getAll();
|
||||
|
||||
Name getPrefix(int i);
|
||||
|
||||
Name getSuffix(int i);
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
Object remove(int i) throws InvalidNameException;
|
||||
|
||||
int size();
|
||||
|
||||
boolean startsWith(Name name);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package javax.naming;
|
||||
|
||||
public interface NameParser {
|
||||
Name parse(String str) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package javax.naming;
|
||||
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface NamingEnumeration extends Enumeration {
|
||||
void close() throws NamingException;
|
||||
|
||||
boolean hasMore() throws NamingException;
|
||||
|
||||
Object next() throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package javax.naming;
|
||||
|
||||
public interface Referenceable {
|
||||
Reference getReference() throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package javax.naming.directory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.naming.NamingEnumeration;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface Attribute extends Cloneable, Serializable {
|
||||
public static final long serialVersionUID = 8707690322213556804L;
|
||||
|
||||
void add(int i, Object obj);
|
||||
|
||||
boolean add(Object obj);
|
||||
|
||||
void clear();
|
||||
|
||||
Object clone();
|
||||
|
||||
boolean contains(Object obj);
|
||||
|
||||
Object get() throws NamingException;
|
||||
|
||||
Object get(int i) throws NamingException;
|
||||
|
||||
NamingEnumeration getAll() throws NamingException;
|
||||
|
||||
DirContext getAttributeDefinition() throws NamingException;
|
||||
|
||||
DirContext getAttributeSyntaxDefinition() throws NamingException;
|
||||
|
||||
String getID();
|
||||
|
||||
boolean isOrdered();
|
||||
|
||||
Object remove(int i);
|
||||
|
||||
boolean remove(Object obj);
|
||||
|
||||
Object set(int i, Object obj);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package javax.naming.directory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.naming.NamingEnumeration;
|
||||
|
||||
public interface Attributes extends Cloneable, Serializable {
|
||||
Object clone();
|
||||
|
||||
Attribute get(String str);
|
||||
|
||||
NamingEnumeration getAll();
|
||||
|
||||
NamingEnumeration getIDs();
|
||||
|
||||
boolean isCaseIgnored();
|
||||
|
||||
Attribute put(String str, Object obj);
|
||||
|
||||
Attribute put(Attribute attribute);
|
||||
|
||||
Attribute remove(String str);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package javax.naming.directory;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.Name;
|
||||
import javax.naming.NamingEnumeration;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface DirContext extends Context {
|
||||
public static final int ADD_ATTRIBUTE = 1;
|
||||
public static final int REMOVE_ATTRIBUTE = 3;
|
||||
public static final int REPLACE_ATTRIBUTE = 2;
|
||||
|
||||
void bind(String str, Object obj, Attributes attributes) throws NamingException;
|
||||
|
||||
void bind(Name name, Object obj, Attributes attributes) throws NamingException;
|
||||
|
||||
DirContext createSubcontext(String str, Attributes attributes) throws NamingException;
|
||||
|
||||
DirContext createSubcontext(Name name, Attributes attributes) throws NamingException;
|
||||
|
||||
Attributes getAttributes(String str) throws NamingException;
|
||||
|
||||
Attributes getAttributes(String str, String[] strArr) throws NamingException;
|
||||
|
||||
Attributes getAttributes(Name name) throws NamingException;
|
||||
|
||||
Attributes getAttributes(Name name, String[] strArr) throws NamingException;
|
||||
|
||||
DirContext getSchema(String str) throws NamingException;
|
||||
|
||||
DirContext getSchema(Name name) throws NamingException;
|
||||
|
||||
DirContext getSchemaClassDefinition(String str) throws NamingException;
|
||||
|
||||
DirContext getSchemaClassDefinition(Name name) throws NamingException;
|
||||
|
||||
void modifyAttributes(String str, int i, Attributes attributes) throws NamingException;
|
||||
|
||||
void modifyAttributes(String str, ModificationItem[] modificationItemArr) throws NamingException;
|
||||
|
||||
void modifyAttributes(Name name, int i, Attributes attributes) throws NamingException;
|
||||
|
||||
void modifyAttributes(Name name, ModificationItem[] modificationItemArr) throws NamingException;
|
||||
|
||||
void rebind(String str, Object obj, Attributes attributes) throws NamingException;
|
||||
|
||||
void rebind(Name name, Object obj, Attributes attributes) throws NamingException;
|
||||
|
||||
NamingEnumeration search(String str, String str2, SearchControls searchControls) throws NamingException;
|
||||
|
||||
NamingEnumeration search(String str, String str2, Object[] objArr, SearchControls searchControls) throws NamingException;
|
||||
|
||||
NamingEnumeration search(String str, Attributes attributes) throws NamingException;
|
||||
|
||||
NamingEnumeration search(String str, Attributes attributes, String[] strArr) throws NamingException;
|
||||
|
||||
NamingEnumeration search(Name name, String str, SearchControls searchControls) throws NamingException;
|
||||
|
||||
NamingEnumeration search(Name name, String str, Object[] objArr, SearchControls searchControls) throws NamingException;
|
||||
|
||||
NamingEnumeration search(Name name, Attributes attributes) throws NamingException;
|
||||
|
||||
NamingEnumeration search(Name name, Attributes attributes, String[] strArr) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package javax.naming.event;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.Name;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface EventContext extends Context {
|
||||
public static final int OBJECT_SCOPE = 0;
|
||||
public static final int ONELEVEL_SCOPE = 1;
|
||||
public static final int SUBTREE_SCOPE = 2;
|
||||
|
||||
void addNamingListener(String str, int i, NamingListener namingListener) throws NamingException;
|
||||
|
||||
void addNamingListener(Name name, int i, NamingListener namingListener) throws NamingException;
|
||||
|
||||
void removeNamingListener(NamingListener namingListener) throws NamingException;
|
||||
|
||||
boolean targetMustExist() throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package javax.naming.event;
|
||||
|
||||
import javax.naming.Name;
|
||||
import javax.naming.NamingException;
|
||||
import javax.naming.directory.DirContext;
|
||||
import javax.naming.directory.SearchControls;
|
||||
|
||||
public interface EventDirContext extends EventContext, DirContext {
|
||||
void addNamingListener(String str, String str2, SearchControls searchControls, NamingListener namingListener) throws NamingException;
|
||||
|
||||
void addNamingListener(String str, String str2, Object[] objArr, SearchControls searchControls, NamingListener namingListener) throws NamingException;
|
||||
|
||||
void addNamingListener(Name name, String str, SearchControls searchControls, NamingListener namingListener) throws NamingException;
|
||||
|
||||
void addNamingListener(Name name, String str, Object[] objArr, SearchControls searchControls, NamingListener namingListener) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.naming.event;
|
||||
|
||||
public interface NamespaceChangeListener extends NamingListener {
|
||||
void objectAdded(NamingEvent namingEvent);
|
||||
|
||||
void objectRemoved(NamingEvent namingEvent);
|
||||
|
||||
void objectRenamed(NamingEvent namingEvent);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.naming.event;
|
||||
|
||||
import java.util.EventListener;
|
||||
|
||||
public interface NamingListener extends EventListener {
|
||||
void namingExceptionThrown(NamingExceptionEvent namingExceptionEvent);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package javax.naming.event;
|
||||
|
||||
public interface ObjectChangeListener extends NamingListener {
|
||||
void objectChanged(NamingEvent namingEvent);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface Control extends Serializable {
|
||||
public static final boolean CRITICAL = true;
|
||||
public static final boolean NONCRITICAL = false;
|
||||
|
||||
byte[] getEncodedValue();
|
||||
|
||||
String getID();
|
||||
|
||||
boolean isCritical();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface ExtendedRequest extends Serializable {
|
||||
ExtendedResponse createExtendedResponse(String str, byte[] bArr, int i, int i2) throws NamingException;
|
||||
|
||||
byte[] getEncodedValue();
|
||||
|
||||
String getID();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface ExtendedResponse extends Serializable {
|
||||
byte[] getEncodedValue();
|
||||
|
||||
String getID();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface HasControls {
|
||||
Control[] getControls() throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import javax.naming.NamingException;
|
||||
import javax.naming.directory.DirContext;
|
||||
|
||||
public interface LdapContext extends DirContext {
|
||||
public static final String CONTROL_FACTORIES = "java.naming.factory.control";
|
||||
|
||||
ExtendedResponse extendedOperation(ExtendedRequest extendedRequest) throws NamingException;
|
||||
|
||||
Control[] getConnectControls() throws NamingException;
|
||||
|
||||
Control[] getRequestControls() throws NamingException;
|
||||
|
||||
Control[] getResponseControls() throws NamingException;
|
||||
|
||||
LdapContext newInstance(Control[] controlArr) throws NamingException;
|
||||
|
||||
void reconnect(Control[] controlArr) throws NamingException;
|
||||
|
||||
void setRequestControls(Control[] controlArr) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface UnsolicitedNotification extends ExtendedResponse, HasControls {
|
||||
NamingException getException();
|
||||
|
||||
String[] getReferrals();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.naming.ldap;
|
||||
|
||||
import javax.naming.event.NamingListener;
|
||||
|
||||
public interface UnsolicitedNotificationListener extends NamingListener {
|
||||
void notificationReceived(UnsolicitedNotificationEvent unsolicitedNotificationEvent);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.Context;
|
||||
import javax.naming.Name;
|
||||
import javax.naming.directory.Attributes;
|
||||
|
||||
public interface DirObjectFactory extends ObjectFactory {
|
||||
Object getObjectInstance(Object obj, Name name, Context context, Hashtable hashtable, Attributes attributes) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.Context;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface InitialContextFactory {
|
||||
Context getInitialContext(Hashtable hashtable) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface InitialContextFactoryBuilder {
|
||||
InitialContextFactory createInitialContextFactory(Hashtable hashtable) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.Context;
|
||||
import javax.naming.Name;
|
||||
|
||||
public interface ObjectFactory {
|
||||
Object getObjectInstance(Object obj, Name name, Context context, Hashtable hashtable) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface ObjectFactoryBuilder {
|
||||
ObjectFactory createObjectFactory(Object obj, Hashtable hashtable) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import javax.naming.Name;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface Resolver {
|
||||
ResolveResult resolveToClass(String str, Class cls) throws NamingException;
|
||||
|
||||
ResolveResult resolveToClass(Name name, Class cls) throws NamingException;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.Context;
|
||||
import javax.naming.Name;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
public interface StateFactory {
|
||||
Object getStateToBind(Object obj, Name name, Context context, Hashtable hashtable) throws NamingException;
|
||||
}
|
||||
Reference in New Issue
Block a user