public class VariantGWTQuery extends VariantAbstractRPCQuery
Modifier and Type | Class and Description |
---|---|
protected class |
VariantGWTQuery.GWTStringTokenizer
This is a replacement for the standard StringTokenizer which handles multiple delimiters
differently.
|
VariantAbstractRPCQuery.RPCParameter
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_RPC_TOKEN_INCLUDED |
static String |
GWT_RPC_CONTENT_TYPE |
static int |
RPC_SEPARATOR_CHAR |
Constructor and Description |
---|
VariantGWTQuery() |
Modifier and Type | Method and Description |
---|---|
String |
getEscapedValue(String value,
boolean toQuote)
Escape a GWT string according to the client implementation found on
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter
http://www.gwtproject.org/
|
String |
getUnescapedValue(String value)
Unescape a GWT serialized string according to the server implementation found on
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
http://www.gwtproject.org/
|
boolean |
isValidContentType(String contentType) |
void |
parseContent(String content) |
addParameter, addParameter, getParamList, getReadableParameterizedQuery, getReadableParametrizedQuery, getToken, setEscapedParameter, setMessage, setParameter, setRequestContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLeafName, getTreePath, setParameters
public static final String GWT_RPC_CONTENT_TYPE
public static final int RPC_SEPARATOR_CHAR
public static final int FLAG_RPC_TOKEN_INCLUDED
public boolean isValidContentType(String contentType)
isValidContentType
in class VariantAbstractRPCQuery
contentType
- public void parseContent(String content)
parseContent
in class VariantAbstractRPCQuery
content
- public String getEscapedValue(String value, boolean toQuote)
getEscapedValue
in class VariantAbstractRPCQuery
value
- the value that need to be escapedtoQuote
- public String getUnescapedValue(String value)
getUnescapedValue
in class VariantAbstractRPCQuery
value
- the value that need to be deserialized