public class

ForwardingStreamProperties

extends Object
implements StreamProperties
java.lang.Object
   ↳ com.google.gdata.wireformats.ForwardingStreamProperties
Known Direct Subclasses

Class Overview

A StreamProperties implementation that forwards all calls to another StreamProperties.

Subclass this and override the methods you want modified to create a wrapper for StreamProperties.

Summary

Fields
private final StreamProperties delegate
Public Constructors
ForwardingStreamProperties(StreamProperties delegate)
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 StreamProperties delegate

Public Constructors

public ForwardingStreamProperties (StreamProperties delegate)

Parameters
delegate

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.