|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.JSONObjectEventResultProcessor
public class JSONObjectEventResultProcessor
Implementation of 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 Summary | |
|---|---|
JSONObjectEventResultProcessor(Response response,
java.lang.String outputEncoding,
boolean compactJSON)
|
|
| Method Summary | |
|---|---|
void |
processResultValue(JSONObject value)
For a given, non-null return value from a component event method, construct and send a response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONObjectEventResultProcessor(Response response,
@Symbol(value="tapestry.charset")
java.lang.String outputEncoding,
@Symbol(value="tapestry.compact-json")
boolean compactJSON)
| Method Detail |
|---|
public void processResultValue(JSONObject value)
throws java.io.IOException
ComponentEventResultProcessor
processResultValue in interface ComponentEventResultProcessor<JSONObject>value - the value returned from a method
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||