You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tr...@apache.org on 2008/03/22 18:59:37 UTC

svn commit: r640029 - /mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java

Author: trustin
Date: Sat Mar 22 10:59:36 2008
New Revision: 640029

URL: http://svn.apache.org/viewvc?rev=640029&view=rev
Log:
Made AprSession public so users can create his or her own AprSession I/O processor pool (like we did for NioSession)

Modified:
    mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java

Modified: mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java
URL: http://svn.apache.org/viewvc/mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java?rev=640029&r1=640028&r2=640029&view=diff
==============================================================================
--- mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java (original)
+++ mina/trunk/transport-apr/src/main/java/org/apache/mina/transport/socket/apr/AprSession.java Sat Mar 22 10:59:36 2008
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.mina.transport.socket.apr;
 
@@ -33,12 +33,12 @@
 
 /**
  * {@link IoSession} for the {@link AprSocketConnector}
- * 
+ *
  * @author The Apache MINA Project (dev@mina.apache.org)
  * @version $Rev$, $Date$
  */
-abstract class AprSession extends AbstractIoSession {
-    private long descriptor;
+public abstract class AprSession extends AbstractIoSession {
+    private final long descriptor;
 
     private final IoService service;
     private final IoProcessor<AprSession> processor;
@@ -53,7 +53,7 @@
     private boolean writable = true;
     private boolean interestedInRead;
     private boolean interestedInWrite;
-    
+
     /**
      * Creates a new instance.
      */
@@ -63,7 +63,7 @@
         this.processor = processor;
         this.handler = service.getHandler();
         this.descriptor = descriptor;
-        
+
         long ra = Address.get(Socket.APR_REMOTE, descriptor);
         long la = Address.get(Socket.APR_LOCAL, descriptor);
 
@@ -78,7 +78,7 @@
         this.processor = processor;
         this.handler = service.getHandler();
         this.descriptor = descriptor;
-        
+
         long la = Address.get(Socket.APR_LOCAL, descriptor);
 
         this.remoteAddress = remoteAddress;
@@ -109,7 +109,7 @@
     public IoHandler getHandler() {
         return handler;
     }
-    
+
     public IoService getService() {
         return service;
     }