Author: elecharny Date: Fri Feb 19 14:53:04 2010 New Revision: 911827 URL: http://svn.apache.org/viewvc?rev=911827&view=rev Log: o Minor typos fixes o Improved the toString() method o Split a chained call for debugging purpose
Modified: mina/trunk/core/src/main/java/org/apache/mina/core/write/DefaultWriteRequest.java mina/trunk/core/src/main/java/org/apache/mina/core/write/WriteRequestWrapper.java mina/trunk/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java mina/trunk/core/src/main/java/org/apache/mina/transport/socket/nio/NioProcessor.java Modified: mina/trunk/core/src/main/java/org/apache/mina/core/write/DefaultWriteRequest.java URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/core/write/DefaultWriteRequest.java?rev=911827&r1=911826&r2=911827&view=diff ============================================================================== --- mina/trunk/core/src/main/java/org/apache/mina/core/write/DefaultWriteRequest.java (original) +++ mina/trunk/core/src/main/java/org/apache/mina/core/write/DefaultWriteRequest.java Fri Feb 19 14:53:04 2010 @@ -166,7 +166,7 @@ sb.append("WriteRequest: "); - // Special case for the CLOSE_REQUEST writerequest : it just + // Special case for the CLOSE_REQUEST writeRequest : it just // carries a native Object instance if (message.getClass().getName().equals(Object.class.getName()) ) { sb.append("CLOSE_REQUEST"); Modified: mina/trunk/core/src/main/java/org/apache/mina/core/write/WriteRequestWrapper.java URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/core/write/WriteRequestWrapper.java?rev=911827&r1=911826&r2=911827&view=diff ============================================================================== --- mina/trunk/core/src/main/java/org/apache/mina/core/write/WriteRequestWrapper.java (original) +++ mina/trunk/core/src/main/java/org/apache/mina/core/write/WriteRequestWrapper.java Fri Feb 19 14:53:04 2010 @@ -67,6 +67,6 @@ @Override public String toString() { - return parentRequest.toString(); + return "WR Wrapper" + parentRequest.toString(); } } Modified: mina/trunk/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=911827&r1=911826&r2=911827&view=diff ============================================================================== --- mina/trunk/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java (original) +++ mina/trunk/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java Fri Feb 19 14:53:04 2010 @@ -372,7 +372,7 @@ @Override public String toString() { - return "EMPTY buffer"; + return "MessageWriteRequest, parent : " + super.toString(); } } Modified: mina/trunk/core/src/main/java/org/apache/mina/transport/socket/nio/NioProcessor.java URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/transport/socket/nio/NioProcessor.java?rev=911827&r1=911826&r2=911827&view=diff ============================================================================== --- mina/trunk/core/src/main/java/org/apache/mina/transport/socket/nio/NioProcessor.java (original) +++ mina/trunk/core/src/main/java/org/apache/mina/transport/socket/nio/NioProcessor.java Fri Feb 19 14:53:04 2010 @@ -268,6 +268,8 @@ @Override protected int read(NioSession session, IoBuffer buf) throws Exception { + ByteChannel channel = session.getChannel(); + return session.getChannel().read(buf.buf()); }