class TransportHttp.MultiRequestService extends TransportHttp.Service
A service wrapper provides a normal looking InputStream and OutputStream pair which are connected via HTTP to the named remote service. Writing to the OutputStream is buffered until either the buffer overflows, or reading from the InputStream occurs. If overflow occurs HTTP/1.1 and its chunked transfer encoding is used to stream the request data to the remote service. If the entire request fits in the memory buffer, the older HTTP/1.0 standard and a fixed content length is used instead.
It is an error to attempt to read without there being outstanding data ready for transmission on the OutputStream.
No state is preserved between write-read request pairs. The caller is responsible for replaying state vector information as part of the request data written to the OutputStream. Any session HTTP cookies may or may not be preserved between requests, it is left up to the JVM's implementation of the HTTP client.
TransportHttp.Service.HttpExecuteStream, TransportHttp.Service.HttpOutputStream
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
finalRequest |
conn, execute, in, out, requestType, responseType, serviceName
Constructor and Description |
---|
MultiRequestService(java.lang.String serviceName) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
execute()
Keep opening send-receive pairs to the given URI.
|
getInputStream, getOutputStream, openResponse, openStream, sendRequest
void execute() throws java.io.IOException
execute
in class TransportHttp.Service
java.io.IOException