wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r935424 - /incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java
Date Sun, 18 Apr 2010 22:30:58 GMT
Author: bluk
Date: Sun Apr 18 22:30:57 2010
New Revision: 935424

URL: http://svn.apache.org/viewvc?rev=935424&view=rev
Log:
Code formatting changes

Modified:
    incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java

Modified: incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java?rev=935424&r1=935423&r2=935424&view=diff
==============================================================================
--- incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java
(original)
+++ incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/FlushResultHandler.java
Sun Apr 18 22:30:57 2010
@@ -162,8 +162,10 @@ public class FlushResultHandler extends 
                                           responseMediaType);
             if (logger.isDebugEnabled()) {
                 logger.debug("{}@{}.getSize({}, {}, {}, {}, {}) returned {}", new Object[]
{ //$NON-NLS-1$
-                    messageBodyWriter.getClass().getName(), Integer.toHexString(System.identityHashCode(messageBodyWriter)),
entity,
-                    rawType, genericType, declaredAnnotations, responseMediaType, size});
+                             messageBodyWriter.getClass().getName(),
+                                 Integer.toHexString(System.identityHashCode(messageBodyWriter)),
+                                 entity, rawType, genericType, declaredAnnotations,
+                                 responseMediaType, size});
             }
             if (size >= 0) {
                 headers.putSingle(HttpHeaders.CONTENT_LENGTH, String.valueOf(size));
@@ -172,10 +174,12 @@ public class FlushResultHandler extends 
             FlushHeadersOutputStream outputStream =
                 new FlushHeadersOutputStream(httpResponse, headers);
             if (logger.isDebugEnabled()) {
-                logger.debug("{}@{}.writeTo({}, {}, {}, {}, {}, {}, {}) being called", new
Object[] { //$NON-NLS-1$
-                    messageBodyWriter.getClass().getName(), Integer.toHexString(System.identityHashCode(messageBodyWriter)),
entity,
-                    rawType, genericType, declaredAnnotations, responseMediaType, httpHeaders,
-                    outputStream});
+                logger
+                    .debug("{}@{}.writeTo({}, {}, {}, {}, {}, {}, {}) being called", new
Object[] { //$NON-NLS-1$
+                           messageBodyWriter.getClass().getName(),
+                               Integer.toHexString(System.identityHashCode(messageBodyWriter)),
+                               entity, rawType, genericType, declaredAnnotations,
+                               responseMediaType, httpHeaders, outputStream});
             }
             messageBodyWriter.writeTo(entity,
                                       rawType,
@@ -201,9 +205,9 @@ public class FlushResultHandler extends 
         // try to find a data handler using JavaBeans Activation Framework, if
         // found use DataSourceProvider
         dataContentHandler =
-            CommandMap.getDefaultCommandMap()
+            CommandMap
+                .getDefaultCommandMap()
                 .createDataContentHandler(responseMediaType.getType() + "/" + responseMediaType.getSubtype());
//$NON-NLS-1$
-
         if (dataContentHandler == null) {
             logger.error(Messages.getMessage("noWriterOrDataSourceProvider", entity.getClass()
//$NON-NLS-1$
                 .getName(), responseMediaType));
@@ -217,11 +221,12 @@ public class FlushResultHandler extends 
             new FlushHeadersOutputStream(httpResponse, httpHeaders);
         if (logger.isDebugEnabled()) {
             logger.debug("{}.writeTo({}, {}, {}) being called", new Object[] { //$NON-NLS-1$
-                Integer.toHexString(System.identityHashCode(dataContentHandler)), entity,
rawType,
-                responseMediaType.toString(), outputStream});
+                         Integer.toHexString(System.identityHashCode(dataContentHandler)),
entity,
+                             rawType, responseMediaType.toString(), outputStream});
         }
-
-        dataContentHandler.writeTo(entity, responseMediaType.getType() + "/" + responseMediaType.getSubtype(),
outputStream); //$NON-NLS-1$
+        dataContentHandler
+            .writeTo(entity,
+                     responseMediaType.getType() + "/" + responseMediaType.getSubtype(),
outputStream); //$NON-NLS-1$
         logger.debug("Flushing headers if not written"); //$NON-NLS-1$
         outputStream.flushHeaders();
     }



Mime
View raw message