Skip to content

Instantly share code, notes, and snippets.

@liviutudor
Created June 28, 2017 07:05
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 liviutudor/4c91c0f02ebf00b18464402590644ac1 to your computer and use it in GitHub Desktop.
Save liviutudor/4c91c0f02ebf00b18464402590644ac1 to your computer and use it in GitHub Desktop.
Sample on how to process a http request sequentially in Java
@GET
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