com.google.gdata.wireformats
Class StreamPropertiesBuilder.StreamPropertiesImpl

java.lang.Object
  extended by com.google.gdata.wireformats.StreamPropertiesBuilder.StreamPropertiesImpl
All Implemented Interfaces:
StreamProperties
Enclosing class:
StreamPropertiesBuilder<T extends StreamPropertiesBuilder<T>>

protected static class StreamPropertiesBuilder.StreamPropertiesImpl
extends java.lang.Object
implements StreamProperties

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


Constructor Summary
protected StreamPropertiesBuilder.StreamPropertiesImpl(StreamPropertiesBuilder<?> builder)
          Constructs a new StreamPropertiesImpl instance from the values contained in a builder instance.
 
Method Summary
 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.
 java.lang.String getQueryParameter(java.lang.String name)
          Returns the value of a request query parameter by name or null if not found.
 java.util.Collection<java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamPropertiesBuilder.StreamPropertiesImpl

protected StreamPropertiesBuilder.StreamPropertiesImpl(StreamPropertiesBuilder<?> builder)
Constructs a new StreamPropertiesImpl instance from the values contained in a builder instance.

Parameters:
builder - build instance.
Method Detail

getAltRegistry

public AltRegistry getAltRegistry()
Description copied from interface: StreamProperties
Returns the AltRegistry that contains the set of supported representations and the parser/generator configuration for them.

Specified by:
getAltRegistry in interface StreamProperties

getContentType

public ContentType getContentType()
Description copied from interface: StreamProperties
Returns the MIME content type of data on the stream.

Specified by:
getContentType in interface StreamProperties
Returns:
data content type

getExtensionProfile

public ExtensionProfile getExtensionProfile()
Description copied from interface: StreamProperties
Returns the ExtensionProfile associated with the stream.

Specified by:
getExtensionProfile in interface StreamProperties
Returns:
extension profile or null for requests that use the data model classes in com.google.gdata.model.

getQueryParameterNames

public java.util.Collection<java.lang.String> getQueryParameterNames()
Description copied from interface: StreamProperties
Returns a Collection that contains the name of all query parameters found in the request.

Specified by:
getQueryParameterNames in interface StreamProperties

getQueryParameter

public java.lang.String getQueryParameter(java.lang.String name)
Description copied from interface: StreamProperties
Returns the value of a request query parameter by name or null if not found.

Specified by:
getQueryParameter in interface StreamProperties

getRootMetadata

public ElementMetadata<?,?> getRootMetadata()
Description copied from interface: StreamProperties
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.

Specified by:
getRootMetadata in interface StreamProperties