directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r326431 - in /directory/network: branches/0.7/src/java/org/apache/mina/common/ branches/0.7/src/java/org/apache/mina/protocol/codec/ trunk/src/java/org/apache/mina/common/ trunk/src/java/org/apache/mina/filter/codec/
Date Wed, 19 Oct 2005 07:45:51 GMT
Author: trustin
Date: Wed Oct 19 00:45:29 2005
New Revision: 326431

URL: http://svn.apache.org/viewcvs?rev=326431&view=rev
Log:
Resoved issue: DIRMINA-101 - Rename TransportType.isStateless() to isConnectionless()


Modified:
    directory/network/branches/0.7/src/java/org/apache/mina/common/TransportType.java
    directory/network/branches/0.7/src/java/org/apache/mina/protocol/codec/CumulativeProtocolDecoder.java
    directory/network/trunk/src/java/org/apache/mina/common/TransportType.java
    directory/network/trunk/src/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
    directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java

Modified: directory/network/branches/0.7/src/java/org/apache/mina/common/TransportType.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/src/java/org/apache/mina/common/TransportType.java?rev=326431&r1=326430&r2=326431&view=diff
==============================================================================
--- directory/network/branches/0.7/src/java/org/apache/mina/common/TransportType.java (original)
+++ directory/network/branches/0.7/src/java/org/apache/mina/common/TransportType.java Wed
Oct 19 00:45:29 2005
@@ -111,18 +111,18 @@
 
     private final String[] names;
 
-    private final transient boolean stateless;
+    private final transient boolean connectionless;
 
     /**
      * Creates a new instance.  New transport type is automatically registered
      * to internal registry so that you can look it up using {@link #getInstance(String)}.
      * 
      * @param names the name or aliases of this transport type
-     * @param stateless <tt>true</tt> if and only if this transport type is stateless
+     * @param connectionless <tt>true</tt> if and only if this transport type
is connectionless
      * 
      * @throws IllegalArgumentException if <tt>names</tt> are already registered
or empty
      */
-    public TransportType( String[] names, boolean stateless )
+    public TransportType( String[] names, boolean connectionless )
     {
         if( names == null )
         {
@@ -145,16 +145,16 @@
 
         register( names, this );
         this.names = names;
-        this.stateless = stateless;
+        this.connectionless = connectionless;
     }
 
     /**
      * Returns <code>true</code> if the session of this transport type is
-     * stateless.
+     * connectionless.
      */
-    public boolean isStateless()
+    public boolean isConnectionless()
     {
-        return stateless;
+        return connectionless;
     }
     
     /**

Modified: directory/network/branches/0.7/src/java/org/apache/mina/protocol/codec/CumulativeProtocolDecoder.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/src/java/org/apache/mina/protocol/codec/CumulativeProtocolDecoder.java?rev=326431&r1=326430&r2=326431&view=diff
==============================================================================
--- directory/network/branches/0.7/src/java/org/apache/mina/protocol/codec/CumulativeProtocolDecoder.java
(original)
+++ directory/network/branches/0.7/src/java/org/apache/mina/protocol/codec/CumulativeProtocolDecoder.java
Wed Oct 19 00:45:29 2005
@@ -86,10 +86,10 @@
     public void decode( ProtocolSession session, ByteBuffer in,
                         ProtocolDecoderOutput out ) throws ProtocolViolationException
     {
-        if( session.getTransportType().isStateless() )
+        if( session.getTransportType().isConnectionless() )
         {
             throw new IllegalStateException(
-                    "This decoder doesn't work for stateless transport types." );
+                    "This decoder doesn't work for connectionless transport types." );
         }
 
         ByteBuffer buf = this.buf;

Modified: directory/network/trunk/src/java/org/apache/mina/common/TransportType.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/TransportType.java?rev=326431&r1=326430&r2=326431&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/TransportType.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/common/TransportType.java Wed Oct 19
00:45:29 2005
@@ -111,7 +111,7 @@
 
     private final String[] names;
 
-    private final transient boolean stateless;
+    private final transient boolean connectionless;
     
     private final transient Class envelopeType;
 
@@ -120,13 +120,13 @@
      * to internal registry so that you can look it up using {@link #getInstance(String)}.
      * 
      * @param names the name or aliases of this transport type
-     * @param stateless <tt>true</tt> if and only if this transport type is stateless
+     * @param connectionless <tt>true</tt> if and only if this transport type
is connectionless
      * 
      * @throws IllegalArgumentException if <tt>names</tt> are already registered
or empty
      */
-    public TransportType( String[] names, boolean stateless )
+    public TransportType( String[] names, boolean connectionless )
     {
-        this( names, ByteBuffer.class, stateless );
+        this( names, ByteBuffer.class, connectionless );
     }
 
     /**
@@ -134,11 +134,11 @@
      * to internal registry so that you can look it up using {@link #getInstance(String)}.
      * 
      * @param names the name or aliases of this transport type
-     * @param stateless <tt>true</tt> if and only if this transport type is stateless
+     * @param connectionless <tt>true</tt> if and only if this transport type
is connectionless
      * 
      * @throws IllegalArgumentException if <tt>names</tt> are already registered
or empty
      */
-    public TransportType( String[] names, Class envelopeType, boolean stateless )
+    public TransportType( String[] names, Class envelopeType, boolean connectionless )
     {
         if( names == null )
         {
@@ -165,17 +165,17 @@
 
         register( names, this );
         this.names = names;
-        this.stateless = stateless;
+        this.connectionless = connectionless;
         this.envelopeType = envelopeType;
     }
 
     /**
      * Returns <code>true</code> if the session of this transport type is
-     * stateless.
+     * connectionless.
      */
-    public boolean isStateless()
+    public boolean isConnectionless()
     {
-        return stateless;
+        return connectionless;
     }
     
     public Class getEnvelopeType()

Modified: directory/network/trunk/src/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java?rev=326431&r1=326430&r2=326431&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
Wed Oct 19 00:45:29 2005
@@ -83,10 +83,10 @@
     public void decode( IoSession session, ByteBuffer in,
                         ProtocolDecoderOutput out ) throws Exception
     {
-        if( session.getTransportType().isStateless() )
+        if( session.getTransportType().isConnectionless() )
         {
             throw new IllegalStateException(
-                    "This decoder doesn't work for stateless transport types." );
+                    "This decoder doesn't work for connectionless transport types." );
         }
 
         ByteBuffer buf = this.buf;

Modified: directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=326431&r1=326430&r2=326431&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Wed Oct 19 00:45:29 2005
@@ -58,8 +58,8 @@
         }
         finally
         {
-            // Dispose the decoder if this session is stateless.
-            if( session.getTransportType().isStateless() )
+            // Dispose the decoder if this session is connectionless.
+            if( session.getTransportType().isConnectionless() )
             {
                 disposeDecoder( session );
             }
@@ -120,8 +120,8 @@
         }
         finally
         {
-            // Dispose the encoder if this session is stateless.
-            if( session.getTransportType().isStateless() )
+            // Dispose the encoder if this session is connectionless.
+            if( session.getTransportType().isConnectionless() )
             {
                 disposeEncoder( session );
             }



Mime
View raw message