Commit ea813605 by Anthony Green Committed by Anthony Green

Replace stubs with actual implementation

From-SVN: r37782
parent 5fcd86dd
Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
* javax/naming/InitialContext.java (rebind): Implement.
(unbind): Implement.
(rename): Implement.
(list): Implement.
(listBindings): Implement.
(destroySubcontext): Implement.
(createSubcontext): Implement.
(lookupLink): Implement.
(getNameParser): Implement.
(composeName): Implement.
(addToEnvironment): Implement.
Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* javax/naming/AuthenticationException.java, * javax/naming/AuthenticationException.java,
......
...@@ -185,140 +185,140 @@ public class InitialContext implements Context ...@@ -185,140 +185,140 @@ public class InitialContext implements Context
} }
public void bind (Name name, Object obj) throws NamingException public void bind (Name name, Object obj) throws NamingException
{ {
getURLOrDefaultInitCtx (name).bind (name, obj); getURLOrDefaultInitCtx (name).bind (name, obj);
} }
public void bind (String name, Object obj) throws NamingException public void bind (String name, Object obj) throws NamingException
{ {
getURLOrDefaultInitCtx (name).bind (name, obj); getURLOrDefaultInitCtx (name).bind (name, obj);
} }
public Object lookup (Name name) throws NamingException public Object lookup (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).lookup (name);
} }
public Object lookup (String name) throws NamingException public Object lookup (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).lookup (name);
} }
public void rebind (Name name, Object obj) throws NamingException public void rebind (Name name, Object obj) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (name).rebind (name, obj);
} }
public void rebind (String name, Object obj) throws NamingException public void rebind (String name, Object obj) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (name).rebind (name, obj);
} }
public void unbind (Name name) throws NamingException public void unbind (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (name).unbind (name);
} }
public void unbind (String name) throws NamingException public void unbind (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (name).unbind (name);
} }
public void rename (Name oldName, Name newName) throws NamingException public void rename (Name oldName, Name newName) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (oldName).rename (oldName, newName);
} }
public void rename (String oldName, String newName) throws NamingException public void rename (String oldName, String newName) throws NamingException
{ {
throw new OperationNotSupportedException (); getURLOrDefaultInitCtx (oldName).rename (oldName, newName);
} }
public NamingEnumeration list (Name name) throws NamingException public NamingEnumeration list (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).list (name);
} }
public NamingEnumeration list (String name) throws NamingException public NamingEnumeration list (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).list (name);
} }
public NamingEnumeration listBindings (Name name) throws NamingException public NamingEnumeration listBindings (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).listBindings (name);
} }
public NamingEnumeration listBindings (String name) throws NamingException public NamingEnumeration listBindings (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).listBindings (name);
} }
public void destroySubcontext (Name name) throws NamingException public void destroySubcontext (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).destroySubcontext (name);
} }
public void destroySubcontext (String name) throws NamingException public void destroySubcontext (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).destroySubcontext (name);
} }
public Context createSubcontext (Name name) throws NamingException public Context createSubcontext (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).createSubcontext (name);
} }
public Context createSubcontext (String name) throws NamingException public Context createSubcontext (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).createSubcontext (name);
} }
public Object lookupLink (Name name) throws NamingException public Object lookupLink (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).lookupLink (name);
} }
public Object lookupLink (String name) throws NamingException public Object lookupLink (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).lookupLink (name);
} }
public NameParser getNameParser (Name name) throws NamingException public NameParser getNameParser (Name name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).getNameParser (name);
} }
public NameParser getNameParser (String name) throws NamingException public NameParser getNameParser (String name) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).getNameParser (name);
} }
public Name composeName (Name name, Name prefix) throws NamingException public Name composeName (Name name, Name prefix) throws NamingException
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).composeName (name, prefix);
} }
public String composeName (String name, public String composeName (String name,
String prefix) throws NamingException; String prefix) throws NamingException;
{ {
throw new OperationNotSupportedException (); return getURLOrDefaultInitCtx (name).composeName (name, prefix);
} }
public Object addToEnvironment (String propName, public Object addToEnvironment (String propName,
Object propVal) throws NamingException; Object propVal) throws NamingException;
{ {
throw new OperationNotSupportedException (); myProps.add (propName, propVal);
} }
public Object removeFromEnvironment (String propName) throws NamingException public Object removeFromEnvironment (String propName) throws NamingException
{ {
throw new OperationNotSupportedException (); myProps.remove (propName);
} }
public Hashtable getEnvironment () throws NamingException public Hashtable getEnvironment () throws NamingException
{ {
throw new OperationNotSupportedException (); return myProps;
} }
public void close () throws NamingException public void close () throws NamingException
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment