directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1075499 - in /directory/shared/branches/milestones/ldap: codec/core/src/main/java/org/apache/directory/shared/ldap/codec/ codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/ codec/core/src/main/java/org/apache/directory/sh...
Date Mon, 28 Feb 2011 19:25:47 GMT
Author: pamarcelot
Date: Mon Feb 28 19:25:46 2011
New Revision: 1075499

URL: http://svn.apache.org/viewvc?rev=1075499&view=rev
Log:
Moved classes to the 'api' package where they are visible from other bundles.

Added:
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapDecoder.java
      - copied, changed from r1075433, directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapEncoder.java
      - copied, changed from r1075433, directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapEncoder.java
Removed:
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapEncoder.java
Modified:
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/LdapResultDecorator.java
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultReferenceDecorator.java
    directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java
    directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
    directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
    directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
    directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
    directory/shared/branches/milestones/ldap/extras/codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
    directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
    directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolDecoder.java
    directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolEncoder.java

Copied: directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapDecoder.java
(from r1075433, directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapDecoder.java?p2=directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapDecoder.java&p1=directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java&r1=1075433&r2=1075499&rev=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapDecoder.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapDecoder.java
Mon Feb 28 19:25:46 2011
@@ -17,7 +17,7 @@
  *  under the License.
  *
  */
-package org.apache.directory.shared.ldap.codec;
+package org.apache.directory.shared.ldap.codec.api;
 
 
 import java.io.InputStream;
@@ -28,9 +28,6 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.tlv.TLVStateEnum;
 import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.codec.api.LdapMessageContainer;
-import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
-import org.apache.directory.shared.ldap.codec.api.ResponseCarryingException;
 import org.apache.directory.shared.ldap.model.exception.ResponseCarryingMessageException;
 import org.apache.directory.shared.ldap.model.message.Message;
 import org.apache.directory.shared.util.Strings;

Copied: directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapEncoder.java
(from r1075433, directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapEncoder.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapEncoder.java?p2=directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapEncoder.java&p1=directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapEncoder.java&r1=1075433&r2=1075499&rev=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/LdapEncoder.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapEncoder.java
Mon Feb 28 19:25:46 2011
@@ -17,7 +17,7 @@
  *  under the License. 
  *  
  */
-package org.apache.directory.shared.ldap.codec;
+package org.apache.directory.shared.ldap.codec.api;
 
 
 import java.nio.BufferOverflowException;
@@ -30,11 +30,6 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.tlv.UniversalTag;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
 import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.codec.api.CodecControl;
-import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
-import org.apache.directory.shared.ldap.codec.api.LdapConstants;
-import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
-import org.apache.directory.shared.ldap.codec.api.MessageEncoderException;
 import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.message.Message;
 import org.apache.directory.shared.ldap.model.message.Referral;

Modified: directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/LdapResultDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/LdapResultDecorator.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/LdapResultDecorator.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/LdapResultDecorator.java
Mon Feb 28 19:25:46 2011
@@ -28,9 +28,9 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.tlv.UniversalTag;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
 import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.api.Decorator;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.model.message.LdapResult;
 import org.apache.directory.shared.ldap.model.message.Referral;
 import org.apache.directory.shared.ldap.model.message.ResultCodeEnum;

Modified: directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultReferenceDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultReferenceDecorator.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultReferenceDecorator.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchResultReferenceDecorator.java
Mon Feb 28 19:25:46 2011
@@ -27,9 +27,9 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
 import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapConstants;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
 import org.apache.directory.shared.ldap.model.message.Referral;
 import org.apache.directory.shared.ldap.model.message.SearchResultReference;

Modified: directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java
Mon Feb 28 19:25:46 2011
@@ -32,20 +32,22 @@ import org.osgi.framework.ServiceRegistr
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-@SuppressWarnings({"UnusedDeclaration"})
+@SuppressWarnings(
+    { "UnusedDeclaration" })
 public class DefaultActivator implements BundleActivator
 {
     private DefaultLdapCodecService codec;
     private ServiceRegistration registration;
 
 
-    @SuppressWarnings({"UnusedDeclaration"})
+    @SuppressWarnings(
+        { "UnusedDeclaration" })
     public DefaultActivator()
     {
         this.codec = new DefaultLdapCodecService();
     }
-    
-    
+
+
     /**
      * {@inheritDoc}
      */
@@ -54,7 +56,7 @@ public class DefaultActivator implements
         registration = bundleContext.registerService( LdapCodecService.class.getName(), codec,
null );
         LdapCodecServiceFactory.initialize( codec );
     }
-    
+
 
     /**
      * {@inheritDoc}

Modified: directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
Mon Feb 28 19:25:46 2011
@@ -32,6 +32,7 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.tlv.TLVStateEnum;
+import org.apache.directory.shared.ldap.codec.api.LdapDecoder;
 import org.apache.directory.shared.ldap.codec.api.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
 import org.apache.directory.shared.ldap.codec.decorators.BindRequestDecorator;

Modified: directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Mon Feb 28 19:25:46 2011
@@ -20,8 +20,8 @@
 package org.apache.directory.shared.ldap.codec.osgi;
 
 
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecServiceFactory;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.osgi.DefaultLdapCodecService;
 import org.apache.mina.core.session.IoSession;
 import org.apache.mina.filter.codec.ProtocolCodecFactory;

Modified: directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/LdapDecoderTest.java
Mon Feb 28 19:25:46 2011
@@ -32,6 +32,7 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.tlv.TLVStateEnum;
+import org.apache.directory.shared.ldap.codec.api.LdapDecoder;
 import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
 import org.apache.directory.shared.ldap.codec.api.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.decorators.BindRequestDecorator;

Modified: directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
(original)
+++ directory/shared/branches/milestones/ldap/codec/standalone/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Mon Feb 28 19:25:46 2011
@@ -20,7 +20,7 @@
 package org.apache.directory.shared.ldap.codec.osgi;
 
 
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;

Modified: directory/shared/branches/milestones/ldap/extras/codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/extras/codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/extras/codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
(original)
+++ directory/shared/branches/milestones/ldap/extras/codec/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Mon Feb 28 19:25:46 2011
@@ -21,7 +21,7 @@ package org.apache.directory.shared.ldap
 
 
 
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.osgi.DefaultLdapCodecService;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;

Modified: directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
(original)
+++ directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
Mon Feb 28 19:25:46 2011
@@ -50,6 +50,7 @@ public class DefaultActivator implements
      */
     public void start( BundleContext bundleContext ) throws Exception
     {
+        System.out.println( "start( BundleContext bundleContext )");
         registration = bundleContext.registerService( LdapProtocolCodecFactory.class.getName(),
factory, null );
         LdapCodecServiceFactory.getSingleton().registerProtocolCodecFactory( factory );
     }

Modified: directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolDecoder.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolDecoder.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolDecoder.java
(original)
+++ directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolDecoder.java
Mon Feb 28 19:25:46 2011
@@ -24,7 +24,7 @@ import java.nio.ByteBuffer;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.directory.shared.ldap.codec.LdapDecoder;
+import org.apache.directory.shared.ldap.codec.api.LdapDecoder;
 import org.apache.directory.shared.ldap.codec.api.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
 import org.apache.directory.shared.ldap.model.message.Message;

Modified: directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolEncoder.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolEncoder.java?rev=1075499&r1=1075498&r2=1075499&view=diff
==============================================================================
--- directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolEncoder.java
(original)
+++ directory/shared/branches/milestones/ldap/net/mina/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/LdapProtocolEncoder.java
Mon Feb 28 19:25:46 2011
@@ -22,8 +22,8 @@ package org.apache.directory.shared.ldap
 
 import java.nio.ByteBuffer;
 
-import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecServiceFactory;
+import org.apache.directory.shared.ldap.codec.api.LdapEncoder;
 import org.apache.directory.shared.ldap.model.message.Message;
 import org.apache.mina.core.buffer.IoBuffer;
 import org.apache.mina.core.session.IoSession;



Mime
View raw message