org.apache.synapse.format.hessian

## Class HessianUtils

- java.lang.Object
- - org.apache.synapse.format.hessian.HessianUtils

-     public final class HessianUtils
      extends Object

  Util class for writing the Hessian Fault to the output stream. Most of the implementation is taken from the Hessian Java implementation in com.caucho.hessian.io.HessianOutput.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `writeFault(String code, String message, String detail, OutputStream os)` Creates and writes a Hessian fault using the provided code, message and detail to the provided output stream.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### writeFault

          public static void writeFault(String code,
                                        String message,
                                        String detail,
                                        OutputStream os)
                                 throws IOException

      Creates and writes a Hessian fault using the provided code, message and detail to the provided output stream.
      Parameters:
        `code` - the error code of the message
        `message` - the error message
        `detail` - an error detail
        `os` - the output stream to write the message to
      Throws:
        `IOException` - if an error occurs writing to the output stream

Copyright © 2005–2017 Apache Software Foundation. All rights reserved.