|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.xremoting.core.http.HttpRequest
public class HttpRequest
Request implementation for HTTP using HttpURLConnection.
HttpRequester| Constructor Summary | |
|---|---|
HttpRequest(HttpURLConnection connection)
|
|
| Method Summary | |
|---|---|
protected void |
checkStatusCode(HttpURLConnection connection)
|
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.). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequest(HttpURLConnection connection)
| Method Detail |
|---|
public OutputStream getOutputStream()
throws IOException
RequestOutputStream to which user may send request data.
getOutputStream in interface RequestIOException - if i/o error occurs
public void commitRequest()
throws IOException
Request
commitRequest in interface RequestIOException - if i/o error occurs
protected void checkStatusCode(HttpURLConnection connection)
throws IOException
IOException
public InputStream getInputStream()
throws IOException
RequestInputStream from which user may get response data.
getInputStream in interface RequestIOException - if i/o error occurspublic void releaseRequest()
Request
releaseRequest in interface Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||