public class BazaarRequest
extends java.lang.Object
There are options for both display and submission using asynchronous requests, queued requests, and blocking requests.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
boundary |
protected int |
contentLength |
protected boolean |
media |
protected java.util.ArrayList<java.lang.String> |
mediaParam |
protected boolean |
multipart |
protected java.util.ArrayList<java.lang.String> |
multiPartParams |
protected java.lang.Object |
receivedData |
protected java.lang.String |
requestUrl |
protected int |
serverResponseCode |
protected java.net.URL |
url |
| Constructor and Description |
|---|
BazaarRequest()
Initialize the request
|
BazaarRequest(java.lang.String apiKeyConversations,
ApiVersion apiVersion)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getSendDisplayUrlString(RequestType type,
DisplayParams params) |
void |
postSubmission(RequestType type,
BazaarParams params,
OnBazaarResponse listener)
Post a submission, spawn a thread, and return the response via the
listener.
|
void |
sendDisplayRequest(RequestType type,
DisplayParams params,
OnBazaarResponse listener)
Send a request, spawn a thread, and return the result via the listener.
|
protected java.lang.String requestUrl
protected java.net.URL url
protected int serverResponseCode
protected java.util.ArrayList<java.lang.String> multiPartParams
protected java.util.ArrayList<java.lang.String> mediaParam
protected int contentLength
protected java.lang.Object receivedData
protected java.lang.String boundary
protected boolean multipart
protected boolean media
public BazaarRequest()
@Deprecated
public BazaarRequest(java.lang.String apiKeyConversations,
ApiVersion apiVersion)
DEPRECATED: In favor of the BazaarRequest() constructor with no
parameters since it can now pull them from com.bazaarvoice.bvandroidsdk.BVSDK.Builder#apiKeyConversations(String), if set.
Initialize the request with the necessary parameters.
apiKeyConversations - Bazaarvoice Conversations API KeyapiVersion - Bazaarvoice Conversations API Versionpublic void sendDisplayRequest(RequestType type, DisplayParams params, OnBazaarResponse listener)
type - the type of requestparams - the parameters for the requestlistener - the listener to handle the results onprotected java.lang.String getSendDisplayUrlString(RequestType type, DisplayParams params)
public void postSubmission(RequestType type, BazaarParams params, OnBazaarResponse listener)
type - the type of requestparams - the parameters for the requestlistener - the listener to handle the results on