directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r328230 - in /directory/protocol-providers/dns/trunk/src/java/org/apache/dns: DnsConfiguration.java protocol/DnsProtocolHandler.java protocol/DnsProtocolProvider.java
Date Tue, 25 Oct 2005 01:58:53 GMT
Author: erodriguez
Date: Mon Oct 24 18:58:42 2005
New Revision: 328230

URL: http://svn.apache.org/viewcvs?rev=328230&view=rev
Log:
Consolidated configuration from DNS OSGi bundle to protocol provider.

Modified:
    directory/protocol-providers/dns/trunk/src/java/org/apache/dns/DnsConfiguration.java
    directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolHandler.java
    directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolProvider.java

Modified: directory/protocol-providers/dns/trunk/src/java/org/apache/dns/DnsConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/dns/trunk/src/java/org/apache/dns/DnsConfiguration.java?rev=328230&r1=328229&r2=328230&view=diff
==============================================================================
--- directory/protocol-providers/dns/trunk/src/java/org/apache/dns/DnsConfiguration.java (original)
+++ directory/protocol-providers/dns/trunk/src/java/org/apache/dns/DnsConfiguration.java Mon
Oct 24 18:58:42 2005
@@ -33,7 +33,7 @@
     public static final String DNS_BUFFER_SIZE_KEY = "dns.buffer.size";
 
     /** the default port */
-    private static final int DNS_DEFAULT_PORT = 53;
+    private static final String DNS_DEFAULT_PORT = "53";
 
     private static final String SERVICE_PID = "service.pid";
     private static final String PID = "org.apache.dns";
@@ -86,7 +86,7 @@
         Map defaults = new HashMap();
 
         defaults.put( SERVICE_PID, PID );
-        defaults.put( DNS_PORT_KEY, Integer.getInteger( DNS_PORT_KEY, new Integer( DNS_DEFAULT_PORT
) ) );
+        defaults.put( DNS_PORT_KEY, DNS_DEFAULT_PORT );
 
         return defaults;
     }
@@ -95,7 +95,7 @@
     {
         int port = getPort();
 
-        if ( port == ( (Integer) config.get( DNS_PORT_KEY ) ).intValue() )
+        if ( port == Integer.parseInt( (String) config.get( DNS_PORT_KEY ) ) )
         {
             return false;
         }
@@ -117,7 +117,7 @@
             return Integer.parseInt( get( key ) );
         }
 
-        return DNS_DEFAULT_PORT;
+        return Integer.parseInt( DNS_DEFAULT_PORT );
     }
 
     public int getBufferSize()

Modified: directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolHandler.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolHandler.java?rev=328230&r1=328229&r2=328230&view=diff
==============================================================================
--- directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolHandler.java
(original)
+++ directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolHandler.java
Mon Oct 24 18:58:42 2005
@@ -17,8 +17,8 @@
 
 package org.apache.dns.protocol;
 
+import org.apache.dns.DnsConfiguration;
 import org.apache.dns.messages.DnsMessage;
-import org.apache.dns.service.DnsConfiguration;
 import org.apache.dns.service.DnsContext;
 import org.apache.dns.service.DomainNameServiceChain;
 import org.apache.dns.store.RecordStore;

Modified: directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolProvider.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolProvider.java?rev=328230&r1=328229&r2=328230&view=diff
==============================================================================
--- directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolProvider.java
(original)
+++ directory/protocol-providers/dns/trunk/src/java/org/apache/dns/protocol/DnsProtocolProvider.java
Mon Oct 24 18:58:42 2005
@@ -17,7 +17,7 @@
 
 package org.apache.dns.protocol;
 
-import org.apache.dns.service.DnsConfiguration;
+import org.apache.dns.DnsConfiguration;
 import org.apache.dns.store.RecordStore;
 import org.apache.mina.protocol.ProtocolCodecFactory;
 import org.apache.mina.protocol.ProtocolDecoder;



Mime
View raw message