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.ctx2;
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 MockContextTwo 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: return null;
078: }
079:
080: /*
081: * (non-Javadoc)
082: *
083: * @see javax.naming.Context#composeName(java.lang.String, java.lang.String)
084: */
085: public String composeName(String s, String pfx)
086: throws NamingException {
087: return null;
088: }
089:
090: /*
091: * (non-Javadoc)
092: *
093: * @see javax.naming.Context#createSubcontext(javax.naming.Name)
094: */
095: public Context createSubcontext(Name n) throws NamingException {
096: return null;
097: }
098:
099: /*
100: * (non-Javadoc)
101: *
102: * @see javax.naming.Context#createSubcontext(java.lang.String)
103: */
104: public Context createSubcontext(String s) throws NamingException {
105: return null;
106: }
107:
108: /*
109: * (non-Javadoc)
110: *
111: * @see javax.naming.Context#destroySubcontext(javax.naming.Name)
112: */
113: public void destroySubcontext(Name n) throws NamingException {
114:
115: }
116:
117: /*
118: * (non-Javadoc)
119: *
120: * @see javax.naming.Context#destroySubcontext(java.lang.String)
121: */
122: public void destroySubcontext(String s) throws NamingException {
123: }
124:
125: /*
126: * (non-Javadoc)
127: *
128: * @see javax.naming.Context#getEnvironment()
129: */
130: public Hashtable<?, ?> getEnvironment() throws NamingException {
131: return null;
132: }
133:
134: /*
135: * (non-Javadoc)
136: *
137: * @see javax.naming.Context#getNameInNamespace()
138: */
139: public String getNameInNamespace() throws NamingException {
140: return null;
141: }
142:
143: /*
144: * (non-Javadoc)
145: *
146: * @see javax.naming.Context#getNameParser(javax.naming.Name)
147: */
148: public NameParser getNameParser(Name n) throws NamingException {
149: return null;
150: }
151:
152: /*
153: * (non-Javadoc)
154: *
155: * @see javax.naming.Context#getNameParser(java.lang.String)
156: */
157: public NameParser getNameParser(String s) throws NamingException {
158: return null;
159: }
160:
161: /*
162: * (non-Javadoc)
163: *
164: * @see javax.naming.Context#list(javax.naming.Name)
165: */
166: public NamingEnumeration<NameClassPair> list(Name n)
167: throws NamingException {
168: return null;
169: }
170:
171: /*
172: * (non-Javadoc)
173: *
174: * @see javax.naming.Context#list(java.lang.String)
175: */
176: public NamingEnumeration<NameClassPair> list(String s)
177: throws NamingException {
178: return null;
179: }
180:
181: /*
182: * (non-Javadoc)
183: *
184: * @see javax.naming.Context#listBindings(javax.naming.Name)
185: */
186: public NamingEnumeration<Binding> listBindings(Name n)
187: throws NamingException {
188: return null;
189: }
190:
191: /*
192: * (non-Javadoc)
193: *
194: * @see javax.naming.Context#listBindings(java.lang.String)
195: */
196: public NamingEnumeration<Binding> listBindings(String s)
197: throws NamingException {
198: return null;
199: }
200:
201: /*
202: * (non-Javadoc)
203: *
204: * @see javax.naming.Context#lookup(javax.naming.Name)
205: */
206: public Object lookup(Name n) throws NamingException {
207: return null;
208: }
209:
210: /*
211: * (non-Javadoc)
212: *
213: * @see javax.naming.Context#lookup(java.lang.String)
214: */
215: public Object lookup(String s) throws NamingException {
216: return null;
217: }
218:
219: /*
220: * (non-Javadoc)
221: *
222: * @see javax.naming.Context#lookupLink(javax.naming.Name)
223: */
224: public Object lookupLink(Name n) throws NamingException {
225: return null;
226: }
227:
228: /*
229: * (non-Javadoc)
230: *
231: * @see javax.naming.Context#lookupLink(java.lang.String)
232: */
233: public Object lookupLink(String s) throws NamingException {
234: return null;
235: }
236:
237: /*
238: * (non-Javadoc)
239: *
240: * @see javax.naming.Context#rebind(javax.naming.Name, java.lang.Object)
241: */
242: public void rebind(Name n, Object o) throws NamingException {
243:
244: }
245:
246: /*
247: * (non-Javadoc)
248: *
249: * @see javax.naming.Context#rebind(java.lang.String, java.lang.Object)
250: */
251: public void rebind(String s, Object o) throws NamingException {
252:
253: }
254:
255: /*
256: * (non-Javadoc)
257: *
258: * @see javax.naming.Context#removeFromEnvironment(java.lang.String)
259: */
260: public Object removeFromEnvironment(String s)
261: throws NamingException {
262: return null;
263: }
264:
265: /*
266: * (non-Javadoc)
267: *
268: * @see javax.naming.Context#rename(javax.naming.Name, javax.naming.Name)
269: */
270: public void rename(Name nOld, Name nNew) throws NamingException {
271:
272: }
273:
274: /*
275: * (non-Javadoc)
276: *
277: * @see javax.naming.Context#rename(java.lang.String, java.lang.String)
278: */
279: public void rename(String sOld, String sNew) throws NamingException {
280:
281: }
282:
283: /*
284: * (non-Javadoc)
285: *
286: * @see javax.naming.Context#unbind(javax.naming.Name)
287: */
288: public void unbind(Name n) throws NamingException {
289:
290: }
291:
292: /*
293: * (non-Javadoc)
294: *
295: * @see javax.naming.Context#unbind(java.lang.String)
296: */
297: public void unbind(String s) throws NamingException {
298:
299: }
300:
301: }
|