directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r306890 - /directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java
Date Thu, 06 Oct 2005 21:07:31 GMT
Author: erodriguez
Date: Thu Oct  6 14:07:27 2005
New Revision: 306890

URL: http://svn.apache.org/viewcvs?rev=306890&view=rev
Log:
Update to DNS protocol-provider to support DIRDNS-10 (Add support for arbitrary string TXT
Resource Records)
o  Added the TXT type-to-encoder mapping.

http://issues.apache.org/jira/browse/DIRDNS-10

Modified:
    directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java

Modified: directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java?rev=306890&r1=306889&r2=306890&view=diff
==============================================================================
--- directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java
(original)
+++ directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsEncoder.java
Thu Oct  6 14:07:27 2005
@@ -32,6 +32,7 @@
 import org.apache.dns.io.encoder.RecordEncoder;
 import org.apache.dns.io.encoder.ServerSelectionRecordEncoder;
 import org.apache.dns.io.encoder.StartOfAuthorityRecordEncoder;
+import org.apache.dns.io.encoder.TextRecordEncoder;
 import org.apache.dns.messages.DnsMessage;
 import org.apache.dns.messages.MessageType;
 import org.apache.dns.messages.OpCode;
@@ -70,6 +71,7 @@
         map.put( RecordType.PTR, new PointerRecordEncoder() );
         map.put( RecordType.MX, new MailExchangeRecordEncoder() );
         map.put( RecordType.SRV, new ServerSelectionRecordEncoder() );
+        map.put( RecordType.TXT, new TextRecordEncoder() );
 
         DEFAULT_ENCODERS = Collections.unmodifiableMap( map );
     }



Mime
View raw message