Fields Summary |
---|
public static final int | TYPE_REGISTRATION_INFOAcquires DRM server registration information. |
public static final int | TYPE_UNREGISTRATION_INFOAcquires information for unregistering the DRM server. |
public static final int | TYPE_RIGHTS_ACQUISITION_INFOAcquires rights information. |
public static final int | TYPE_RIGHTS_ACQUISITION_PROGRESS_INFOAcquires the progress of the rights acquisition. |
public static final String | ACCOUNT_IDKey that is used to pass the unique session ID for the account or the user. |
public static final String | SUBSCRIPTION_IDKey that is used to pass the unique session ID for the subscription. |
private final int | mInfoType |
private final String | mMimeType |
private final HashMap | mRequestInformation |
Methods Summary |
---|
public java.lang.Object | get(java.lang.String key)Retrieves the value of a given key.
return mRequestInformation.get(key);
|
public int | getInfoType()Retrieves the information type associated with this object.
return mInfoType;
|
public java.lang.String | getMimeType()Retrieves the MIME type associated with this object.
return mMimeType;
|
boolean | isValid()Returns whether this instance is valid or not
return (null != mMimeType && !mMimeType.equals("")
&& null != mRequestInformation && isValidType(mInfoType));
|
static boolean | isValidType(int infoType)
boolean isValid = false;
switch (infoType) {
case TYPE_REGISTRATION_INFO:
case TYPE_UNREGISTRATION_INFO:
case TYPE_RIGHTS_ACQUISITION_INFO:
case TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO:
isValid = true;
break;
}
return isValid;
|
public java.util.Iterator | iterator()Retrieves an iterator object that you can use to iterate over the values associated with
this DrmInfoRequest object.
return mRequestInformation.values().iterator();
|
public java.util.Iterator | keyIterator()Retrieves an iterator object that you can use to iterate over the keys associated with
this DrmInfoRequest object.
return mRequestInformation.keySet().iterator();
|
public void | put(java.lang.String key, java.lang.Object value)Adds optional information as key-value pairs to this object.
mRequestInformation.put(key, value);
|