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 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.
-
-
-
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 messagemessage
- the error messagedetail
- an error detailos
- the output stream to write the message to- Throws:
IOException
- if an error occurs writing to the output stream
-
-