资 源 简 介
gwt-rpc-plus
gwt-rpc-plus is a set of building blocks for enhancing and replacing GWT"s built-in RPC framework.
JavaScript Collections
gwt-rpc-plus includes a set of bare-metal, strongly-typed JS collections optimized for both RPC and client-side use. The collection code is generated for each combination of key/value type.
The collections also include a GNU Trove-inspired set of procedures to iterate over the keys, values and entries of all the collections:
```
JsRpcMapStringString map = JsRpcMapStringString.create();
map.set("foo", "bar");
map.set("baz", "blah");
StringBuilder builder;
map.forEachKey(new JsRpcStringProcedure() {
public boolean execute(String value) {
builder.append(value);
return true;
}
});
```
Text and JSON Transports
gwt-rpc-plus includes a framework for writing generic text and JSON transports. It