public class CrossDomainRpcLoader
extends java.lang.Object
CrossDomainRpc from a HttpServletRequest.| Modifier and Type | Class and Description |
|---|---|
private static class |
CrossDomainRpcLoader.Field
Fields used to encode a
CrossDomainRpc in the JSON body of a
HttpServletRequest. |
| Constructor and Description |
|---|
CrossDomainRpcLoader() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getField(com.google.gson.JsonObject json,
java.lang.String key) |
CrossDomainRpc |
loadRpc(javax.servlet.http.HttpServletRequest request)
Parses the request for a CrossDomainRpc.
|
public CrossDomainRpc loadRpc(javax.servlet.http.HttpServletRequest request) throws java.io.IOException
request - The request to parse.java.io.IOException - If an error occurs reading from the request.java.lang.IllegalArgumentException - If an occurs while parsing the request
data.private java.lang.String getField(com.google.gson.JsonObject json,
java.lang.String key)