com.google.gdata.wireformats
Interface StreamProperties

All Known Subinterfaces:
InputProperties, OutputProperties
All Known Implementing Classes:
ForwardingInputProperties, ForwardingOutputProperties, ForwardingStreamProperties, Service.ClientOutputProperties

public interface StreamProperties

The StreamProperties interface defines the common set of properties for input or output data streams that are being used to consume/produce data.


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.
 

Method Detail

getContentType

ContentType getContentType()
Returns the MIME content type of data on the stream.

Returns:
data content type

getQueryParameterNames

java.util.Collection<java.lang.String> getQueryParameterNames()
Returns a Collection that contains the name of all query parameters found in the request.


getQueryParameter

java.lang.String getQueryParameter(java.lang.String name)
Returns the value of a request query parameter by name or null if not found.


getExtensionProfile

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.

getAltRegistry

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


getRootMetadata

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.