Have you ever used Apache HttpCommons in your Xpages app? Seemed a bit complicated for simple tasks?... see alternative ...
David Marko 15 July 2013 07:30:00Have you ever used Apache HttpCommons in your Xpages application? Seemed a bit complicated for simple tasks? You can try the following alternative from JODD library toolbox
I have reported some goodness of JODD library before:
How to grab HTML page and parse content to dig infomation you need ... in your xPages application ... in serverside using ’JQuery way’
Sending HTML emails wth images and attachments from your xPages application - JAVA way
Need to convert images (stored as an attachments on Lotus Notes documents) into text to be serializable via JSON ?
Xpages and working with dates on steroids in JAVA
Do you need to walk the filesystem directory structure in your Xpages application? Use the easier way ...
JODD's HTTP client is quite easy to understand and therefore easy to use. You can use GET requests, POST requests, send/upload files or use BasicAuthentication ... and everything with a few lines of code with this great fluent API ... see the code snippets below or navigate to the full documentation http://jodd.org/doc/http.html
- Comments