public abstract class FileReadRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static FileReadRequest |
create(FssApiVersion apiVersion,
java.io.InputStreamReader reader)
Constructs a FileReadRequest from the JSON string representation contained in reader.
|
static FileReadRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.String etag,
java.lang.Boolean forceDownload)
Returns a versioned FileReadRequest that is compatible with the specified apiVersion.
|
java.lang.String |
getEtag()
Returns the last known etag of the file to be read, or null if the file should be read
regardless of its etag.
|
java.lang.Boolean |
getForceDownload()
If set to true, the server will always return the file version associated with the etag the
client passes in, regardless of whether or not the client has the latest version.
|
static java.lang.Class<? extends FileReadRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FileReadRequest that corresponds to the specified
apiVersion. |
java.lang.String |
getPath()
Returns the path of the file to be read.
|
void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
badValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends FileReadRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the FileReadRequest that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the FileReadRequest that corresponds to the specified
apiVersionAwUnsupportedApiVersionExceptionpublic static FileReadRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.String etag, java.lang.Boolean forceDownload) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the FileReadRequestpath - path of the file to be downloadedetag - the etag of the file. If the etag of the file on the server matches this etag, it
will not send the fileforceDownload - whether or not to force a download of the file version associated with the etag
the user passes in.AwUnsupportedApiVersionExceptionpublic static FileReadRequest create(FssApiVersion apiVersion, java.io.InputStreamReader reader) throws AwJsonException, AwUnsupportedApiVersionException
apiVersion - API version of the object to be read from readerreader - contains the JSON string representation of a FileReadRequestAwJsonExceptionAwUnsupportedApiVersionExceptionpublic void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
validate in class BaseFssApiResourcefieldName - name of this object in the parent (containing) object. If this object is a
top-level object (not contained within another object), then enter null for this
parameterparent - parent (containing) object that contains the object specified in the fieldName
parameter. If this object is a top-level object (not contained within another
object), then enter null for this parameterAwJsonException - if any validation errors occurBaseFssApiResource.validate(String, BaseFssApiResource)public java.lang.String getPath()
public java.lang.String getEtag()
public java.lang.Boolean getForceDownload()