public abstract class BaseRequestSender extends java.lang.Object implements IRequestSender
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EMPTY_VALUE |
protected java.net.HttpURLConnection |
mHttpURLConnection |
protected IRequest<?> |
mRequest |
protected RequestData |
mRequestData |
| Constructor and Description |
|---|
BaseRequestSender(IRequest<?> request,
java.net.HttpURLConnection httpURLConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
getResponse(java.lang.StringBuilder sb)
Completes the request and receives response from the server.
|
void |
setup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendprotected static final java.lang.String EMPTY_VALUE
protected java.net.HttpURLConnection mHttpURLConnection
protected RequestData mRequestData
protected IRequest<?> mRequest
public BaseRequestSender(IRequest<?> request, java.net.HttpURLConnection httpURLConnection)
public void setup()
throws java.io.IOException
setup in interface IRequestSenderjava.io.IOExceptionpublic void getResponse(java.lang.StringBuilder sb)
throws java.io.IOException
java.io.IOException