Skip to content

Commit d108ae8

Browse files
committed
Add instructions on choosing a HTTP client
1 parent ecbe330 commit d108ae8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ trello-java-wrapper is available on maven central. The current release is 0.3.2
1818
</dependency>
1919
```
2020

21+
The wrapper can make use of one of the following HTTP clients: `Spring Web` (default), `Apache Http Components HttpClient`, `Ning async-http-client`. Choose one if you dont' already use one of those. If you use or choose anything but Spring Web, you'll need to instantiate the corresponding `TrelloHttpClient` implementation and pass it to the `TrelloImpl` constructor (see Init section below). The corresponding Maven coordinates are:
22+
23+
```xml
24+
<dependency>
25+
<groupId>org.springframework</groupId>
26+
<artifactId>spring-web</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.apache.httpcomponents</groupId>
30+
<artifactId>httpclient</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.ning</groupId>
34+
<artifactId>async-http-client</artifactId>
35+
</dependency>
36+
```
37+
Failure to do so will most probably cause a `NoClassDefFoundError`.
38+
2139
### Init
2240

2341
To be able to use the wrapper, you simply need to instantiate the interface `Trello` and provide it with two parameters

0 commit comments

Comments
 (0)