org.apache.synapse.format.hessian

## Class HessianUtils

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

-     public final class HessianUtils
      extends java.lang.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(java.lang.String code, java.lang.String message, java.lang.String detail, java.io.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(java.lang.String code,
                                        java.lang.String message,
                                        java.lang.String detail,
                                        java.io.OutputStream os)
                                 throws java.io.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:
        `java.io.IOException` - if an error occurs writing to the output stream

Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.