| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
account |
static java.lang.String |
AD_SUPPORTED |
protected java.lang.String |
baseURL |
static java.lang.String |
ECONOMICS |
protected java.util.List<java.lang.String> |
errors |
protected EventEmitter |
eventEmitter |
static java.lang.String |
FREE |
protected HttpRequestConfig |
httpRequestConfig |
protected HttpService |
httpService |
protected java.net.URI |
uri |
| Constructor and Description |
|---|
GetPlaylistTask(EventEmitter eventEmitter,
java.lang.String baseURL,
HttpRequestConfig httpRequestConfig,
java.lang.String account) |
GetPlaylistTask(EventEmitter eventEmitter,
java.lang.String baseURL,
HttpRequestConfig httpRequestConfig,
java.lang.String account,
java.lang.String policy) |
GetPlaylistTask(EventEmitter eventEmitter,
java.lang.String baseURL,
java.util.Map<java.lang.String,java.lang.String> options,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
java.lang.String account,
java.lang.String policy)
Deprecated.
Please use
GetPlaylistTask(EventEmitter, String, HttpRequestConfig, String, String) instead. |
GetPlaylistTask(EventEmitter eventEmitter,
java.lang.String baseURL,
java.util.Map<java.lang.String,java.lang.String> options,
java.lang.String account,
java.lang.String policy)
Deprecated.
Please use
GetPlaylistTask(EventEmitter, String, HttpRequestConfig, String, String) instead. |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.URI |
createURI(java.lang.String... params)
Creates a
URI object with the baseURL passed in the constructor
and appends the String params to the Url. |
protected com.brightcove.player.edge.EdgeTaskResult<T> |
doInBackground(java.net.URI... params) |
void |
getById(java.lang.String playlistId,
PlaylistListener playlistListener) |
void |
getByReferenceId(java.lang.String referenceId,
PlaylistListener playlistListener) |
protected void |
onPostExecute(com.brightcove.player.edge.EdgeTaskResult<Playlist> result) |
protected Playlist |
processData(org.json.JSONObject data)
Parses the JSON object to return the typed Object.
|
public static final java.lang.String ECONOMICS
public static final java.lang.String AD_SUPPORTED
public static final java.lang.String FREE
protected EventEmitter eventEmitter
@NonNull protected java.lang.String baseURL
@NonNull protected java.lang.String account
protected java.net.URI uri
protected HttpService httpService
protected java.util.List<java.lang.String> errors
protected final HttpRequestConfig httpRequestConfig
@Deprecated
public GetPlaylistTask(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String baseURL,
@Nullable
java.util.Map<java.lang.String,java.lang.String> options,
@NonNull
java.lang.String account,
@NonNull
java.lang.String policy)
GetPlaylistTask(EventEmitter, String, HttpRequestConfig, String, String) instead.@Deprecated
public GetPlaylistTask(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String baseURL,
@Nullable
java.util.Map<java.lang.String,java.lang.String> options,
@Nullable
java.util.Map<java.lang.String,java.lang.String> queryParameters,
@NonNull
java.lang.String account,
@NonNull
java.lang.String policy)
GetPlaylistTask(EventEmitter, String, HttpRequestConfig, String, String) instead.public GetPlaylistTask(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String baseURL,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
java.lang.String account,
@NonNull
java.lang.String policy)
public GetPlaylistTask(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String baseURL,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
java.lang.String account)
public void getById(java.lang.String playlistId,
PlaylistListener playlistListener)
public void getByReferenceId(java.lang.String referenceId,
PlaylistListener playlistListener)
protected void onPostExecute(com.brightcove.player.edge.EdgeTaskResult<Playlist> result)
onPostExecute in class android.os.AsyncTask<java.net.URI,java.lang.Void,com.brightcove.player.edge.EdgeTaskResult<Playlist>>protected Playlist processData(@NonNull org.json.JSONObject data) throws org.json.JSONException, VideoParseException
doInBackground(URI...) method.data - the Json object returned from the responseorg.json.JSONExceptionVideoParseException@NonNull protected com.brightcove.player.edge.EdgeTaskResult<T> doInBackground(java.net.URI... params)
doInBackground in class android.os.AsyncTask<java.net.URI,java.lang.Void,com.brightcove.player.edge.EdgeTaskResult<T>>protected java.net.URI createURI(java.lang.String... params)
throws java.net.URISyntaxException
URI object with the baseURL passed in the constructor
and appends the String params to the Url.
For example: baseURL/param1/param2.../paramN
If the HttpRequestConfig.getQueryParameters() map is not empty,
it will also append its values to the url.
For example:
baseUrl?key1=value1&key2=value2&...&keyN=valueN
baseUrl/param1/param2.../paramN?key1=value1&key2=value2&...&keyN=valueN
params - the paramsjava.net.URISyntaxException - the uri syntax exception