public abstract class

StreamPropertiesBuilder

extends Object
java.lang.Object
   ↳ com.google.gdata.wireformats.StreamPropertiesBuilder<T extends com.google.gdata.wireformats.StreamPropertiesBuilder<T>>
Known Direct Subclasses

Class Overview

The StreamPropertiesBuilder class is a abstract builder base class that aids in the construction of new StreamProperties instances.

Summary

Nested Classes
class StreamPropertiesBuilder.StreamPropertiesImpl The StreamPropertiesImpl class is a simple immutable value object that implements the StreamProperties interface. 
Fields
protected AltRegistry altRegistry
protected ContentType contentType
protected ExtensionProfile extensionProfile
protected final Map<String, String> queryMap
protected ElementMetadata<?, ?> rootMetadata
Protected Constructors
StreamPropertiesBuilder()
Constructs a new StreamPropertiesBuilder with no properties set.
StreamPropertiesBuilder(StreamProperties source)
Constructs a new StreamPropertiesBuilder instance with the initial value of all properties copied from another StreamProperties instance.
Public Methods
T setAltRegistry(AltRegistry altRegistry)
Sets the AltRegistry property that should be used for instances created by the builder.
T setContentType(ContentType contentType)
Sets the ContentType property that should be used for instances created by the builder.
T setElementMetadata(ElementMetadata<?, ?> elementMetadata)
Sets the ElementMetadata that should be used for instances created by the builder.
T setExtensionProfile(ExtensionProfile extensionProfile)
Sets the ExtensionProfile property that should be used for instances created by the builder.
T setQueryParameter(String name, String value)
Sets the value of a query parameter in the query Map that should be used for instances created by the builder.
T setQueryParameters(Map<String, String> queryMap)
Adds all query parameter values defined in the provided Map to the set of query parameters used for instances created by the builder.
final T thisInstance()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected AltRegistry altRegistry

protected ContentType contentType

protected ExtensionProfile extensionProfile

protected final Map<String, String> queryMap

protected ElementMetadata<?, ?> rootMetadata

Protected Constructors

protected StreamPropertiesBuilder ()

Constructs a new StreamPropertiesBuilder with no properties set.

protected StreamPropertiesBuilder (StreamProperties source)

Constructs a new StreamPropertiesBuilder instance with the initial value of all properties copied from another StreamProperties instance.

Parameters
source Stream properties instance to copy from.

Public Methods

public T setAltRegistry (AltRegistry altRegistry)

Sets the AltRegistry property that should be used for instances created by the builder.

Parameters
altRegistry Alt registry to set in built instances.
Returns
  • this builder (to enable initialization chaining).

public T setContentType (ContentType contentType)

Sets the ContentType property that should be used for instances created by the builder.

Parameters
contentType Content type to set in built instances.
Returns
  • this builder (to enable initialization chaining).

public T setElementMetadata (ElementMetadata<?, ?> elementMetadata)

Sets the ElementMetadata that should be used for instances created by the builder.

Parameters
elementMetadata Element metadata to set in built instances.
Returns
  • this builder (to enable initialization chaining).

public T setExtensionProfile (ExtensionProfile extensionProfile)

Sets the ExtensionProfile property that should be used for instances created by the builder.

Parameters
extensionProfile Extension profile to set in built instances.
Returns
  • this builder (to enable initialization chaining).

public T setQueryParameter (String name, String value)

Sets the value of a query parameter in the query Map that should be used for instances created by the builder. Any existing value with the same name will be overwritten.

Parameters
name Query parameter name
value Query parameter value
Returns
  • this builder (to enable initialization chaining).

public T setQueryParameters (Map<String, String> queryMap)

Adds all query parameter values defined in the provided Map to the set of query parameters used for instances created by the builder. Any existing query parameter mappings with names contained in the map will be overwritten.

Parameters
queryMap Query map to set in built instances.
Returns
  • this builder (to enable initialization chaining).

public final T thisInstance ()