Author: trustin
Date: Sun Sep 30 01:44:37 2007
New Revision: 580682

URL: http://svn.apache.org/viewvc?rev=580682&view=rev
Log:
Changed "IoHandlerClass" to "handlerClass"


Modified:
    
mina/trunk/core/src/main/java/org/apache/mina/filter/logging/MdcInjectionFilter.java
    
mina/trunk/core/src/test/java/org/apache/mina/filter/logging/MdcInjectionFilterTest.java

Modified: 
mina/trunk/core/src/main/java/org/apache/mina/filter/logging/MdcInjectionFilter.java
URL: 
http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/logging/MdcInjectionFilter.java?rev=580682&r1=580681&r2=580682&view=diff
==============================================================================
--- 
mina/trunk/core/src/main/java/org/apache/mina/filter/logging/MdcInjectionFilter.java
 (original)
+++ 
mina/trunk/core/src/main/java/org/apache/mina/filter/logging/MdcInjectionFilter.java
 Sun Sep 30 01:44:37 2007
@@ -17,7 +17,7 @@
  *
  * The following properties will be set for all transports:
  * <ul>
- *  <li>"IoHandlerClass"</li>
+ *  <li>"handlerClass"</li>
  *  <li>"remoteAddress"</li>
  *  <li>"localAddress"</li>
  * </ul>
@@ -34,10 +34,10 @@
  * User code can also add properties to the context, via
  *
  * If you only want the MDC to be set for the IoHandler code, it's enough to 
add
- * one MDCInjectionFilter at the end of the filter chain.
+ * one MdcInjectionFilter at the end of the filter chain.
  *
  * If you want the MDC to be set for ALL code, you should
- *   add an MDCInjectionFilter to the start of the chain
+ *   add an MdcInjectionFilter to the start of the chain
  *   and add one after EVERY ExecutorFilter in the chain
  *
  * @author The Apache MINA Project ([EMAIL PROTECTED])
@@ -99,7 +99,7 @@
      * @param context key properties will be added to this map
      */
     protected static void fillContext(final IoSession session, final Context 
context) {
-        context.put("IoHandlerClass", 
session.getHandler().getClass().getName());
+        context.put("handlerClass", session.getHandler().getClass().getName());
         context.put("remoteAddress", session.getRemoteAddress().toString());
         context.put("localAddress", session.getLocalAddress().toString());
         if (session.getTransportMetadata().getAddressType() == 
InetSocketAddress.class) {

Modified: 
mina/trunk/core/src/test/java/org/apache/mina/filter/logging/MdcInjectionFilterTest.java
URL: 
http://svn.apache.org/viewvc/mina/trunk/core/src/test/java/org/apache/mina/filter/logging/MdcInjectionFilterTest.java?rev=580682&r1=580681&r2=580682&view=diff
==============================================================================
--- 
mina/trunk/core/src/test/java/org/apache/mina/filter/logging/MdcInjectionFilterTest.java
 (original)
+++ 
mina/trunk/core/src/test/java/org/apache/mina/filter/logging/MdcInjectionFilterTest.java
 Sun Sep 30 01:44:37 2007
@@ -164,9 +164,9 @@
                     "MDC[remotePort] not set for [" + event.getMessage() + "]",
                     event.getMDC("remotePort"));
                 assertEquals(
-                    "every event should have MDC[IoHandlerClass]",
+                    "every event should have MDC[handlerClass]",
                     SimpleIoHandler.class.getName(),
-                    event.getMDC("IoHandlerClass") );
+                    event.getMDC("handlerClass") );
             }
         }
         // asert we have received all expected logging events for each client


Reply via email to