001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.harmony.jndi.tests.javax.naming.ldap.ctx1;
019:
020: import java.util.Hashtable;
021:
022: import javax.naming.Binding;
023: import javax.naming.Context;
024: import javax.naming.Name;
025: import javax.naming.NameClassPair;
026: import javax.naming.NameParser;
027: import javax.naming.NamingEnumeration;
028: import javax.naming.NamingException;
029:
030: public class MockContextOne implements Context {
031:
032: /*
033: * (non-Javadoc)
034: *
035: * @see javax.naming.Context#addToEnvironment(java.lang.String,
036: * java.lang.Object)
037: */
038: public Object addToEnvironment(String s, Object o)
039: throws NamingException {
040: return null;
041: }
042:
043: /*
044: * (non-Javadoc)
045: *
046: * @see javax.naming.Context#bind(javax.naming.Name, java.lang.Object)
047: */
048: public void bind(Name n, Object o) throws NamingException {
049:
050: }
051:
052: /*
053: * (non-Javadoc)
054: *
055: * @see javax.naming.Context#bind(java.lang.String, java.lang.Object)
056: */
057: public void bind(String s, Object o) throws NamingException {
058:
059: }
060:
061: /*
062: * (non-Javadoc)
063: *
064: * @see javax.naming.Context#close()
065: */
066: public void close() throws NamingException {
067:
068: }
069:
070: /*
071: * (non-Javadoc)
072: *
073: * @see javax.naming.Context#composeName(javax.naming.Name,
074: * javax.naming.Name)
075: */
076: public Name composeName(Name n, Name pfx) throws NamingException {
077:
078: return null;
079: }
080:
081: /*
082: * (non-Javadoc)
083: *
084: * @see javax.naming.Context#composeName(java.lang.String, java.lang.String)
085: */
086: public String composeName(String s, String pfx)
087: throws NamingException {
088:
089: return null;
090: }
091:
092: /*
093: * (non-Javadoc)
094: *
095: * @see javax.naming.Context#createSubcontext(javax.naming.Name)
096: */
097: public Context createSubcontext(Name n) throws NamingException {
098:
099: return null;
100: }
101:
102: /*
103: * (non-Javadoc)
104: *
105: * @see javax.naming.Context#createSubcontext(java.lang.String)
106: */
107: public Context createSubcontext(String s) throws NamingException {
108:
109: return null;
110: }
111:
112: /*
113: * (non-Javadoc)
114: *
115: * @see javax.naming.Context#destroySubcontext(javax.naming.Name)
116: */
117: public void destroySubcontext(Name n) throws NamingException {
118:
119: }
120:
121: /*
122: * (non-Javadoc)
123: *
124: * @see javax.naming.Context#destroySubcontext(java.lang.String)
125: */
126: public void destroySubcontext(String s) throws NamingException {
127:
128: }
129:
130: /*
131: * (non-Javadoc)
132: *
133: * @see javax.naming.Context#getEnvironment()
134: */
135: public Hashtable<?, ?> getEnvironment() throws NamingException {
136:
137: return null;
138: }
139:
140: /*
141: * (non-Javadoc)
142: *
143: * @see javax.naming.Context#getNameInNamespace()
144: */
145: public String getNameInNamespace() throws NamingException {
146:
147: return null;
148: }
149:
150: /*
151: * (non-Javadoc)
152: *
153: * @see javax.naming.Context#getNameParser(javax.naming.Name)
154: */
155: public NameParser getNameParser(Name n) throws NamingException {
156:
157: return null;
158: }
159:
160: /*
161: * (non-Javadoc)
162: *
163: * @see javax.naming.Context#getNameParser(java.lang.String)
164: */
165: public NameParser getNameParser(String s) throws NamingException {
166:
167: return null;
168: }
169:
170: /*
171: * (non-Javadoc)
172: *
173: * @see javax.naming.Context#list(javax.naming.Name)
174: */
175: public NamingEnumeration<NameClassPair> list(Name n)
176: throws NamingException {
177:
178: return null;
179: }
180:
181: /*
182: * (non-Javadoc)
183: *
184: * @see javax.naming.Context#list(java.lang.String)
185: */
186: public NamingEnumeration<NameClassPair> list(String s)
187: throws NamingException {
188:
189: return null;
190: }
191:
192: /*
193: * (non-Javadoc)
194: *
195: * @see javax.naming.Context#listBindings(javax.naming.Name)
196: */
197: public NamingEnumeration<Binding> listBindings(Name n)
198: throws NamingException {
199:
200: return null;
201: }
202:
203: /*
204: * (non-Javadoc)
205: *
206: * @see javax.naming.Context#listBindings(java.lang.String)
207: */
208: public NamingEnumeration<Binding> listBindings(String s)
209: throws NamingException {
210:
211: return null;
212: }
213:
214: /*
215: * (non-Javadoc)
216: *
217: * @see javax.naming.Context#lookup(javax.naming.Name)
218: */
219: public Object lookup(Name n) throws NamingException {
220:
221: return null;
222: }
223:
224: /*
225: * (non-Javadoc)
226: *
227: * @see javax.naming.Context#lookup(java.lang.String)
228: */
229: public Object lookup(String s) throws NamingException {
230:
231: return null;
232: }
233:
234: /*
235: * (non-Javadoc)
236: *
237: * @see javax.naming.Context#lookupLink(javax.naming.Name)
238: */
239: public Object lookupLink(Name n) throws NamingException {
240:
241: return null;
242: }
243:
244: /*
245: * (non-Javadoc)
246: *
247: * @see javax.naming.Context#lookupLink(java.lang.String)
248: */
249: public Object lookupLink(String s) throws NamingException {
250:
251: return null;
252: }
253:
254: /*
255: * (non-Javadoc)
256: *
257: * @see javax.naming.Context#rebind(javax.naming.Name, java.lang.Object)
258: */
259: public void rebind(Name n, Object o) throws NamingException {
260:
261: }
262:
263: /*
264: * (non-Javadoc)
265: *
266: * @see javax.naming.Context#rebind(java.lang.String, java.lang.Object)
267: */
268: public void rebind(String s, Object o) throws NamingException {
269:
270: }
271:
272: /*
273: * (non-Javadoc)
274: *
275: * @see javax.naming.Context#removeFromEnvironment(java.lang.String)
276: */
277: public Object removeFromEnvironment(String s)
278: throws NamingException {
279:
280: return null;
281: }
282:
283: /*
284: * (non-Javadoc)
285: *
286: * @see javax.naming.Context#rename(javax.naming.Name, javax.naming.Name)
287: */
288: public void rename(Name nOld, Name nNew) throws NamingException {
289:
290: }
291:
292: /*
293: * (non-Javadoc)
294: *
295: * @see javax.naming.Context#rename(java.lang.String, java.lang.String)
296: */
297: public void rename(String sOld, String sNew) throws NamingException {
298:
299: }
300:
301: /*
302: * (non-Javadoc)
303: *
304: * @see javax.naming.Context#unbind(javax.naming.Name)
305: */
306: public void unbind(Name n) throws NamingException {
307:
308: }
309:
310: /*
311: * (non-Javadoc)
312: *
313: * @see javax.naming.Context#unbind(java.lang.String)
314: */
315: public void unbind(String s) throws NamingException {
316:
317: }
318:
319: }
|