Last active
August 29, 2015 14:14
-
-
Save hariso/f01552019fcd05fd4835 to your computer and use it in GitHub Desktop.
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
Map<String, List<String>> map = // some info about types and members of them you'd like to retrieve | |
RetrieveRequest retrieveRequest = createRetrieveRequest(map); | |
AsyncResult asyncResult = connection.retrieve(retrieveRequest); | |
RetrieveResult retrieveResult = waitForRetrieveCompletion(asyncResult, connection); | |
// Parse result... | |
private RetrieveRequest createRetrieveRequest(Map<String, List<String>> map) throws ConnectionException { | |
RetrieveRequest retrieveRequest = new RetrieveRequest(); | |
retrieveRequest.setUnpackaged(createPackage(map)); | |
return retrieveRequest; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment