-
-
Save secondsun/5fa7ddd46c76b03b723e to your computer and use it in GitHub Desktop.
This is a summary of the API changes to enable multipart.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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