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