Database Reference
In-Depth Information
httpdeliverer.deliverCommonHTTP(outbodyReader,
task, request, ack, mheader);
}
...
//here is the standard Apache HTTP Component library
....
tskurl = task.getReceiverEndpoint();
userName = task.getReceiverEndpointUserName();
port = task.getReceiverEndpointPort();
tskhost = task.getReceiverEndpointHost();
...
HttpParams params = new SyncBasicHttpParams();
HttpProcessor httpproc = new ImmutableHttpProcessor(new
HttpRequestInterceptor[] {...}
...
HttpRequestExecutor httpexecutor = new
HttpRequestExecutor();
HttpContext context = new BasicHttpContext(null);
HttpHost host = new HttpHost (tskhost, port );
DefaultHttpClientConnection conn = new
DefaultHttpClientConnection();
ConnectionReuseStrategy connStrategy = new
DefaultConnectionReuseStrategy();
...
BasicHttpEntityEnclosingRequest request = new
BasicHttpEntityEnclosingRequest("POST", tskurl);
request.setEntity(requestBodies[i]);
...
request.setParams(params);
httpexecutor.preProcess(request, httpproc, context);
HttpResponse response = httpexecutor.execute(request,
conn, context);
response.setParams(params);
httpexecutor.postProcess(response, httpproc, context);
....
//If you want to dispatch to an other HTTP poster, add
Search WWH ::




Custom Search