org.xins.server
Class CallResultOutputter

java.lang.Object
  extended byorg.xins.server.CallResultOutputter

public final class CallResultOutputter
extends Object

Converter that can be used by calling conventions to generate responses which are compatible with the XINS standard calling convention.

The result output is always in the UTF-8 encoding.

Since:
XINS 1.5.0
Version:
$Revision: 1.52 $ $Date: 2008/07/04 10:22:50 $
Author:
Ernst de Haan, Anthony Goubard

Method Summary
static void output(Writer out, FunctionResult result)
          Generates XML for the specified call result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

output

public static void output(Writer out,
                          FunctionResult result)
                   throws IllegalArgumentException,
                          IOException
Generates XML for the specified call result. The XML is sent to the specified output stream.

Parameters:
out - the output stream to send the XML to, cannot be null.
result - the call result to convert to XML, cannot be null.
Throws:
IllegalArgumentException - if out == null || result == null.
IOException - if there was an I/O error while writing to the output stream.


See http://www.xins.org/.