|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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| Method Summary | |
|---|---|
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.). |
| Method Detail |
|---|
OutputStream getOutputStream()
throws IOException
OutputStream to which user may send request data.
IOException - if i/o error occurs
void commitRequest()
throws IOException
IOException - if i/o error occurs
InputStream getInputStream()
throws IOException
InputStream from which user may get response data.
IOException - if i/o error occursvoid releaseRequest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||