Sample handler for queries and input requests.
Syntax: /<CONTEXT_PATH>?key=<SESSION_TOKEN
(required)>&mode=<request | respond (required; request: simple text
request; respond: respond to a input request)>
- mode=request&threshold=<MATCHER_THRESHOLD (optional; between 0 and
1)>&serveroutput=<true | false (optional; whether there should be
output on the server, default is false)>&q=<QUERY
(required)>
- mode=respond&id=<INPUT_REQUEST_ID
(required)>&content=<REQUESTED_TEXT (required)>
Returns: "ERROR: INCOMPLETE REQUEST DATA" (400), "ERROR:
MALFORMED REQUEST DATA" (400), "ERROR: NO SUCH REQUEST ID"
(400) or the result in XML-format:
- RESULT: <response version="LIBRARY_VERSION">
<type>RESULT</type> <name>NAME</name> <result>
<code>ACTIONRESULTCODE</code>
<message>RESULT_MESSAGE</message> </result>
<score>MATCHER_SCORE</score> <output> <new>
<written>NEW WRITTEN OUTPUT</written> <spoken>NEW SPOKEN
OUTPUT</spoken> </new> <total> <written>TOTAL WRITTEN
OUTPUT</written> <spoken>TOTAL SPOKEN OUTPUT</spoken>
</total> </output> </response>
- NO_RESULTS: <response version="LIBRARY_VERSION">
<type>NO_RESULTS</type> </response>
- REQUEST_INPUT: <response version="LIBRARY_VERSION">
<type>RESULT</type> <name>NAME</name> <result>
<code>ACTIONRESULTCODE</code>
<message>RESULT_MESSAGE</message> </result>
<score>MATCHER_SCORE</score> <output> <new>
<written>NEW WRITTEN OUTPUT</written> <spoken>NEW SPOKEN
OUTPUT</spoken> </new> <total> <written>TOTAL WRITTEN
OUTPUT</written> <spoken>TOTAL SPOKEN OUTPUT</spoken>
</total> </output>
<request><id>REQUEST_ID</id><text>REQUEST_PROMPT</text></request>
</response>