Skip to content

Instantly share code, notes, and snippets.

@secondsun
Created May 15, 2013 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secondsun/5fa7ddd46c76b03b723e to your computer and use it in GitHub Desktop.
Save secondsun/5fa7ddd46c76b03b723e to your computer and use it in GitHub Desktop.
This is a summary of the API changes to enable multipart.
public App extends Application {
GsonBuilder builder = new GsonBuilder().registerTypeAdapter(Point.class, new RestAdapterTest.PointTypeAdapter());
final Charset utf_16 = Charset.forName("UTF-16");
Pipeline pipeline = new Pipeline(url);
PipeConfig config = new PipeConfig(url, ListClassId.class);
config.setEncoding(utf_16);
config.setRequestBuilder(new GsonRequestBuilder(builder));
RestAdapter<ListClassId> restPipe = (RestAdapter<ListClassId>) pipeline.pipe(ListClassId.class, config);
}
public App extends Application {
GsonBuilder builder = new GsonBuilder().registerTypeAdapter(Point.class, new RestAdapterTest.PointTypeAdapter());
Pipeline pipeline = new Pipeline(url);
PipeConfig config = new PipeConfig(url, ListClassId.class);
config.setGsonBuilder(builder);
RestAdapter<ListClassId> restPipe = (RestAdapter<ListClassId>) pipeline
.pipe(ListClassId.class, config);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment