Recent Java Client API Changes | Andy Straw | 2015-05-14 12:29 |
Status: Closed | ||
I was able to get authentication to work, but this required another 10 lines of code to properly create the HttpClientContext that is needed as a second parameter the execute() method of CloseableHttpClient. Since the code to create the context object requires only the LabKey Connection object, it would be nice if your API somehow could do that for us. Here's the way I factored this into a helper method: private static HttpClientContext buildHttpContext( Connection labkeyConnection ) throws MalformedURLException { |
||