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:00
Have 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

Image:Have you ever used Apache HttpCommons in your Xpages app? Seemed a bit complicated for simple tasks?... see alternative ...


Image:Have you ever used Apache HttpCommons in your Xpages app? Seemed a bit complicated for simple tasks?... see alternative ...
Comments

1Stephan H. Wissel  16.07.2013 5:21:35  Have you ever used Apache HttpCommons in your Xpages app? Seemed a bit complicated for simple tasks?... see alternative ...

Nice one. The biggest advantage of the Apache commons: they are on the Domino and work out of the box. However the simplicity of JODD is intriguing. Do they sit on top of Apache? (Would be a perfect example of a Facade pattern)

2David Marko  16.07.2013 8:07:04  Have you ever used Apache HttpCommons in your Xpages app? Seemed a bit complicated for simple tasks?... see alternative ...

JODD is completely standalone. You just copy JODD to your project and thats it ... which is nice ...

TOPlist