| java.lang.Object | |
| ↳ | com.google.gdata.wireformats.AltFormat |
The AltFormat class represents an alternate representation format for a GData
resources. An alternate format has a name (which may be used as the alt query parameter for GData requests), a primary MIME content type (which
may act as an alias for the name if unique to the representation), and
several other attributes.
Two AltFormat instances are considered to be equal if they have the same name.
This class also exposes static constants for common GData alternate representation formats that are available across multiple GData services.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AltFormat.Builder | A builder for AltFormat. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| APPLICATION_XML | Constant value representing application/xml document | ||||||||||
| ATOM | Constant value representing the Atom Syndication Format, as defined by RFC 4287. | ||||||||||
| ATOM_SERVICE | Constant value representing the AtomPub Service Document, as described by RFC 5023. | ||||||||||
| MEDIA | Constant value representing the media content associated with a GData resource. | ||||||||||
| MEDIA_MULTIPART | Constant value representing the MIME Multipart Document format, as described by RFC 2045. | ||||||||||
| OPENSEARCH | Constant value representing the OpenSearch Description Document, as described by OpenSearch 1.1. | ||||||||||
| RSS | Constant value representing the Really Simple Syndication (RSS) format, as defined by RSS 2.0 . | ||||||||||
| acceptList | List of acceptable matching types for alternate representation | ||||||||||
| base | The base alt format this alt format wraps another one, for the *-in-script variants. | ||||||||||
| contentType | Primary MIME content type for alternate representation | ||||||||||
| extraInputFormats | |||||||||||
| isSelectableByType | Boolean used to indicate that the primary MIME type can be used to select the representation. | ||||||||||
| name | Formal name of alternate representation | ||||||||||
| wireFormat | Wire format to use when parsing or generating the class (or null
if no associated wire format exists). |
||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
Please use the
AltFormat.Builder instead. See builder().
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns
true if inputFormat is allowed as input format when
this format with this format as the output format. | |||||||||||
Creates a builder for a new AltFormat.
| |||||||||||
Creates a builder for a new AltFormat.
| |||||||||||
Returns the base format, if this format is a variant.
| |||||||||||
Returns the primary MIME content type used for the representation.
| |||||||||||
Returns a list of all MIME types that will be considered to potentially
match the representation for the purposes of content negotiation.
| |||||||||||
Returns the short name for this format.
| |||||||||||
Returns the
WireFormat that is used to parse and generate the
representation or null if no supporting wire format exists. | |||||||||||
Returns
true if this format is a variant, such as *-in-script. | |||||||||||
Returns
true, indicates that the MIME content type can be used as
an alias to select the representation. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constant value representing the Atom Syndication Format, as defined by RFC 4287.
Constant value representing the AtomPub Service Document, as described by RFC 5023. This representation is only available for feed resources.
Constant value representing the media content associated with a GData resource. The actual content type returned will depend upon the native media representation of the target resource.
Constant value representing the MIME Multipart Document format, as described by RFC 2045. The multipart document contains both the Atom representation (as one part) and the associated media content (as another part). This representation is available only for GData media resources.
Constant value representing the OpenSearch Description Document, as described by OpenSearch 1.1. This representation is only able for feed resources.
Constant value representing the Really Simple Syndication (RSS) format, as defined by RSS 2.0 .
List of acceptable matching types for alternate representation
The base alt format this alt format wraps another one, for the *-in-script variants.
Boolean used to indicate that the primary MIME type can be used to select the representation.
Formal name of alternate representation
Wire format to use when parsing or generating the class (or null
if no associated wire format exists).
This constructor is deprecated.
Please use the AltFormat.Builder instead. See builder().
Constructs a new alternate representation format with the provided attributes.
| name | The short name for this format. This values is suitable for use
as the value of the alt query parameter. |
|---|---|
| wireFormat | The content wire format or null if there is no
associated wire format for the representation. |
| contentType | The primary MIME content type used for the representation. |
| acceptList | A list of all MIME types that will be considered to
potentially match the representation for the purposes of content
negotiation. A value of null is equivalent to a single item
list containing only the primary content type. |
| isSelectableByType | If true, indicates that the MIME content
type can be used as an alias to select the representation. |
Returns true if inputFormat is allowed as input format when
this format with this format as the output format.
| inputFormat |
|---|
Creates a builder for a new AltFormat. Pre-initializes the builder with a prototype format.
| format |
|---|
| o |
|---|
Returns the base format, if this format is a variant. Otherwise returns
null.
Returns the primary MIME content type used for the representation.
Returns a list of all MIME types that will be considered to potentially match the representation for the purposes of content negotiation.
Returns the short name for this format. This values is suitable for use as
the value of the alt query parameter.
Returns the WireFormat that is used to parse and generate the
representation or null if no supporting wire format exists.
Returns true if this format is a variant, such as *-in-script.
Returns true, indicates that the MIME content type can be used as
an alias to select the representation.