KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > james > services > AbstractDNSServer


1 /****************************************************************
2  * Licensed to the Apache Software Foundation (ASF) under one *
3  * or more contributor license agreements. See the NOTICE file *
4  * distributed with this work for additional information *
5  * regarding copyright ownership. The ASF licenses this file *
6  * to you under the Apache License, Version 2.0 (the *
7  * "License"); you may not use this file except in compliance *
8  * with the License. You may obtain a copy of the License at *
9  * *
10  * http://www.apache.org/licenses/LICENSE-2.0 *
11  * *
12  * Unless required by applicable law or agreed to in writing, *
13  * software distributed under the License is distributed on an *
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
15  * KIND, either express or implied. See the License for the *
16  * specific language governing permissions and limitations *
17  * under the License. *
18  ****************************************************************/

19
20
21
22 package org.apache.james.services;
23
24 import java.net.InetAddress JavaDoc;
25 import java.net.UnknownHostException JavaDoc;
26 import java.util.Collection JavaDoc;
27 import java.util.Iterator JavaDoc;
28
29 /**
30  * Abstract class to simplify the mocks
31  */

32 public class AbstractDNSServer implements DNSServer {
33
34     /**
35      * @see org.apache.james.services.DNSServer#findMXRecords(String)
36      */

37     public Collection JavaDoc findMXRecords(String JavaDoc hostname) {
38         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
39     }
40
41     /**
42      * @see org.apache.james.services.DNSServer#findTXTRecords(String)
43      */

44     public Collection JavaDoc findTXTRecords(String JavaDoc hostname) {
45         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
46     }
47
48     /**
49      * @see org.apache.james.services.DNSServer#getAllByName(String)
50      */

51     public InetAddress JavaDoc[] getAllByName(String JavaDoc host) throws UnknownHostException JavaDoc {
52         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
53     }
54
55     /**
56      * @see org.apache.james.services.DNSServer#getByName(String)
57      */

58     public InetAddress JavaDoc getByName(String JavaDoc host) throws UnknownHostException JavaDoc {
59         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
60     }
61
62     /**
63      * @see org.apache.james.services.DNSServer#getSMTPHostAddresses(String)
64      */

65     public Iterator JavaDoc getSMTPHostAddresses(String JavaDoc domainName) {
66         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
67     }
68
69     /**
70      * @see org.apache.james.services.DNSServer#getHostName(java.net.InetAddress)
71      */

72     public String JavaDoc getHostName(InetAddress JavaDoc addr) {
73         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
74     }
75
76     /**
77      * @see org.apache.james.services.DNSServer#getLocalHost()
78      */

79     public InetAddress JavaDoc getLocalHost() throws UnknownHostException JavaDoc {
80         throw new UnsupportedOperationException JavaDoc("Unimplemented Stub Method");
81     }
82
83 }
84
Popular Tags