public class JSONObjectEventResultProcessor extends Object implements ComponentEventResultProcessor<JSONObject>
ComponentEventResultProcessor
for JSONObject
, allowing a
component event handler to return a JSONObject that will be sent directly to the client as the reply. This is often
used with custom components that need a custom JSON response.Constructor and Description |
---|
JSONObjectEventResultProcessor(Response response,
String outputEncoding,
boolean compactJSON) |
Modifier and Type | Method and Description |
---|---|
void |
processResultValue(JSONObject value)
For a given, non-null return value from a component event method, construct and send a response.
|
public void processResultValue(JSONObject value) throws IOException
ComponentEventResultProcessor
processResultValue
in interface ComponentEventResultProcessor<JSONObject>
value
- the value returned from a methodIOException
Copyright © 2003-2012 The Apache Software Foundation.