ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | odettej-commits List | April 2007 Index

    Date Index         Thread Index    

r30 - in trunk: . apps/monitor/src components/api/src/java/org/objectweb/odettej components/api/src/java/org/objectweb/odettej/service components/api/src/java/org/objectweb/odettej/transport components/api/src/java/org/objectweb/odettej/transport/mbgw components/api/src/java/org/objectweb/odettej/transport/tcp components/api/src/test/org/objectweb/odettej components/api/src/test/org/objectweb/odettej/service components/api/src/test/org/objectweb/odettej/transport components/api/src/test/org/objectweb/odettej/transport/tcp components/examples components/examples/src/java/examples/nio components/examples/src/java/examples/odettej


Author: rmarins
Date: 2007-04-03 18:18:16 +0200 (Tue, 03 Apr 2007)
New Revision: 30

Added:
   trunk/apps/monitor/src/test/
   
trunk/components/api/src/java/org/objectweb/odettej/AbstractAuthenticator.java
   
trunk/components/api/src/java/org/objectweb/odettej/AbstractListenerTemplate.java
   
trunk/components/api/src/java/org/objectweb/odettej/AuthenticationException.java
Modified:
   trunk/components/api/src/java/org/objectweb/odettej/AbstractState.java
   
trunk/components/api/src/java/org/objectweb/odettej/EndSessionException.java
   
trunk/components/api/src/java/org/objectweb/odettej/FileTransferException.java
   trunk/components/api/src/java/org/objectweb/odettej/FixedFileMapping.java
   trunk/components/api/src/java/org/objectweb/odettej/IdleState.java
   trunk/components/api/src/java/org/objectweb/odettej/ListenerState.java
   trunk/components/api/src/java/org/objectweb/odettej/ListenerTemplate.java
   trunk/components/api/src/java/org/objectweb/odettej/MappingMode.java
   trunk/components/api/src/java/org/objectweb/odettej/MappingStrategy.java
   trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPEntity.java
   trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPException.java
   trunk/components/api/src/java/org/objectweb/odettej/PeerAuthenticator.java
   trunk/components/api/src/java/org/objectweb/odettej/RecordIterator.java
   trunk/components/api/src/java/org/objectweb/odettej/Session.java
   trunk/components/api/src/java/org/objectweb/odettej/SessionPreferences.java
   trunk/components/api/src/java/org/objectweb/odettej/SpeakerState.java
   trunk/components/api/src/java/org/objectweb/odettej/SystemVirtualFile.java
   trunk/components/api/src/java/org/objectweb/odettej/VirtualFile.java
   
trunk/components/api/src/java/org/objectweb/odettej/VirtualFileMappingException.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/AnswerReason.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/BufferCorruptedException.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/BufferFillingStrategy.java
   trunk/components/api/src/java/org/objectweb/odettej/service/BufferUtil.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/CommandExchangeBuffer.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/CommandFormat.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/CommandIdentifier.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/CommandNotRecognisedException.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/CompressionMapping.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/DataExchangeBuffer.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/EndSessionReason.java
   trunk/components/api/src/java/org/objectweb/odettej/service/EnumUtil.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/InvalidCommandDataException.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/NormalMapping.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/OdetteExchangeBuffer.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/RecordFormat.java
   trunk/components/api/src/java/org/objectweb/odettej/service/Service.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/ServiceUtil.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionBuffer.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionService.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/TransferMode.java
   
trunk/components/api/src/java/org/objectweb/odettej/service/UsualService.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/AddressException.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/ClassloaderTransportFactory.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/ConnectionException.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/NetworkAddress.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/NotConnectedException.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/Transport.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/TransportFactory.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/mbgw/MoreDataBitTransport.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/InternetAddress.java
   
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/TCPTransport.java
   trunk/components/api/src/test/org/objectweb/odettej/AbstractProperties.java
   trunk/components/api/src/test/org/objectweb/odettej/SessionTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/CommandExchangeBufferTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/CommandFormatTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/CommandIdentifierTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/DataExchangeBufferTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/OdetteExchangeBufferTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceUtilTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/service/StreamTransmissionBufferTest.java
   trunk/components/api/src/test/org/objectweb/odettej/service/TestData.java
   
trunk/components/api/src/test/org/objectweb/odettej/transport/TransportTest.java
   
trunk/components/api/src/test/org/objectweb/odettej/transport/tcp/InternetAddressTest.java
   trunk/components/examples/pom.xml
   trunk/components/examples/src/java/examples/nio/BitOperations.java
   trunk/components/examples/src/java/examples/nio/BufferSlicing.java
   trunk/components/examples/src/java/examples/nio/ByteBufferMessing.java
   trunk/components/examples/src/java/examples/nio/ChannelExample.java
   trunk/components/examples/src/java/examples/nio/SocketPortListener.java
   trunk/components/examples/src/java/examples/odettej/FileSending.java
   trunk/components/examples/src/java/examples/odettej/ListeningSupport.java
   trunk/components/examples/src/java/examples/odettej/OdetteServer.java
   trunk/components/examples/src/java/examples/odettej/ReceiveAck.java
   trunk/components/examples/src/java/examples/odettej/ReceivingToDir.java
   trunk/components/examples/src/java/examples/odettej/SendReceive.java
   trunk/components/examples/src/java/examples/odettej/StblessTransport.java
   trunk/pom.xml
Log:
Bug fixes. Copyright notice changed.


Added: 
trunk/components/api/src/java/org/objectweb/odettej/AbstractAuthenticator.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/AbstractAuthenticator.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/AbstractAuthenticator.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -0,0 +1,43 @@
+/**
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2.1 of the License, or (at your option) any later version.
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *  -------------------------------------------------------------------------
+ *  $Id$
+ *  -------------------------------------------------------------------------
+ */
+package org.objectweb.odettej;
+
+/**
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
+ * @since   OdetteJ API 1.0
+ */
+public class AbstractAuthenticator implements PeerAuthenticator {
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.PeerAuthenticator#authenticate(java.lang.String, 
java.lang.String, java.lang.String)
+     */
+    public void authenticate(String remoteUser, String remotePassword,
+            String address)
+            throws OdetteFTPException { }
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.PeerAuthenticator#init(org.objectweb.odettej.Session)
+     */
+    public void init(Session session) { }
+
+}


Property changes on: 
trunk/components/api/src/java/org/objectweb/odettej/AbstractAuthenticator.java
___________________________________________________________________
Name: svn:keywords
   + Date Revision Author Id

Added: 
trunk/components/api/src/java/org/objectweb/odettej/AbstractListenerTemplate.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/AbstractListenerTemplate.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/AbstractListenerTemplate.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -0,0 +1,79 @@
+/**
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2.1 of the License, or (at your option) any later version.
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *  -------------------------------------------------------------------------
+ *  $Id$
+ *  -------------------------------------------------------------------------
+ */
+package org.objectweb.odettej;
+
+import java.util.Date;
+
+import org.objectweb.odettej.service.AnswerReason;
+import org.objectweb.odettej.service.RecordFormat;
+
+/**
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
+ * @since   OdetteJ API 1.0
+ */
+public abstract class AbstractListenerTemplate implements ListenerTemplate {
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.ListenerTemplate#init(org.objectweb.odettej.Session)
+     */
+    public void init(Session context) { }
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.ListenerTemplate#onCloseFile(java.lang.String, 
java.util.Date, java.lang.String, java.lang.String)
+     */
+    public boolean onCloseFile(String datasetName, Date fileDateTime,
+            String destination, String originator)
+            throws OdetteFTPException {
+        return false;
+    }
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.ListenerTemplate#onEndToEndResponse(java.lang.String, 
java.util.Date, java.lang.String, java.lang.String, java.lang.String, 
java.lang.String)
+     */
+    public void onEndToEndResponse(String datasetName, Date fileDateTime,
+            String destination, String originator, String userData,
+            String reserved)
+            throws OdetteFTPException { }
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.ListenerTemplate#onRequestStartFile(java.lang.String, 
java.util.Date, java.lang.String, java.lang.String, 
org.objectweb.odettej.service.RecordFormat, int, int, int, java.lang.String, 
java.lang.String)
+     */
+    public AnswerReason onRequestStartFile(String datasetName,
+            Date fileDateTime, String destination, String originator,
+            RecordFormat format, int maxRecordSize, int fileSizeBlocks,
+            int restartPosition, String userData, String reserved)
+            throws OdetteFTPException {
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see 
org.objectweb.odettej.ListenerTemplate#onStartFile(java.lang.String, 
java.util.Date, java.lang.String, java.lang.String, 
org.objectweb.odettej.service.RecordFormat, int, int, int, java.lang.String, 
java.lang.String)
+     */
+    public VirtualFile onStartFile(String datasetName, Date fileDateTime,
+            String destination, String originator, RecordFormat format,
+            int maxRecordSize, int fileSizeBlocks, int restartPosition,
+            String userData, String reserved)
+            throws OdetteFTPException {
+        return null;
+    }
+}


Property changes on: 
trunk/components/api/src/java/org/objectweb/odettej/AbstractListenerTemplate.java
___________________________________________________________________
Name: svn:keywords
   + Date Revision Author Id

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/AbstractState.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/AbstractState.java    
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/AbstractState.java    
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -32,8 +32,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 abstract class AbstractState implements OdetteFTPEntity {

Added: 
trunk/components/api/src/java/org/objectweb/odettej/AuthenticationException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/AuthenticationException.java
    2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/AuthenticationException.java
    2007-04-03 16:18:16 UTC (rev 30)
@@ -0,0 +1,62 @@
+/**
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2.1 of the License, or (at your option) any later version.
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *  -------------------------------------------------------------------------
+ *  $Id$
+ *  -------------------------------------------------------------------------
+ */
+package org.objectweb.odettej;
+
+/**
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
+ * @since   OdetteJ API 1.0
+ */
+public class AuthenticationException extends OdetteFTPException {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public AuthenticationException() {
+        super();
+    }
+
+    /**
+     * @param message
+     */
+    public AuthenticationException(String message) {
+        super(message);
+    }
+
+    /**
+     * @param message
+     * @param cause
+     */
+    public AuthenticationException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    /**
+     * @param cause
+     */
+    public AuthenticationException(Throwable cause) {
+        super(cause);
+    }
+
+}


Property changes on: 
trunk/components/api/src/java/org/objectweb/odettej/AuthenticationException.java
___________________________________________________________________
Name: svn:keywords
   + Date Revision Author Id

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/EndSessionException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/EndSessionException.java  
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/EndSessionException.java  
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class EndSessionException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/FileTransferException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/FileTransferException.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/FileTransferException.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class FileTransferException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/FixedFileMapping.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/FixedFileMapping.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/FixedFileMapping.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 class FixedFileMapping extends MappingStrategy {

Modified: trunk/components/api/src/java/org/objectweb/odettej/IdleState.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/IdleState.java  
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/IdleState.java  
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 final class IdleState extends AbstractState {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/ListenerState.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/ListenerState.java    
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/ListenerState.java    
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -44,8 +44,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 class ListenerState extends AbstractState {
@@ -183,7 +183,7 @@
                                .getParameter("SFIDFMT"));
                int maxRecordSize = 
Integer.parseInt(sfid.getParameter("SFIDLRECL"));
                int fileSizeBlocks = 
Integer.parseInt(sfid.getParameter("SFIDFSIZ"));
-               long restartPosition = 
Long.parseLong(sfid.getParameter("SFIDREST"));
+               int restartPosition = 
Integer.parseInt(sfid.getParameter("SFIDREST"));
 
                Date fileDateTime = 
ServiceUtil.parseCommandDateTime(fileDate, fileTime);
 
@@ -194,7 +194,7 @@
                        startFileNegativeAnswer(AnswerReason.UNSPECIFIED, 
true);
                        return;
                } else {
-                       AnswerReason answer = 
listenerSupport.requestStartFile(datasetName,
+                       AnswerReason answer = 
listenerSupport.onRequestStartFile(datasetName,
                                        fileDateTime, destination, 
originator, format,
                                        maxRecordSize, fileSizeBlocks, 
restartPosition, userData,
                                        reserved);
@@ -218,7 +218,7 @@
                VirtualFile file = null;
 
                try {
-                       file = listenerSupport.beginStartFile(datasetName, 
fileDateTime,
+                       file = listenerSupport.onStartFile(datasetName, 
fileDateTime,
                                        destination, originator, format, 
maxRecordSize,
                                        fileSizeBlocks, restartPosition, 
userData, reserved);
                } catch (FileTransferException e) {
@@ -407,15 +407,10 @@
                 */
                ListenerTemplate listenerSupport = 
context.getListenerSupport();
 
-               boolean sendEERP = 
listenerSupport.hasDeliveredFile(datasetName,
+               boolean sendEERP = listenerSupport.onCloseFile(datasetName,
                                fileDateTime, transferDestination, 
transferOriginator);
 
                /*
-                * Send End File Positive Answer
-                */
-               endFilePositiveAnswer(sendEERP);
-
-               /*
                 * End To End Response are queued to be sent later when the 
Change
                 * Direction command is received.
                 */
@@ -426,6 +421,11 @@
                                        transferOriginator);
                }
 
+        /*
+         * Send End File Positive Answer
+         */
+        endFilePositiveAnswer(sendEERP);
+
                /* destroy class variables */
                transferDestination = null;
                transferOriginator = null;
@@ -498,37 +498,22 @@
        public void changeDirection() throws OdetteFTPException {
 
                Session context = getContext();
-               SessionPreferences prefs = getPreferences();
-
+       
                /* become Speaker */
                context.changeState(SpeakerState.class);
 
-               if (prefs.getTransferMode() == TransferMode.RECEIVER_ONLY) {
+               /*
+                * Send back lasting EERP commands queued and keep on Sender 
Mode.
+                */
 
-                       /*
-                        * A Change Direction request in the Receiver Only 
mode means that
-                        * the another peer has no more files to be sent, so 
the session
-                        * must be finished.
-                        */
+               Iterator it = eerpQueue.iterator();
+               while (it.hasNext()) {
 
-                       context.state().release();
+                       Map eerp = (Map) it.next();
 
-               } else {
+                       sendQueuedEERP(eerp);
 
-                       /*
-                        * Send back lasting EERP commands queued and keep on 
Sender Mode.
-                        */
-
-                       Iterator it = eerpQueue.iterator();
-                       while (it.hasNext()) {
-
-                               Map eerp = (Map) it.next();
-
-                               sendQueuedEERP(eerp);
-
-                               it.remove();
-                       }
-
+                       it.remove();
                }
 
        }
@@ -542,7 +527,7 @@
                /* delegate delivery acknowledge to the listener support 
object */
                ListenerTemplate support = session.getListenerSupport();
                if (support != null) {
-                       support.fileDelivered(datasetName, fileDateTime, 
destination,
+                       support.onEndToEndResponse(datasetName, fileDateTime, 
destination,
                                        originator, userData, reserved);
                }
 
@@ -579,9 +564,16 @@
 
                if (receivedCmd.getIdentifier() == CommandIdentifier.SSID) {
 
-                       /* check values negotiated on session and do set up */
-                       sessionSetup(sdeb, mode, compression, restart, 
specialLogic,
-                                       window, receivedCmd);
+            try {
+                       /* check values negotiated on session and do set up */
+                       sessionSetup(sdeb, mode, compression, restart, 
specialLogic,
+                                       window, receivedCmd);
+            }
+            /* user authentication failure */
+            catch (AuthenticationException e) {
+                abnormalRelease(EndSessionReason.INVALID_PASSWORD,
+                        e.getMessage());
+            }
 
                } else {
                        abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
@@ -606,6 +598,9 @@
                boolean ssidspec = 
valueOfYesNo(ssid.getParameter("SSIDSPEC"));
                int ssidcred = 
Integer.parseInt(ssid.getParameter("SSIDCRED"));
 
+        prefs.setLocalUser(ssidcode);
+        prefs.setLocalPassword(ssidpswd);
+
                /* check returning credentials */
                requestAuthentication(ssidcode, ssidpswd, 
prefs.getCallingAddress());
 

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/ListenerTemplate.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/ListenerTemplate.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/ListenerTemplate.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -29,12 +29,17 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public interface ListenerTemplate {
 
+    /**
+     * @param context
+     */
+    public void init(Session context);
+
        /**
         * 
         * @param datasetName
@@ -50,9 +55,9 @@
         * @return
         * @throws OdetteFTPException
         */
-       public AnswerReason requestStartFile(String datasetName, Date 
fileDateTime,
+       public AnswerReason onRequestStartFile(String datasetName, Date 
fileDateTime,
                        String destination, String originator, RecordFormat 
format,
-                       int maxRecordSize, int fileSizeBlocks, long 
restartPosition,
+                       int maxRecordSize, int fileSizeBlocks, int 
restartPosition,
                        String userData, String reserved) throws 
OdetteFTPException;
 
        /**
@@ -74,9 +79,9 @@
         * @return
         * @throws OdetteFTPException
         */
-       public VirtualFile beginStartFile(String datasetName, Date 
fileDateTime,
+       public VirtualFile onStartFile(String datasetName, Date fileDateTime,
                        String destination, String originator, RecordFormat 
format,
-                       int maxRecordSize, int fileSizeBlocks, long 
restartPosition,
+                       int maxRecordSize, int fileSizeBlocks, int 
restartPosition,
                        String userData, String reserved) throws 
OdetteFTPException;
 
        /**
@@ -88,12 +93,14 @@
         * 
         * @param datasetName
         * @param fileDateTime
-        * @param destination
-        * @param originator
-        * @return
+        * @param destination OID
+        * @param originator OID
+        * @return <code>true</code> if the file has been delivered to its 
final
+     * destination mailbox. Otherwise, returns <code>false</code> (very 
common
+     * in a clearing center/store-and-forward operation mode)
         * @throws OdetteFTPException
         */
-       public boolean hasDeliveredFile(String datasetName, Date fileDateTime,
+       public boolean onCloseFile(String datasetName, Date fileDateTime,
                        String destination, String originator) throws 
OdetteFTPException;
 
        /**
@@ -121,7 +128,7 @@
         * @param reserved
         * @throws OdetteFTPException
         */
-       public void fileDelivered(String datasetName, Date fileDateTime,
+       public void onEndToEndResponse(String datasetName, Date fileDateTime,
                        String destination, String originator, String 
userData,
                        String reserved) throws OdetteFTPException;
 

Modified: trunk/components/api/src/java/org/objectweb/odettej/MappingMode.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/MappingMode.java      
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/MappingMode.java      
  2007-04-03 16:18:16 UTC (rev 30)
@@ -4,8 +4,8 @@
  * This enumeration serves to identify Virtual File mapping mode, whether
  * it's used for Reading or Writing.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class MappingMode {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/MappingStrategy.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/MappingStrategy.java  
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/MappingStrategy.java  
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 abstract class MappingStrategy {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPEntity.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPEntity.java  
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPEntity.java  
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -37,8 +37,8 @@
  * <code>acceptConnection()</code> should be invoked to start the class
  * instance as a <i>Responder</i>.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public interface OdetteFTPEntity {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPException.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/OdetteFTPException.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
  * <code>OdetteFTPException</code> is the top-level exception thrown by all
  * Odette-J classes.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class OdetteFTPException extends Exception {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/PeerAuthenticator.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/PeerAuthenticator.java  
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/PeerAuthenticator.java  
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -34,13 +34,23 @@
  * Implementing this interfaces users can access databases or others sources 
for
  * checking Odette FTP peer identification, preserving the consonance with
  * OdetteJ API.
- *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
- * @since   OdetteJ API 1.0
+ * 
+ * @author Rafael Marins
+ * @version $Rev$ $Date$
+ * @since OdetteJ API 1.0
  */
 public interface PeerAuthenticator {
 
-       public void authenticate(String remoteUser, String remotePassword,
-                       String address) throws OdetteFTPException;
+    public void init(Session session);
+
+    /**
+     * @param remoteUser
+     * @param remotePassword
+     * @param address
+     * @throws AuthenticationException
+     *             if the requested user validation is not authorized
+     */
+    public void authenticate(String remoteUser, String remotePassword,
+            String address)
+            throws OdetteFTPException;
 }

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/RecordIterator.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/RecordIterator.java   
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/RecordIterator.java   
  2007-04-03 16:18:16 UTC (rev 30)
@@ -6,8 +6,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 class RecordIterator implements Iterator {
@@ -52,4 +52,10 @@
                throw new UnsupportedOperationException();
        }
 
+    /**
+     * @return Returns the recordOffset.
+     */
+    public int getRecordOffset() {
+        return recordOffset;
+    }
 }
\ No newline at end of file

Modified: trunk/components/api/src/java/org/objectweb/odettej/Session.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/Session.java    
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/Session.java    
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -37,8 +37,8 @@
  * The Session class represents a session between Odette FTP entities and is 
not
  * subclassed.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class Session {
@@ -73,10 +73,14 @@
 
        private PeerAuthenticator authenticator = null;
 
-       private ListenerTemplate listenerSupport = null;
+    private boolean initAuthenticator__ = false;
 
-       private Map stateClassMap = new WeakHashMap(1, 2);
+    private ListenerTemplate listenerSupport = null;
 
+    private boolean initListenerSupport__ = false;
+
+       private Map<Class,AbstractState> stateClassMap = new 
WeakHashMap<Class,AbstractState>(1, 2);
+
        /**
         * Class constructor with a given property list used for the new 
Session.
         * 
@@ -173,6 +177,10 @@
        }
 
        ListenerTemplate getListenerSupport() {
+        if (listenerSupport != null && !initListenerSupport__) {
+            listenerSupport.init(this);
+            initListenerSupport__ = true;
+        }
                return listenerSupport;
        }
 
@@ -181,6 +189,10 @@
        }
 
        PeerAuthenticator getAuthenticator() {
+        if (authenticator != null && !initAuthenticator__) {
+            authenticator.init(this);
+            initAuthenticator__ = true;
+        }
                return authenticator;
        }
 

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/SessionPreferences.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/SessionPreferences.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/SessionPreferences.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,5 +1,5 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
+ *  OdetteJ - Open Source Odette FTP Library
  *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
@@ -103,8 +103,8 @@
         return Integer.parseInt(props.getProperty("odette.timeout", "0"));
     }
 
-    public static void setLocalUser(Properties props, String userCode) {
-        props.setProperty("odette.user.code", userCode);
+    public static void setLocalUser(Properties props, String oid) {
+        props.setProperty("odette.user.code", oid);
     }
 
     public static void setLocalPassword(Properties props, String password) {
@@ -280,6 +280,13 @@
     }
 
     /**
+     * @param oid
+     */
+    public void setLocalUser(String oid) {
+        setLocalUser(context, oid);
+    }
+
+    /**
      * @param ci
      */
     public void setLastCommandReceived(CommandIdentifier ci) {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/SpeakerState.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/SpeakerState.java     
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/SpeakerState.java     
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -39,408 +39,407 @@
 import org.objectweb.odettej.service.TransferMode;
 
 /**
- *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
- * @since   OdetteJ API 1.0
+ * 
+ * @author Rafael Marins
+ * @version $Rev$ $Date$
+ * @since OdetteJ API 1.0
  */
 final class SpeakerState extends AbstractState {
 
-       public SpeakerState(Session context) {
-               super(context);
-       }
+    public SpeakerState(Session context) {
+        super(context);
+    }
 
-       protected void listen() throws OdetteFTPException {
-               illegalState();
-       }
+    protected void listen()
+            throws OdetteFTPException {
+        illegalState();
+    }
 
-       public void startSession() throws OdetteFTPException {
+    public void startSession()
+            throws OdetteFTPException {
 
         Session context = getContext();
         SessionPreferences prefs = getPreferences();
 
-               String userCode = prefs.getLocalUser();
-               String password = prefs.getLocalPassword();
-               TransferMode mode = prefs.getTransferMode();
-               boolean restart = prefs.isRestartSupported();
+        String userCode = prefs.getLocalUser();
+        String password = prefs.getLocalPassword();
+        TransferMode mode = prefs.getTransferMode();
+        boolean restart = prefs.isRestartSupported();
 
-               /* Begin Start Session Phase */
-               waitForReadyMessage();
+        /* Begin Start Session Phase */
+        waitForReadyMessage();
 
-               negotiateStartSession(userCode, password, mode, restart);
+        negotiateStartSession(userCode, password, mode, restart);
 
-               /*
-                * As the initiator will always be the Speaker, when is 
specified the
-                * receiver only just change direction after establishing a 
session.
-                */
-               if (prefs.getTransferMode() == TransferMode.RECEIVER_ONLY) {
-                       context.state().changeDirection();
-               }
-       }
+        /*
+         * As the initiator will always be the Speaker, when is specified the
+         * receiver only just change direction after establishing a session.
+         */
+        if (prefs.getTransferMode() == TransferMode.RECEIVER_ONLY) {
+            context.state().changeDirection();
+        }
+    }
 
-       public void startFile(VirtualFile file, String destination,
-                       String originator, String userData, String reserved)
-                       throws OdetteFTPException {
+    public void startFile(VirtualFile file, String destination,
+            String originator, String userData, String reserved)
+            throws OdetteFTPException {
 
-               Session context = getContext();
+        Session context = getContext();
 
-               /**
-                * Sending Start File command.
-                */
-               RecordFormat fmt = file.getFormat();
-               int maxRecordSize = (fmt == TEXTFILE || fmt == UNSTRUCTURED ? 
0 : file.getRecordSize());
+        /**
+         * Sending Start File command.
+         */
+        RecordFormat fmt = file.getFormat();
+        int maxRecordSize = (fmt == TEXTFILE || fmt == UNSTRUCTURED ? 0 : 
file
+                .getRecordSize());
 
-               CommandExchangeBuffer sfid;
-               sfid = CommandExchangeBuffer.startFile(file.getDatasetName(), 
"", file
-                               .getDateTime(), userData, destination, 
originator, fmt,
-                               maxRecordSize, file.getFileSize(), 
file.getOffset());
+        CommandExchangeBuffer sfid;
+        sfid = CommandExchangeBuffer.startFile(file.getDatasetName(), "", 
file
+                .getDateTime(), userData, destination, originator, fmt,
+                maxRecordSize, file.getFileSize(), file.getOffset());
 
-               send(sfid);
+        send(sfid);
 
-               /**
-                * Receiving the Start File Answer command.
-                */
-               CommandExchangeBuffer answer = (CommandExchangeBuffer) 
receive();
+        /**
+         * Receiving the Start File Answer command.
+         */
+        CommandExchangeBuffer answer = (CommandExchangeBuffer) receive();
 
-               if (answer.getIdentifier() == CommandIdentifier.SFPA) {
-                       int answerCount = 
Integer.parseInt(answer.getParameter("SFPAACNT"));
-                       if ((answerCount < file.getOffset()) && (answerCount 
>= 0)) {
-                               /* reset restart offset with the new value */
-                               file.setOffset(answerCount);
+        if (answer.getIdentifier() == CommandIdentifier.SFPA) {
+            int answerCount = Integer
+                    .parseInt(answer.getParameter("SFPAACNT"));
+            if ((answerCount < file.getOffset()) && (answerCount >= 0)) {
+                /* reset restart offset with the new value */
+                file.setOffset(answerCount);
 
-                       } else if (answerCount > file.getOffset()) {
-                               
abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                               "Returned restart position 
greater than specified.");
-                       }
+            } else if (answerCount > file.getOffset()) {
+                abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                        "Returned restart position greater than specified.");
+            }
 
-                       /* Start File Positive Answer acts as a implicit 
Credit command */
-                       resetCredits();
+            /* Start File Positive Answer acts as a implicit Credit command 
*/
+            resetCredits();
 
-               } else if (answer.getIdentifier() == CommandIdentifier.SFNA) {
-                       /* Start File Negative Answer */
-                       CommandExchangeBuffer command = 
(CommandExchangeBuffer) answer;
+        } else if (answer.getIdentifier() == CommandIdentifier.SFNA) {
+            /* Start File Negative Answer */
+            CommandExchangeBuffer command = (CommandExchangeBuffer) answer;
 
-                       String code = command.getParameter("SFNAREAS");
-                       AnswerReason reason = (AnswerReason) 
AnswerReason.parse(code);
-                       throw new FileTransferException(reason, "Start File 
Negative "
-                                       + "Answer: " + code);
+            String code = command.getParameter("SFNAREAS");
+            AnswerReason reason = (AnswerReason) AnswerReason.parse(code);
+            throw new FileTransferException(reason, "Start File Negative "
+                    + "Answer: " + code);
 
-               } else if (answer.getIdentifier() != CommandIdentifier.SFPA) {
-                       /* Unexpected command */
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                       "SFPA or SFNA commands were 
expected");
-               }
+        } else if (answer.getIdentifier() != CommandIdentifier.SFPA) {
+            /* Unexpected command */
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                    "SFPA or SFNA commands were expected");
+        }
 
-               context.setFile(file);
-       }
+        context.setFile(file);
+    }
 
-       public void dataRegime() throws OdetteFTPException {
+    public void dataRegime()
+            throws OdetteFTPException {
 
-               Session context = getContext();
+        Session context = getContext();
 
-               SessionPreferences prefs = getPreferences();
-               boolean compression = prefs.isCompressionSupported();
-               int sdeb = prefs.getBufferSize();
+        SessionPreferences prefs = getPreferences();
+        boolean compression = prefs.isCompressionSupported();
+        int sdeb = prefs.getBufferSize();
 
-               VirtualFile file = context.getFile();
+        VirtualFile file = context.getFile();
 
-               /**
-                * Data Exchange phase.
-                */
+        /**
+         * Data Exchange phase.
+         */
 
-               Iterator it = new RecordIterator(file);
-               DataExchangeBuffer deb = new DataExchangeBuffer(sdeb);
+        Iterator it = new RecordIterator(file);
+        DataExchangeBuffer deb = new DataExchangeBuffer(sdeb);
 
-               boolean lastRecord;
-               ByteBuffer record;
+        boolean lastRecord;
+        ByteBuffer record;
 
-               while (it.hasNext()) {
+        while (it.hasNext()) {
 
-                       record = (ByteBuffer) it.next();
-                       lastRecord = it.hasNext();
+            record = (ByteBuffer) it.next();
+            lastRecord = it.hasNext();
 
-                       while (record.hasRemaining()) {
+            while (record.hasRemaining()) {
 
-                               deb.fill(record, compression, 
file.getFormat(), lastRecord);
+                deb.fill(record, compression, file.getFormat(), lastRecord);
 
-                               if ((!deb.hasRemaining()) || (!it.hasNext())) 
{
-                                       deb.prepareSubmit();
-                                       sendData(deb);
+                if ((!deb.hasRemaining()) || (!it.hasNext())) {
+                    deb.prepareSubmit();
+                    sendData(deb);
 
-                                       deb.clear();
-                               }
+                    deb.clear();
+                }
 
-                       }
-               }
+            }
+        }
 
-       }
+    }
 
-       private void sendData(DataExchangeBuffer data) throws 
OdetteFTPException {
+    private void sendData(DataExchangeBuffer data)
+            throws OdetteFTPException {
 
-//             try {
-//                     Thread.sleep(1000);
-//             } catch (InterruptedException e) {
-//                     // TODO Auto-generated catch block
-//                     e.printStackTrace();
-//             }
+        send(data);
 
-               send(data);
+        consumeCredit();
 
-               consumeCredit();
+        if (!hasCredits()) {
+            waitSetCredit();
+            resetCredits();
+        }
+    }
 
-               if (!hasCredits()) {
-                       waitSetCredit();
-                       resetCredits();
-               }
-       }
+    private void waitSetCredit()
+            throws OdetteFTPException {
 
-       private void waitSetCredit() throws OdetteFTPException {
+        OdetteExchangeBuffer cdt = receive();
 
-               OdetteExchangeBuffer cdt = receive();
+        if (cdt.getIdentifier() == CommandIdentifier.CDT) {
+            resetCredits();
 
-               if (cdt.getIdentifier() == CommandIdentifier.CDT) {
-                       resetCredits();
+        } else {
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION);
+        }
 
-               } else {
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION);
-               }
+    }
 
-       }
+    public void closeFile(int recordCount, long unitCount)
+            throws OdetteFTPException {
 
-       public void closeFile(int recordCount, long unitCount)
-                       throws OdetteFTPException {
+        Session context = getContext();
 
-               Session context = getContext();
+        VirtualFile file = context.getFile();
 
-               VirtualFile file = context.getFile();
+        /**
+         * End File command.
+         */
 
-               /**
-                * End File command.
-                */
+        if ((file.getFormat() == RecordFormat.UNSTRUCTURED)
+                || (file.getFormat() == RecordFormat.TEXTFILE)) {
 
-               if ((file.getFormat() == RecordFormat.UNSTRUCTURED)
-                               || (file.getFormat() == 
RecordFormat.TEXTFILE)) {
+            recordCount = 0;
+        }
 
-                       recordCount = 0;
-               }
+        CommandExchangeBuffer efid;
+        efid = CommandExchangeBuffer.endFile(recordCount, unitCount);
 
-               CommandExchangeBuffer efid;
-               efid = CommandExchangeBuffer.endFile(recordCount, unitCount);
+        send(efid);
 
-               send(efid);
+        /**
+         * Receiving the End File Answer command.
+         */
+        CommandExchangeBuffer answer = (CommandExchangeBuffer) receive();
+        CommandIdentifier ci = answer.getIdentifier();
 
-               /**
-                * Receiving the End File Answer command.
-                */
-               CommandExchangeBuffer answer = (CommandExchangeBuffer) 
receive();
-               CommandIdentifier ci = answer.getIdentifier();
+        if ((ci != CommandIdentifier.EFPA) && (ci != 
CommandIdentifier.EFNA)) {
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                    "Invalid command: " + ci
+                            + ". EFPA or EFNA commands is expected");
+        }
 
-               if ((ci == CommandIdentifier.EFPA) || (ci == 
CommandIdentifier.EFNA)) {
+        boolean turnDirection = false;
 
-               } else {
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                       "EFPA or EFNA commands is expected");
-               }
+        if (ci == CommandIdentifier.EFPA) {
+            turnDirection = answer.getParameter("EFPACD").equals("Y");
 
-               boolean turnDirection = false;
+        } else if (ci == CommandIdentifier.EFNA) {
+            String code = answer.getParameter("EFNAREAS");
+            AnswerReason reason = (AnswerReason) AnswerReason.parse(code);
+            throw new FileTransferException(reason, "End File Negative "
+                    + "Answer: " + code);
+        }
 
-               if (ci == CommandIdentifier.EFPA) {
-                       turnDirection = 
answer.getParameter("EFPACD").equals("Y");
+        if (turnDirection) {
+            changeDirection();
+        }
 
-               } else if (ci == CommandIdentifier.EFNA) {
-                       String code = answer.getParameter("EFNAREAS");
-                       AnswerReason reason = (AnswerReason) 
AnswerReason.parse(code);
-                       throw new FileTransferException(reason, "End File 
Negative "
-                                       + "Answer: " + code);
-               }
+    }
 
-               if (turnDirection) {
-                       changeDirection();
-               }
+    public void changeDirection()
+            throws OdetteFTPException {
 
-       }
+        Session context = getContext();
+        SessionPreferences prefs = getPreferences();
 
-       public void changeDirection() throws OdetteFTPException {
+        /**
+         * Sending Change Direction command.
+         */
+        CommandExchangeBuffer cd = CommandExchangeBuffer.changeDirection();
 
-               Session context = getContext();
-               SessionPreferences prefs = getPreferences();
+        send(cd);
 
-//             if (prefs.getTransferMode() == TransferMode.SENDER_ONLY) {
-//                     abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE, 
"CD command "
-//                                     + "not acceptable in the Sender Only 
transfer mode");
-//             }
+        context.changeState(ListenerState.class);
+        context.state().listen();
+    }
 
-               /**
-                * Sending Change Direction command.
-                */
-               CommandExchangeBuffer cd = 
CommandExchangeBuffer.changeDirection();
+    public void endToEndResponse(String datasetName, Date fileDateTime,
+            String destination, String originator, String userData,
+            String reserved)
+            throws OdetteFTPException {
 
-               send(cd);
+        CommandExchangeBuffer eerp;
 
-               context.changeState(ListenerState.class);
-               context.state().listen();
-       }
+        /**
+         * Send EERP command.
+         */
 
-       public void endToEndResponse(String datasetName, Date fileDateTime,
-                       String destination, String originator, String 
userData,
-                       String reserved) throws OdetteFTPException {
+        /* F_EERP_RQ */
+        eerp = CommandExchangeBuffer.endToEndResponse(datasetName, "",
+                fileDateTime, userData, destination, originator);
 
-               CommandExchangeBuffer eerp;
+        send(eerp);
 
-               /**
-                * Send EERP command.
-                */
+        /**
+         * Wait for receiving the Ready to Receive command.
+         */
+        OdetteExchangeBuffer answer = receive();
 
-               /* F_EERP_RQ */
-               eerp = CommandExchangeBuffer.endToEndResponse(datasetName, "",
-                               fileDateTime, userData, destination, 
originator);
+        /* violation */
+        if (answer.getIdentifier() != CommandIdentifier.RTR) {
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                    "RTR command is expected");
+        }
+    }
 
-               send(eerp);
+    private void illegalState()
+            throws OdetteFTPException {
+        throw new IllegalStateException("Speaker state doesn't support this "
+                + "operation");
+    }
 
-               /**
-                * Wait for receiving the Ready to Receive command.
-                */
-               OdetteExchangeBuffer answer = receive();
+    private void waitForReadyMessage()
+            throws OdetteFTPException {
 
-               /* violation */
-               if (answer.getIdentifier() != CommandIdentifier.RTR) {
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                       "RTR command is expected");
-               }
-       }
+        // receive ssrm command
+        OdetteExchangeBuffer ssrm = receive();
 
-       private void illegalState() throws OdetteFTPException {
-               throw new IllegalStateException("Speaker state doesn't 
support this "
-                               + "operation");
-       }
+        // check if is corresponding identifier
+        if (ssrm.getIdentifier() != CommandIdentifier.SSRM) {
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                    "SSRM command expected");
+        }
+    }
 
-       private void waitForReadyMessage() throws OdetteFTPException {
+    private void negotiateStartSession(String userCode, String password,
+            TransferMode mode, boolean restart)
+            throws OdetteFTPException {
 
-               // receive ssrm command
-               OdetteExchangeBuffer ssrm = receive();
+        Session context = getContext();
+        SessionPreferences prefs = getPreferences();
 
-               // check if is corresponding identifier
-               if (ssrm.getIdentifier() != CommandIdentifier.SSRM) {
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                       "SSRM command expected");
-               }
-       }
+        /*
+         * Retrieve and check session parameters.
+         */
+        int sdeb = prefs.getBufferSize();
+        boolean compression = prefs.isCompressionSupported();
+        boolean specialLogic = prefs.hasSpecialLogic();
+        int window = prefs.getWindowSize();
+        String userData = prefs.getUserData();
 
-       private void negotiateStartSession(String userCode, String password,
-                       TransferMode mode, boolean restart) throws 
OdetteFTPException {
+        checkStartSession(context, sdeb, window, compression, mode, restart);
 
-               Session context = getContext();
-               SessionPreferences prefs = getPreferences();
+        /*
+         * Sending Start Session command.
+         */
+        String reserved = "";
+        CommandExchangeBuffer ssid = CommandExchangeBuffer.startSession(
+                userCode, password, sdeb, mode, compression, restart,
+                specialLogic, window, reserved, userData);
 
-               /*
-                * Retrieve and check session parameters.
-                */
-               int sdeb = prefs.getBufferSize();
-               boolean compression = prefs.isCompressionSupported();
-               boolean specialLogic = prefs.hasSpecialLogic();
-               int window = prefs.getWindowSize();
-               String userData = prefs.getUserData();
+        send(ssid);
 
-               checkStartSession(context, sdeb, window, compression, mode, 
restart);
+        /*
+         * Receiving Start Session command.
+         */
+        CommandExchangeBuffer receivedCmd = (CommandExchangeBuffer) 
receive();
 
-               /*
-                * Sending Start Session command.
-                */
-               String reserved = "";
-               CommandExchangeBuffer ssid = 
CommandExchangeBuffer.startSession(
-                               userCode, password, sdeb, mode, compression, 
restart,
-                               specialLogic, window, reserved, userData);
+        if (receivedCmd.getIdentifier() == CommandIdentifier.SSID) {
 
-               send(ssid);
+            /* check values negotiated on session and do set up */
+            sessionSetup(userCode, password, sdeb, mode, compression, 
restart,
+                    specialLogic, window, receivedCmd);
 
-               /*
-                * Receiving Start Session command.
-                */
-               CommandExchangeBuffer receivedCmd = (CommandExchangeBuffer) 
receive();
+        } else {
+            abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
+                    "SSID commands were expected");
+        }
+    }
 
-               if (receivedCmd.getIdentifier() == CommandIdentifier.SSID) {
+    private void sessionSetup(String userCode, String password, int sdeb,
+            TransferMode mode, boolean compression, boolean restart,
+            boolean specialLogic, int window, CommandExchangeBuffer ssid)
+            throws OdetteFTPException {
 
-                       /* check values negotiated on session and do set up */
-                       sessionSetup(userCode, password, sdeb, mode, 
compression, restart,
-                                       specialLogic, window, receivedCmd);
+        Session context = getContext();
+        SessionPreferences prefs = getPreferences();
 
-               } else {
-                       abnormalRelease(EndSessionReason.PROTOCOL_VIOLATION,
-                                       "SSID commands were expected");
-               }
-       }
+        String ssidcode = ssid.getParameter("SSIDCODE");
+        String ssidpswd = ssid.getParameter("SSIDPSWD");
+        int ssidsdeb = Integer.parseInt(ssid.getParameter("SSIDSDEB"));
+        TransferMode ssidsr = (TransferMode) TransferMode.parse(ssid
+                .getParameter("SSIDSR"));
+        boolean ssidcmpr = valueOfYesNo(ssid.getParameter("SSIDCMPR"));
+        boolean ssidrest = valueOfYesNo(ssid.getParameter("SSIDREST"));
+        boolean ssidspec = valueOfYesNo(ssid.getParameter("SSIDSPEC"));
+        int ssidcred = Integer.parseInt(ssid.getParameter("SSIDCRED"));
 
-       private void sessionSetup(String userCode, String password, int sdeb,
-                       TransferMode mode, boolean compression, boolean 
restart,
-                       boolean specialLogic, int window, 
CommandExchangeBuffer ssid)
-                       throws OdetteFTPException {
+        if ((!compression) && (ssidcmpr)) {
+            abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
+                    "peer used compression");
+        }
 
-               Session context = getContext();
-               SessionPreferences prefs = getPreferences();
+        if ((!restart) && (ssidrest)) {
+            abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
+                    "peer used restart");
+        }
 
-               String ssidcode = ssid.getParameter("SSIDCODE");
-               String ssidpswd = ssid.getParameter("SSIDPSWD");
-               int ssidsdeb = 
Integer.parseInt(ssid.getParameter("SSIDSDEB"));
-               TransferMode ssidsr = (TransferMode) TransferMode.parse(ssid
-                               .getParameter("SSIDSR"));
-               boolean ssidcmpr = 
valueOfYesNo(ssid.getParameter("SSIDCMPR"));
-               boolean ssidrest = 
valueOfYesNo(ssid.getParameter("SSIDREST"));
-               boolean ssidspec = 
valueOfYesNo(ssid.getParameter("SSIDSPEC"));
-               int ssidcred = 
Integer.parseInt(ssid.getParameter("SSIDCRED"));
+        TransferMode ssidsrReversed = ssidsr.getReversed();
+        if ((mode != TransferMode.BOTH) && (mode != ssidsrReversed)) {
+            abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
+                    "mode must be: " + mode);
+        }
 
-               if ((!compression) && (ssidcmpr)) {
-                       abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
-                                       "peer used compression");
-               }
+        if (specialLogic != ssidspec) {
+            abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
+                    "wrong special logic indicator specified by peer");
+        }
 
-               if ((!restart) && (ssidrest)) {
-                       abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
-                                       "peer used restart");
-               }
+        if ((ssidsdeb > sdeb) || bufferSizeViolation(ssidsdeb, context)) {
+            abnormalRelease(EndSessionReason.INVALID_COMMAND_DATA, "peer "
+                    + "used a invalid exchange buffer size: " + ssidsdeb);
+        }
 
-               TransferMode ssidsrReversed = ssidsr.getReversed();
-               if ((mode != TransferMode.BOTH) && (mode != ssidsrReversed)) {
-                       abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
-                                       "mode must be: " + mode);
-               }
+        if ((ssidcred > window) || windowSizeViolation(ssidcred, context)) {
+            abnormalRelease(EndSessionReason.INVALID_COMMAND_DATA, "peer "
+                    + "used a invalid window size (credits): " + ssidcred);
+        }
 
-               if (specialLogic != ssidspec) {
-                       abnormalRelease(EndSessionReason.INCOMPATIBLE_MODE,
-                                       "wrong special logic indicator 
specified by peer");
-               }
+        prefs.setCompressionSupport(ssidcmpr);
+        prefs.setRestartSupport(ssidrest);
+        prefs.setTransferMode(ssidsrReversed);
+        prefs.setSpecialLogic(ssidspec);
+        prefs.setBufferSize(ssidsdeb);
+        prefs.setWindowSize(ssidcred);
 
-               if ((ssidsdeb > sdeb) || bufferSizeViolation(ssidsdeb, 
context)) {
-                       
abnormalRelease(EndSessionReason.INVALID_COMMAND_DATA, "peer "
-                                       + "used a invalid exchange buffer 
size: " + ssidsdeb);
-               }
+        /* check returning credentials */
+        requestAuthentication(ssidcode, ssidpswd, prefs.getCalledAddress());
+    }
 
-               if ((ssidcred > window) || windowSizeViolation(ssidcred, 
context)) {
-                       
abnormalRelease(EndSessionReason.INVALID_COMMAND_DATA, "peer "
-                                       + "used a invalid window size 
(credits): " + ssidcred);
-               }
+    protected void setCredits(int windowSize) {
+        Session context = getContext();
+        context.setProperty("odette.credits.speaker", String
+                .valueOf(windowSize));
+    }
 
-               prefs.setCompressionSupport(ssidcmpr);
-               prefs.setRestartSupport(ssidrest);
-               prefs.setTransferMode(ssidsrReversed);
-               prefs.setSpecialLogic(ssidspec);
-               prefs.setBufferSize(ssidsdeb);
-               prefs.setWindowSize(ssidcred);
+    public int getCredits() {
+        Session context = getContext();
+        String credits = context.getProperty("odette.credits.speaker");
 
-               /* check returning credentials */
-               requestAuthentication(ssidcode, ssidpswd, 
prefs.getCalledAddress());
-       }
+        return Integer.parseInt(credits);
+    }
 
-       protected void setCredits(int windowSize) {
-               Session context = getContext();
-               context.setProperty("odette.credits.speaker", String
-                               .valueOf(windowSize));
-       }
-
-       public int getCredits() {
-               Session context = getContext();
-               String credits = 
context.getProperty("odette.credits.speaker");
-
-               return Integer.parseInt(credits);
-       }
-
 }

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/SystemVirtualFile.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/SystemVirtualFile.java  
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/SystemVirtualFile.java  
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -32,8 +32,8 @@
 import org.objectweb.odettej.service.RecordFormat;
 
 /**
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class SystemVirtualFile implements VirtualFile {
@@ -137,7 +137,7 @@
 
                if ((recordFormat == RecordFormat.TEXTFILE)
                                || (recordFormat == 
RecordFormat.UNSTRUCTURED)) {
-                       recordSize = BLOCK_SIZE;
+                       recordSize = DEFAULT_BLOCK_SIZE;
                }
 
                this.format = recordFormat;
@@ -189,8 +189,8 @@
 
                long octets = getUnitCount();
 
-               blocks = (int) (octets / BLOCK_SIZE);
-               if ((octets % BLOCK_SIZE) > 0) {
+               blocks = (int) (octets / DEFAULT_BLOCK_SIZE);
+               if ((octets % DEFAULT_BLOCK_SIZE) > 0) {
                        blocks++;
                }
 

Modified: trunk/components/api/src/java/org/objectweb/odettej/VirtualFile.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/VirtualFile.java      
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/VirtualFile.java      
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -29,8 +29,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public interface VirtualFile {
@@ -38,7 +38,7 @@
        /**
         * File size's block length in octets.
         */
-       final int BLOCK_SIZE = 1024;
+       final int DEFAULT_BLOCK_SIZE = 1024;
 
        /**
         * @return

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/VirtualFileMappingException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/VirtualFileMappingException.java
        2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/VirtualFileMappingException.java
        2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -24,8 +24,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class VirtualFileMappingException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/AnswerReason.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/AnswerReason.java 
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/AnswerReason.java 
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -46,8 +46,8 @@
  *               99 - Unspecified reason.
  * </pre>
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class AnswerReason {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferCorruptedException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferCorruptedException.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferCorruptedException.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@
  * the Exchange Buffer as determined by the Stream Transmission Header is
  * different to the length implied by the Command Code.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class BufferCorruptedException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferFillingStrategy.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferFillingStrategy.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferFillingStrategy.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
+ * @author  Rafael Marins
  * @version $Revision$ $Date$
  * @since   OdetteJ API 1.0
  */

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferUtil.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferUtil.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/BufferUtil.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class BufferUtil {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandExchangeBuffer.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandExchangeBuffer.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandExchangeBuffer.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -38,8 +38,8 @@
  * of the buffer. Commands and data are never mixed within an Exchange 
Buffer.
  * Each command has a fixed length and can not be compressed.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class CommandExchangeBuffer extends OdetteExchangeBuffer {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandFormat.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandFormat.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandFormat.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -35,8 +35,8 @@
  * format. Command is a sequence of plain fields, which type should be 
Numeric
  * or Alphanumeric, and format Fixed or Variable.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 class CommandFormat implements Serializable {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandIdentifier.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandIdentifier.java
  2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandIdentifier.java
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -37,8 +37,8 @@
  * The CommandIdentifier class provide type safe instances to distinguish 
every
  * Exchange Buffer over all supported commands types.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class CommandIdentifier {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandNotRecognisedException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandNotRecognisedException.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/CommandNotRecognisedException.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
  * The exception thrown when parsing or using an Exchange Buffer that 
contains
  * an invalid command code (1st octet of the buffer).
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class CommandNotRecognisedException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/CompressionMapping.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/CompressionMapping.java
 2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/CompressionMapping.java
 2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -31,8 +31,8 @@
  * Mapping Strategy. This implementation provide an algorithm for filling
  * buffers when compression option is set at Odette FTP session setup.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  * @see org.objectweb.odettej.service.BufferFillingStrategy
  */

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/DataExchangeBuffer.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/DataExchangeBuffer.java
 2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/DataExchangeBuffer.java
 2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@
  * DataExchange is an type of Odette FTP Exchange Buffer used for encapsulate
  * and transmit of Virtual File records.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class DataExchangeBuffer extends OdetteExchangeBuffer {
@@ -115,34 +115,6 @@
                return strategy.scrape(compression, format);
        }
 
-       // public ByteBuffer getRealBuffer() throws OdetteFTPException {
-       //
-       // int realBufferSize = 0;
-       // List<ByteBuffer> bufferList = new LinkedList<ByteBuffer>();
-       //
-       // /* run all subrecords getting real data and count total size */
-       // Iterator<Subrecord> subIt = getSubrecordIterator();
-       // while (subIt.hasNext()) {
-       // Subrecord sub = subIt.next();
-       // ByteBuffer realData = sub.getRealData();
-       //
-       // realBufferSize += realData.capacity();
-       // bufferList.add(realData);
-       // }
-       //
-       // /* allocate the real buffer to be filled and returned */
-       // ByteBuffer realBuffer = ByteBuffer.allocateDirect(realBufferSize);
-       //
-       // Iterator<ByteBuffer> bufIt = bufferList.iterator();
-       // while (bufIt.hasNext()) {
-       // ByteBuffer realData = bufIt.next();
-       // realBuffer.put(realData);
-       // }
-       //
-       // realBuffer.rewind();
-       // return realBuffer;
-       // }
-
        public boolean hasRemaining() {
                return (buffer.remaining() >= MIN_SUBRECORD_LENGTH);
        }

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/EndSessionReason.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/EndSessionReason.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/EndSessionReason.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -46,8 +46,8 @@
  *                 99 - Unspecified Abort code.
  * </pre>
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class EndSessionReason {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/EnumUtil.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/service/EnumUtil.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/service/EnumUtil.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 final class EnumUtil {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/InvalidCommandDataException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/InvalidCommandDataException.java
        2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/InvalidCommandDataException.java
        2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
  * This exception is thrown when a command contains invalid data. A field 
within
  * the command may be wrong formatted or have unexpected data.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class InvalidCommandDataException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/NormalMapping.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/NormalMapping.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/NormalMapping.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 class NormalMapping extends BufferFillingStrategy {
@@ -50,12 +50,6 @@
 
                ByteBuffer buffer = getBuffer();
 
-               // /* zero length record may appear anywhere in the exchange 
buffer */
-               // if ((recordFormat == TEXTFILE) && (record.capacity() == 
0)) {
-               // // this indicate a new line (~ new blank record)
-               // total += addSubrecord(buffer, record, true);
-               // }
-
                /*
                 * Fill the current Data Exchange Buffer while there's still
                 * considerable space free.

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/OdetteExchangeBuffer.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/OdetteExchangeBuffer.java
       2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/OdetteExchangeBuffer.java
       2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -33,8 +33,8 @@
  * and receiving messages in Exchange Buffers via the transport layer. An 
Odette
  * Exchange Buffer can have either a Command or Data buffer.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public abstract class OdetteExchangeBuffer {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/RecordFormat.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/RecordFormat.java 
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/RecordFormat.java 
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -29,8 +29,8 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class RecordFormat implements Serializable {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/Service.java
===================================================================
--- trunk/components/api/src/java/org/objectweb/odettej/service/Service.java  
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/java/org/objectweb/odettej/service/Service.java  
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public abstract class Service {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/ServiceUtil.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/ServiceUtil.java  
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/ServiceUtil.java  
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class ServiceUtil {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionBuffer.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionBuffer.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionBuffer.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -31,8 +31,8 @@
  * The reason of the Stream Transmission Buffer as in the specification is to
  * encapsulate the Odette Exchange Buffer in an application level flow 
control.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class StreamTransmissionBuffer implements Serializable {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionService.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionService.java
  2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/StreamTransmissionService.java
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -38,8 +38,8 @@
  * exist or not, but it makes sense to link the Odette Entity and the 
(network)
  * transport layer.
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class StreamTransmissionService extends Service {
@@ -86,15 +86,33 @@
                        sth = 
ByteBuffer.allocateDirect(StreamTransmissionBuffer.HEADER_LENGTH);
 
                sth.clear();
-        while (sth.hasRemaining()) transport.receive(sth);
+        while (sth.hasRemaining())  {
+            transport.receive(sth);
 
+            if (sth.hasRemaining()) {
+                try {
+                    Thread.sleep(transport.getLinger());
+                } catch (InterruptedException e) {
+                    // do nothing
+                }
+            }
+
+        }
+
                int blength = BufferUtil.parseHeaderLengthField(sth);
         ByteBuffer stb = ByteBuffer.allocateDirect(blength);
 
                sth.rewind();
                stb.put(sth);
 
-               while (stb.hasRemaining()) transport.receive(stb);
+               while (stb.hasRemaining()) {
+            transport.receive(stb);
+            try {
+                Thread.sleep(transport.getLinger());
+            } catch (InterruptedException e) {
+                // do nothing
+            }
+        }
 
                stb.rewind();
                return stb;

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/TransferMode.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/TransferMode.java 
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/TransferMode.java 
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public final class TransferMode {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/service/UsualService.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/service/UsualService.java 
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/service/UsualService.java 
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -19,7 +19,6 @@
  *  $Id: UsualService.java,v 1.5 2005/09/11 14:23:57 rmarins Exp $
  *  ------------------------------------------------------------------------
  */
-
 package org.objectweb.odettej.service;
 
 import java.nio.ByteBuffer;
@@ -30,8 +29,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class UsualService extends Service {
@@ -159,4 +158,5 @@
 
                return octetsSent;
        }
+
 }

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/AddressException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/AddressException.java
 2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/AddressException.java
 2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 /**
  * Exception thrown when a wrongly formatted address is encountered.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class AddressException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/ClassloaderTransportFactory.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/ClassloaderTransportFactory.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/ClassloaderTransportFactory.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -33,8 +33,8 @@
  * object instantiation. A common Classloader is used from the current 
running
  * Thread.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  * @see org.objectweb.odettej.transport.TransportFactory
  */

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/ConnectionException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/ConnectionException.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/ConnectionException.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 /**
  * The exception thrown when a network connection error occur.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class ConnectionException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/NetworkAddress.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/NetworkAddress.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/NetworkAddress.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -32,8 +32,8 @@
  * It provides a general model object used throughout API for making
  * connections.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public abstract class NetworkAddress implements Serializable {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/NotConnectedException.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/NotConnectedException.java
    2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/NotConnectedException.java
    2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
  * When any method that depends on the connection of the underlying 
transport is
  * invoked and there isn't an established connection this exception is 
thrown.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class NotConnectedException extends OdetteFTPException {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/Transport.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/Transport.java  
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/Transport.java  
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -31,8 +31,8 @@
  * required by Odette FTP peer entities to with each via the underlying OSI
  * model Network Service provider.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public interface Transport {
@@ -172,4 +172,11 @@
         */
        public abstract void setTimeout(int milliseconds);
 
+    /**
+     * Get transport specific linger timeout for waiting to perform a read
+     * operation in the stream until the buffer is full.
+     * @return milliseconds
+     */
+    public abstract int getLinger();
+
 }
\ No newline at end of file

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/TransportFactory.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/TransportFactory.java
 2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/TransportFactory.java
 2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
  * Factory contract used to create (instantiation) a class implementing
  * <code>Transport</code> interface.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public abstract class TransportFactory {

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/mbgw/MoreDataBitTransport.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/mbgw/MoreDataBitTransport.java
        2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/mbgw/MoreDataBitTransport.java
        2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -41,8 +41,8 @@
  * gateways. It have been specific used with <i>Access</i> equipments by
  * Microtronix (http://www.microtronix.com/).
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  * @see org.objectweb.odettej.transport.Transport
  */
@@ -90,14 +90,23 @@
         */
        public synchronized int receive(ByteBuffer dest) throws 
OdetteFTPException {
 
-//             int entryLimit = -1;
-
                if (receivingCount == 0) {
 
                        mbitHeader.rewind();
                        mbitHeader.clear();
-                       super.receive(mbitHeader);
 
+            while (mbitHeader.hasRemaining()) {
+
+                super.receive(mbitHeader);
+                if (mbitHeader.hasRemaining()) {
+                    try {
+                        Thread.sleep(getLinger());
+                    } catch (InterruptedException e) {
+                        // do nothing
+                    }
+                }
+            }
+
                        mbitHeader.rewind();
                        receivingCount = mbitHeader.getShort();
                }
@@ -105,7 +114,6 @@
                int amount = 0;
 
                if (receivingCount < dest.remaining()) {
-//                     entryLimit = dest.limit();
                        dest.limit(dest.position() + receivingCount);
                }
 
@@ -115,10 +123,6 @@
                        amount += count;
                }
 
-//             if (entryLimit != -1) {
-//                     dest.limit(entryLimit);
-//             }
-
                return amount;
        }
 

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/InternetAddress.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/InternetAddress.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/InternetAddress.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -35,8 +35,8 @@
  * In general form it's formed with Hostname (or IP address) and the Port
  * number.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  * @see org.objectweb.odettej.transport.NetworkAddress
  */

Modified: 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/TCPTransport.java
===================================================================
--- 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/TCPTransport.java
 2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/java/org/objectweb/odettej/transport/tcp/TCPTransport.java
 2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -47,8 +47,8 @@
  * Used to create new transportion layer or encapsulating a existing opened
  * socket channel to provide its functionalities.
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  * @see org.objectweb.odettej.transport.Transport
  */
@@ -390,4 +390,11 @@
                        // do nothing
                }
        }
+
+    /* (non-Javadoc)
+     * @see org.objectweb.odettej.transport.Transport#getLinger()
+     */
+    public int getLinger() {
+        return 250;
+    }
 }
\ No newline at end of file

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/AbstractProperties.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/AbstractProperties.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/AbstractProperties.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class AbstractProperties extends TestCase {

Modified: trunk/components/api/src/test/org/objectweb/odettej/SessionTest.java
===================================================================
--- trunk/components/api/src/test/org/objectweb/odettej/SessionTest.java      
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/test/org/objectweb/odettej/SessionTest.java      
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class SessionTest extends AbstractProperties {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandExchangeBufferTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandExchangeBufferTest.java
  2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandExchangeBufferTest.java
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class CommandExchangeBufferTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandFormatTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandFormatTest.java
  2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandFormatTest.java
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class CommandFormatTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandIdentifierTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandIdentifierTest.java
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/CommandIdentifierTest.java
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class CommandIdentifierTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/DataExchangeBufferTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/DataExchangeBufferTest.java
     2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/DataExchangeBufferTest.java
     2007-04-03 16:18:16 UTC (rev 30)
@@ -1,7 +1,7 @@
 /*
  *  $Id: DataExchangeBufferTest.java,v 1.2 2005/08/15 16:45:39 rmarins Exp $
  *
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class DataExchangeBufferTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/OdetteExchangeBufferTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/OdetteExchangeBufferTest.java
   2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/OdetteExchangeBufferTest.java
   2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class OdetteExchangeBufferTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceTest.java  
      2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceTest.java  
      2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -29,8 +29,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class ServiceTest extends AbstractProperties {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceUtilTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceUtilTest.java
    2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/ServiceUtilTest.java
    2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class ServiceUtilTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/StreamTransmissionBufferTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/service/StreamTransmissionBufferTest.java
       2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/service/StreamTransmissionBufferTest.java
       2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class StreamTransmissionBufferTest extends TestCase {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/service/TestData.java
===================================================================
--- trunk/components/api/src/test/org/objectweb/odettej/service/TestData.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/api/src/test/org/objectweb/odettej/service/TestData.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -26,8 +26,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class TestData {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/transport/TransportTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/transport/TransportTest.java
    2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/transport/TransportTest.java
    2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class TransportTest extends AbstractProperties {

Modified: 
trunk/components/api/src/test/org/objectweb/odettej/transport/tcp/InternetAddressTest.java
===================================================================
--- 
trunk/components/api/src/test/org/objectweb/odettej/transport/tcp/InternetAddressTest.java
  2007-03-31 20:54:04 UTC (rev 29)
+++ 
trunk/components/api/src/test/org/objectweb/odettej/transport/tcp/InternetAddressTest.java
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -28,8 +28,8 @@
 
 /**
  *
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
- * @version $Revision$ $Date$
+ * @author  Rafael Marins
+ * @version $Rev$ $Date$
  * @since   OdetteJ API 1.0
  */
 public class InternetAddressTest extends TestCase {

Modified: trunk/components/examples/pom.xml
===================================================================
--- trunk/components/examples/pom.xml   2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/pom.xml   2007-04-03 16:18:16 UTC (rev 30)
@@ -11,7 +11,7 @@
 
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.objectweb.odettej</groupId>
-  <artifactId>examples</artifactId>
+  <artifactId>odettej-examples</artifactId>
   <packaging>jar</packaging>
   <version>1.0</version>
   <name>examples</name>
@@ -19,6 +19,13 @@
 
   <dependencies>
     <dependency>
+      <groupId>org.objectweb.odettej</groupId>
+      <artifactId>odettej-api</artifactId>
+      <version>1.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>

Modified: trunk/components/examples/src/java/examples/nio/BitOperations.java
===================================================================
--- trunk/components/examples/src/java/examples/nio/BitOperations.java  
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/nio/BitOperations.java  
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: trunk/components/examples/src/java/examples/nio/BufferSlicing.java
===================================================================
--- trunk/components/examples/src/java/examples/nio/BufferSlicing.java  
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/nio/BufferSlicing.java  
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: 
trunk/components/examples/src/java/examples/nio/ByteBufferMessing.java
===================================================================
--- trunk/components/examples/src/java/examples/nio/ByteBufferMessing.java    
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/nio/ByteBufferMessing.java    
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: trunk/components/examples/src/java/examples/nio/ChannelExample.java
===================================================================
--- trunk/components/examples/src/java/examples/nio/ChannelExample.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/nio/ChannelExample.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: 
trunk/components/examples/src/java/examples/nio/SocketPortListener.java
===================================================================
--- trunk/components/examples/src/java/examples/nio/SocketPortListener.java   
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/nio/SocketPortListener.java   
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: trunk/components/examples/src/java/examples/odettej/FileSending.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/FileSending.java      
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/FileSending.java      
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: 
trunk/components/examples/src/java/examples/odettej/ListeningSupport.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/ListeningSupport.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/ListeningSupport.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -27,10 +27,11 @@
 
 import org.objectweb.odettej.FileTransferException;
 import org.objectweb.odettej.ListenerTemplate;
+import org.objectweb.odettej.MappingMode;
 import org.objectweb.odettej.OdetteFTPException;
+import org.objectweb.odettej.Session;
 import org.objectweb.odettej.SystemVirtualFile;
 import org.objectweb.odettej.VirtualFile;
-import org.objectweb.odettej.MappingMode;
 import org.objectweb.odettej.service.AnswerReason;
 import org.objectweb.odettej.service.RecordFormat;
 
@@ -44,9 +45,11 @@
                this.directory = directory;
        }
 
-       public AnswerReason requestStartFile(String datasetName, Date 
fileDateTime,
+    public void init(Session context) { }
+
+       public AnswerReason onRequestStartFile(String datasetName, Date 
fileDateTime,
                        String destination, String originator, RecordFormat 
format,
-                       int maxRecordSize, int fileSizeBlocks, long 
restartPosition,
+                       int maxRecordSize, int fileSizeBlocks, int 
restartPosition,
                        String userData, String reserved) throws 
OdetteFTPException {
 
                String sDateTime = fileDateTime.toString().replaceAll(":", 
"_");
@@ -86,9 +89,9 @@
 
        }
 
-       public VirtualFile beginStartFile(String datasetName, Date 
fileDateTime,
+       public VirtualFile onStartFile(String datasetName, Date fileDateTime,
                        String destination, String originator, RecordFormat 
format,
-                       int recordSize, int fileSizeBlocks, long 
restartPosition,
+                       int recordSize, int fileSizeBlocks, int 
restartPosition,
                        String userData, String reserved) throws 
OdetteFTPException {
 
                /*
@@ -119,13 +122,13 @@
                return vf;
        }
 
-       public boolean hasDeliveredFile(String datasetName, Date fileDateTime,
+       public boolean onCloseFile(String datasetName, Date fileDateTime,
                        String destination, String originator) throws 
OdetteFTPException {
 
                return true;
        }
 
-       public void fileDelivered(String datasetName, Date fileDateTime,
+       public void onEndToEndResponse(String datasetName, Date fileDateTime,
                        String destination, String originator, String 
userData,
                        String reserved) throws OdetteFTPException {
                // TODO Auto-generated method stub

Modified: 
trunk/components/examples/src/java/examples/odettej/OdetteServer.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/OdetteServer.java     
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/OdetteServer.java     
  2007-04-03 16:18:16 UTC (rev 30)
@@ -131,6 +131,8 @@
 
                session.setAuthenticator(new PeerAuthenticator() {
 
+            public void init(Session context) { }
+
                        public void authenticate(String remoteUser, String 
remotePassword, String address) throws OdetteFTPException {
 
                                userBoxId.append(remoteUser);
@@ -160,6 +162,8 @@
 
                        }
                });
+
+        t.start();
        }
 
        public void stop() {

Modified: trunk/components/examples/src/java/examples/odettej/ReceiveAck.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/ReceiveAck.java 
2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/ReceiveAck.java 
2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /*
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: 
trunk/components/examples/src/java/examples/odettej/ReceivingToDir.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/ReceivingToDir.java   
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/ReceivingToDir.java   
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public

Modified: trunk/components/examples/src/java/examples/odettej/SendReceive.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/SendReceive.java      
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/SendReceive.java      
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -55,17 +55,17 @@
 
                Properties preferences = new Properties();
 
-//             preferences.setProperty("odette.window-size", "50");
-//             preferences.setProperty("odette.buffer-size", "4096");
+               preferences.setProperty("odette.window-size", "25");
+               preferences.setProperty("odette.buffer-size", "1024");
 
                /*
                 * Some implementation might not follow the format of 
commands strictly
                 * as specified. In this case just turn off this flag.
                 */
-//             preferences.setProperty("odette.strict.format", "false");
+               preferences.setProperty("odette.strict.format", "false");
 
                /* Determine the use of Stream Transmission Buffer (TCP 
only). */
-//             preferences.setProperty("odette.stb", "true");
+               preferences.setProperty("odette.stb", "false");
 
                /*
                 * Uncomment the line below to use the 'Stream Transmission 
Buffer'less
@@ -73,8 +73,8 @@
                 * FTP implementations. It must be used with the "odette.stb" 
option set
                 * to 'false'. Or, comment to disable.
                 */
-//             preferences.setProperty("odette.transport.class",
-//                             
"org.objectweb.odettej.transport.mbgw.MoreDataBitTransport");
+               preferences.setProperty("odette.transport.class",
+                               
"org.objectweb.odettej.transport.mbgw.MoreDataBitTransport");
 
                Session session = Session.getInstance(preferences, 
TransferMode.BOTH);
 

Modified: 
trunk/components/examples/src/java/examples/odettej/StblessTransport.java
===================================================================
--- trunk/components/examples/src/java/examples/odettej/StblessTransport.java 
  2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/components/examples/src/java/examples/odettej/StblessTransport.java 
  2007-04-03 16:18:16 UTC (rev 30)
@@ -1,6 +1,6 @@
 /**
- *  OdetteJ - Open Source Odette FTP implementation in Java(TM).
- *  Copyright (C) 2005 Fossil E-Commerce, http://www.fossilec.com
+ *  OdetteJ - Open Source Odette FTP Library
+ *  Copyright (c) 2005-2007 Neociclo, http://www.neociclo.com
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -33,7 +33,7 @@
 
 /**
  * 
- * @author  <a href="mailto:rmarins@xxxxxxxxxxxx";>Rafael Marins</a>
+ * @author  Rafael Marins
  */
 public class StblessTransport extends TCPTransport {
 

Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml       2007-03-31 20:54:04 UTC (rev 29)
+++ trunk/pom.xml       2007-04-03 16:18:16 UTC (rev 30)
@@ -14,13 +14,13 @@
 
   <properties>
     <!-- CONFIGURE THE PROJECT LOCATION AND REMOVE THE BELLOWING BREAKING 
TAG -->
-    <!-- </> -->
-    
<odettej.project.basedir>${user.home}/Workspace/odettej</odettej.project.basedir>
+    </>
+    <!-- 
<odettej.project.basedir>${user.home}/Workspace/odettej</odettej.project.basedir>
 -->
   </properties>
 
   <modules>
     <module>components/api</module>
-    <!-- <module>components/examples</module> -->
+    <module>components/examples</module>
   </modules>
 
   <organization>




    Date Index         Thread Index    

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.