Mantis - Hessian
Viewing Issue Advanced Details
3646 minor always 08-24-09 00:02 12-16-09 15:42
Peter Dettman  
ferg  
normal  
closed 4.0.1  
fixed  
none    
none 4.0.3  
0003646: Delegate construction of HessianSkeleton's debug PrintWriter to an overridable method
see HessianSkeleton in main invoke method.

I've attached a patch that adds a protected method for creating the PrintWriter
when debug mode is enabled.
The Spring HessianExporter ought to be able to simply call HessianSkeleton.invoke(InputStream, OutputStream, SerializerFactory) to handle servlet calls, but debug output would go to the wrong logger if it did this now.

HessianExporter.invoke currently duplicates most of what HessianSkeleton.invoke does. As things stand, I can improve it so that it only duplicates the debug mode handling at the top of invoke. With this patch applied, I could just subclass HessianSkeleton to create the PrintWriter around Spring's logger.

I am of course open to other suggestions for achieving the same result.

 Hessian_createDebugPrintWriter.patch [^] (883 bytes) 08-24-09 00:02

Notes
(0004342)
ferg   
12-16-09 15:42   
hessian/3558