Java HTTP gateway interface
authorBill Erickson <berick@esilibrary.com>
Mon, 27 Feb 2012 23:05:07 +0000 (18:05 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 19 Mar 2012 13:25:48 +0000 (09:25 -0400)
commit164ea54a805a58e4fadd8639c147357f211b87d7
tree10da0e1c3488f0c3bf67ff6ad65e24356b1c3e03
parentff62eb3409f5d36a76a3f73611ade803d015bf21
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>
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]