arve
11/07/2018, 3:24 PM{browser} -> [Endpoint] -> [BusinessLogic] -> [ExternalServiceClient] -> {external server}
Having all the methods in [businessLogic] and [ExternalServiceClient] take an additional parameter token:String
, feels is pretty un-elegant, so I was considering options to be able to set this token "globally" during the start of a request, and then clean it up afterwards. ThreadLocal came to mind, but I'm not sure if my assumption holds 😛 Any suggestions are welcome!