Author: erodriguez Date: Sun Jan 9 00:33:47 2005 New Revision: 124722 URL: http://svn.apache.org/viewcvs?view=rev&rev=124722 Log: Exported DNS service interface package. Added: incubator/directory/dns/trunk/core/src/java/org/apache/dns/DnsException.java (contents, props changed) incubator/directory/dns/trunk/core/src/java/org/apache/dns/DomainNameService.java (contents, props changed)
Added: incubator/directory/dns/trunk/core/src/java/org/apache/dns/DnsException.java Url: http://svn.apache.org/viewcvs/incubator/directory/dns/trunk/core/src/java/org/apache/dns/DnsException.java?view=auto&rev=124722 ============================================================================== --- (empty file) +++ incubator/directory/dns/trunk/core/src/java/org/apache/dns/DnsException.java Sun Jan 9 00:33:47 2005 @@ -0,0 +1,43 @@ +/* + * Copyright 2005 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.apache.dns; + + +public class DnsException extends Exception +{ + /** + * This empty constructor is used if no + * explanation of the DNS exception is required. + */ + public DnsException() + { + super(); + } + + /** + * This constructor is used if a description of the event + * that caused the exception is required. + * + * @param description this is a description of the exception + */ + public DnsException( String description ) + { + super( description ); + } +} + Added: incubator/directory/dns/trunk/core/src/java/org/apache/dns/DomainNameService.java Url: http://svn.apache.org/viewcvs/incubator/directory/dns/trunk/core/src/java/org/apache/dns/DomainNameService.java?view=auto&rev=124722 ============================================================================== --- (empty file) +++ incubator/directory/dns/trunk/core/src/java/org/apache/dns/DomainNameService.java Sun Jan 9 00:33:47 2005 @@ -0,0 +1,30 @@ +/* + * Copyright 2005 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.apache.dns; + +import org.apache.dns.messages.DnsMessage; + + +/** + * DNS Protocol (RFC 1034, RFC 1035) + */ +public interface DomainNameService +{ + public DnsMessage getReplyFor( DnsMessage request ); +} +
