public final class HTTPClient
extends java.lang.Object
| Constructor and Description |
|---|
HTTPClient(InputInfo ii,
Prop pr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iter |
sendRequest(byte[] href,
ANode request,
ItemCache bodies)
Sends an HTTP request and returns the response.
|
void |
setRequestContent(java.io.OutputStream out,
HTTPRequest r)
Set HTTP request content.
|
public Iter sendRequest(byte[] href, ANode request, ItemCache bodies) throws QueryException
href - URL to send the request torequest - request databodies - content itemsQueryException - query exceptionpublic void setRequestContent(java.io.OutputStream out,
HTTPRequest r)
throws java.io.IOException,
QueryException
out - output streamr - request datajava.io.IOException - I/O exceptionQueryException - query exception