noel 2003/08/28 22:22:13
Modified: src/java/org/apache/james/dnsserver Tag: branch_2_1_fcs
DNSServer.java
Log:
dnsjava v1.4.0 changed its interfaces from short to int.
Revision Changes Path
No revision
No revision
1.9.4.8 +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.9.4.7
retrieving revision 1.9.4.8
diff -u -r1.9.4.7 -r1.9.4.8
--- DNSServer.java 19 Jun 2003 06:15:11 -0000 1.9.4.7
+++ DNSServer.java 29 Aug 2003 05:22:13 -0000 1.9.4.8
@@ -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]