public interface Request
Represents a single request/response pair.
The contract mandates the following order of invocation of methods:
releaseRequest() method MUST be called anyway, even if error occurred.
Requester| Modifier and Type | Method and Description |
|---|---|
void |
commitRequest()
Commits a request.
|
InputStream |
getInputStream()
Returns
InputStream from which user may get response data. |
OutputStream |
getOutputStream()
Returns
OutputStream to which user may send request data. |
void |
releaseRequest()
Releases resources claimed by request (closes connections, etc.).
|
OutputStream getOutputStream() throws IOException
OutputStream to which user may send request data.IOException - if i/o error occursvoid commitRequest()
throws IOException
IOException - if i/o error occursInputStream getInputStream() throws IOException
InputStream from which user may get response data.IOException - if i/o error occursvoid releaseRequest()
Copyright © 2015. All rights reserved.