| Modifier and Type | Method and Description |
|---|---|
protected AltFormat |
Service.ClientStreamProperties.getAltFormat()
Returns the
AltFormat describing the representation used for
the current request. |
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
MetadataContext.getAltFormat()
The alt format the context represents.
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataContext |
MetadataContext.forAlt(AltFormat format)
Creates a new immutable metadata context with just an alt format.
|
static MetadataContext |
MetadataContext.forContext(AltFormat format,
String projection,
Version version)
Creates a new immutable metadata context.
|
| Modifier and Type | Field and Description |
|---|---|
static AltFormat |
AltFormat.APPLICATION_XML
Constant value representing application/xml document
|
static AltFormat |
AltFormat.ATOM
Constant value representing the Atom Syndication Format, as defined by
RFC 4287.
|
static AltFormat |
AltFormat.ATOM_SERVICE
Constant value representing the AtomPub Service Document, as described
by RFC 5023.
|
static AltFormat |
AltFormat.MEDIA
Constant value representing the media content associated with a GData
resource.
|
static AltFormat |
AltFormat.MEDIA_MULTIPART
Constant value representing the MIME Multipart Document format, as
described by RFC 2045.
|
static AltFormat |
AltFormat.OPENSEARCH
Constant value representing the OpenSearch Description Document, as
described by OpenSearch 1.1.
|
static AltFormat |
AltFormat.RSS
Constant value representing the Really Simple Syndication (RSS) format, as
defined by RSS 2.0
.
|
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
AltFormat.Builder.build()
Builds the
AltFormat. |
AltFormat |
AltFormat.getBaseFormat()
Returns the base format, if this format is a variant.
|
AltFormat |
AltRegistry.lookupName(String name)
Returns the alt format that has been registered with the specified name.
|
AltFormat |
AltRegistry.lookupType(ContentType contentType)
Returns the alt format that has been registered with the specified content
type.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<AltFormat> |
AltRegistry.registeredFormats()
Returns a collection of all registered formats in the registry.
|
| Modifier and Type | Method and Description |
|---|---|
AltFormat.Builder |
AltFormat.Builder.addAllowedInputFormats(AltFormat... formats)
Declares formats as being acceptable input formats when the
current AltFormat is selected as output.
|
boolean |
AltFormat.allowInputFormat(AltFormat inputFormat)
Returns
true if inputFormat is allowed as input format when
this format with this format as the output format. |
static AltFormat.Builder |
AltFormat.builder(AltFormat format)
Creates a builder for a new AltFormat.
|
OutputGenerator<?> |
AltRegistry.getGenerator(AltFormat altFormat)
Returns the
OutputGenerator for the provided format or null
if the format is not registered. |
InputParser<?> |
AltRegistry.getParser(AltFormat altFormat)
Returns the
InputParser for a format or null if the format
is not registered or does not support input parsing. |
boolean |
AltRegistry.hasSameHandlers(AltRegistry targetRegistry,
AltFormat altFormat)
Returns
true has an identical registration with the target
registry for the specified alt format. |
void |
AltRegistry.register(AltFormat format,
InputParser<?> parser,
OutputGenerator<?> generator)
Registers the configuration for an
AltFormat, replacing any
existing configuration for the format in the registry. |
AltFormat.Builder |
AltFormat.Builder.setBaseFormat(AltFormat base)
Declares another
AltFormat as the base for this one. |
| Modifier and Type | Field and Description |
|---|---|
protected AltFormat |
AbstractParser.altFormat |
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
InputParser.getAltFormat()
Returns the alternate representation format that is expected as input to
the parser.
|
AltFormat |
AtomServiceDualParser.getAltFormat() |
AltFormat |
AtomDualParser.getAltFormat() |
AltFormat |
AbstractParser.getAltFormat() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ElementParser<T> |
ElementParser.of(AltFormat altFormat,
Class<T> resultType)
Provides a factory method to create a new
ElementParser that
handles a particular representation to produce a particular type of
result. |
| Constructor and Description |
|---|
AbstractParser(AltFormat altFormat,
Class<? extends T> resultType)
Constructs a new AbstractParser instance for the specified representation
and result type.
|
CharacterParser(AltFormat altFormat,
Class<T> resultClass)
Constructs a new CharacterParser that parses content in a particular
alt format and returns instances of the specified type.
|
ElementParser(AltFormat altFormat,
Class<T> resultType)
Constructs a new ElementParser instance for parsing content in a a
particular representation to produce results of a specified type.
|
XmlInputParser(AltFormat altFormat,
Class<T> resultClass)
Creates a new XmlInputParser instance for the provided representation and
result type.
|
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
RssGenerator.getAltFormat() |
AltFormat |
RssDualGenerator.getAltFormat() |
AltFormat |
OutputGenerator.getAltFormat()
Returns the alternate representation format produced the generator.
|
AltFormat |
OpenSearchGenerator.getAltFormat() |
AltFormat |
ElementGenerator.getAltFormat() |
AltFormat |
AtomServiceGenerator.getAltFormat() |
AltFormat |
AtomServiceDualGenerator.getAltFormat() |
AltFormat |
AtomGenerator.getAltFormat() |
AltFormat |
AtomDualGenerator.getAltFormat() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Element> |
ElementGenerator.of(AltFormat altFormat,
Class<E> inputType) |
| Constructor and Description |
|---|
AtomDualGenerator(AltFormat altFormat) |
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
MediaMultipartGenerator.getAltFormat() |
AltFormat |
MediaGenerator.getAltFormat() |
Copyright © 2012. All Rights Reserved.