Java HTTP gateway interface
authorBill Erickson <berick@esilibrary.com>
Mon, 27 Feb 2012 23:05:07 +0000 (18:05 -0500)
committerDan Scott <dan@coffeecode.net>
Wed, 2 May 2012 20:23:41 +0000 (16:23 -0400)
commit5b5e28f16be77d9b23a98579d10173103dd907ed
treeadc309a6c5e781557971c811e9d0cc7c53332da2
parent85830ce301654e2dfefcd186a2bd63bd3785a967
Java HTTP gateway interface

Supports sync and async requests.  Async requests support onResponse,
onComplete, and onError handlers.

Supports a max-threads value to limit the number of activately
communicating threads over any connection.  When max-threads is reached,
requests are queued and delivered as soon as there is room.

Note that since this is talking to the OpenSRF gateway and not the
translater, responses are simply collected and passed one at a time to
onResponse.  They are not streamed.  The goal of supporting onResponse
is to provide the same client API for both the gateway and translator.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
src/java/org/opensrf/net/http/GatewayRequest.java [new file with mode: 0644]
src/java/org/opensrf/net/http/HttpConnection.java [new file with mode: 0644]
src/java/org/opensrf/net/http/HttpRequest.java [new file with mode: 0644]
src/java/org/opensrf/net/http/HttpRequestHandler.java [new file with mode: 0644]