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