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.api.dnsservice;
23
24
25 import java.net.InetAddress;
26 import java.net.UnknownHostException;
27 import java.util.Collection;
28 import java.util.Iterator;
29
30 /**
31 * Abstract class to simplify the mocks
32 */
33 public class AbstractDNSServer implements DNSService {
34
35 /**
36 * @see org.apache.james.api.dnsservice.DNSService#findMXRecords(String)
37 */
38 public Collection findMXRecords(String hostname) {
39 throw new UnsupportedOperationException("Unimplemented Stub Method");
40 }
41
42 /**
43 * @see org.apache.james.api.dnsservice.DNSService#findTXTRecords(String)
44 */
45 public Collection findTXTRecords(String hostname) {
46 throw new UnsupportedOperationException("Unimplemented Stub Method");
47 }
48
49 /**
50 * @see org.apache.james.api.dnsservice.DNSService#getAllByName(String)
51 */
52 public InetAddress[] getAllByName(String host) throws UnknownHostException {
53 throw new UnsupportedOperationException("Unimplemented Stub Method");
54 }
55
56 /**
57 * @see org.apache.james.api.dnsservice.DNSService#getByName(String)
58 */
59 public InetAddress getByName(String host) throws UnknownHostException {
60 throw new UnsupportedOperationException("Unimplemented Stub Method");
61 }
62
63 /**
64 * @see org.apache.james.api.dnsservice.DNSService#getSMTPHostAddresses(String)
65 */
66 public Iterator getSMTPHostAddresses(String domainName) {
67 throw new UnsupportedOperationException("Unimplemented Stub Method");
68 }
69
70 /**
71 * @see org.apache.james.api.dnsservice.DNSService#getHostName(java.net.InetAddress)
72 */
73 public String getHostName(InetAddress addr) {
74 throw new UnsupportedOperationException("Unimplemented Stub Method");
75 }
76
77 /**
78 * @see org.apache.james.api.dnsservice.DNSService#getLocalHost()
79 */
80 public InetAddress getLocalHost() throws UnknownHostException {
81 throw new UnsupportedOperationException("Unimplemented Stub Method");
82 }
83
84 }