public class Representation extends Object
Modifier and Type | Class and Description |
---|---|
class |
Representation.Content
Representation's content.
|
class |
Representation.Info
Representation's info URL.
|
class |
Representation.Status
Representation's status.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
X_REP_HINTS_PATTERN
Used to validate if the hints header has (near) valid value.
|
Constructor and Description |
---|
Representation(JsonObject representationJson)
Construct a representation from JsonObject.
|
Modifier and Type | Method and Description |
---|---|
Representation.Content |
getContent()
Get representation's content which includes a url template.
|
Representation.Info |
getInfo()
Get Info which has an opaque URL which will return status information about the file.
|
JsonObject |
getMetadata()
Get representation's metadata.
|
JsonObject |
getProperties()
Get representation's set of static properties to distinguish between subtypes of a given representation,
for example, different sizes of jpg's.
|
String |
getRepresentation()
Get the extension of the format, but occasionally a name of a standard (potentially de facto) format
or a proprietary format that Box supports.
|
Representation.Status |
getStatus()
A string with one of the following values: 'none', 'pending', 'viewable', 'error' and 'success'.
|
protected static final String X_REP_HINTS_PATTERN
public Representation(JsonObject representationJson)
representationJson
- representaion entrypublic String getRepresentation()
public JsonObject getProperties()
public JsonObject getMetadata()
public Representation.Info getInfo()
public Representation.Content getContent()
public Representation.Status getStatus()