Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample on how to process a http request sequentially in Java
public Response processRequest( @QueryParam("id")String id, @QueryParam("userId")String userId ) {
Record retrieve = database.retrieveRecord(id);
logger.writeEntryFor( id, userId );
UserProfile profile = userStore.retrieve(userId);
generateAdResponse(retrieve, profile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment