Class HessianUtils
java.lang.Object
org.apache.synapse.format.hessian.HessianUtils
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
Modifier and TypeMethodDescriptionstatic voidwriteFault(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 Details
-
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
-