noel 2003/10/22 18:46:21
Modified: src/java/org/apache/james/dnsserver DNSServer.java
Log:
dnsjava v1.4.0 changed its interfaces from short to int.
Revision Changes Path
1.22 +4 -4 james-server/src/java/org/apache/james/dnsserver/DNSServer.java
Index: DNSServer.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/dnsserver/DNSServer.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- DNSServer.java 19 Jun 2003 06:13:23 -0000 1.21
+++ DNSServer.java 23 Oct 2003 01:46:21 -0000 1.22
@@ -263,7 +263,7 @@
* @param name the name of the host to be looked up
* @param type the type of record desired
*/
- public Record[] lookup(String name, short type) {
+ public Record[] lookup(String name, int type) {
return rawDNSLookup(name,false,type);
}
@@ -274,7 +274,7 @@
* @param querysent whether the query has already been sent to the DNS servers
* @param type the type of record desired
*/
- private Record[] rawDNSLookup(String namestr, boolean querysent, short type) {
+ private Record[] rawDNSLookup(String namestr, boolean querysent, int type) {
Name name = null;
try {
name = Name.fromString(namestr, Name.root);
@@ -283,7 +283,7 @@
getLogger().error("Couldn't parse name " + namestr, tpe);
return null;
}
- short dclass = DClass.IN;
+ int dclass = DClass.IN;
SetResponse cached = cache.lookupRecords(name, type, dnsCredibility);
if (cached.isSuccessful()) {
@@ -317,7 +317,7 @@
return null;
}
- short rcode = response.getHeader().getRcode();
+ int rcode = response.getHeader().getRcode();
if (rcode == Rcode.NOERROR || rcode == Rcode.NXDOMAIN) {
cached = cache.addMessage(response);
if (cached != null && cached.isSuccessful()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]