protected static class

StreamPropertiesBuilder.StreamPropertiesImpl

extends Object
implements StreamProperties
java.lang.Object
   ↳ com.google.gdata.wireformats.StreamPropertiesBuilder.StreamPropertiesImpl

Class Overview

The StreamPropertiesImpl class is a simple immutable value object that implements the StreamProperties interface.

Summary

Fields
private final AltRegistry altRegistry
private final ContentType contentType
private final ElementMetadata<?, ?> elementMetadata
private final ExtensionProfile extensionProfile
private final Map<String, String> queryMap
Protected Constructors
StreamPropertiesBuilder.StreamPropertiesImpl(StreamPropertiesBuilder<?> builder)
Constructs a new StreamPropertiesImpl instance from the values contained in a builder instance.
Public Methods
AltRegistry getAltRegistry()
Returns the AltRegistry that contains the set of supported representations and the parser/generator configuration for them.
ContentType getContentType()
Returns the MIME content type of data on the stream.
ExtensionProfile getExtensionProfile()
Returns the ExtensionProfile associated with the stream.
String getQueryParameter(String name)
Returns the value of a request query parameter by name or null if not found.
Collection<String> getQueryParameterNames()
Returns a Collection that contains the name of all query parameters found in the request.
ElementMetadata<?, ?> getRootMetadata()
Returns the ElementMetadata for the root object that is being read from or written to the stream.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.wireformats.StreamProperties

Fields

private final AltRegistry altRegistry

private final ContentType contentType

private final ElementMetadata<?, ?> elementMetadata

private final ExtensionProfile extensionProfile

private final Map<String, String> queryMap

Protected Constructors

protected StreamPropertiesBuilder.StreamPropertiesImpl (StreamPropertiesBuilder<?> builder)

Constructs a new StreamPropertiesImpl instance from the values contained in a builder instance.

Parameters
builder Build instance.

Public Methods

public AltRegistry getAltRegistry ()

Returns the AltRegistry that contains the set of supported representations and the parser/generator configuration for them.

public ContentType getContentType ()

Returns the MIME content type of data on the stream.

Returns
  • data content type

public ExtensionProfile getExtensionProfile ()

Returns the ExtensionProfile associated with the stream.

Returns
  • extension profile or null for requests that use the data model classes in com.google.gdata.model.

public String getQueryParameter (String name)

Returns the value of a request query parameter by name or null if not found.

Parameters
name

public Collection<String> getQueryParameterNames ()

Returns a Collection that contains the name of all query parameters found in the request.

public ElementMetadata<?, ?> getRootMetadata ()

Returns the ElementMetadata for the root object that is being read from or written to the stream. This metadata will already be bound to the appropriate MetadataContext for the currently executing request.