protected class

Service.ClientInputProperties

extends Service.ClientStreamProperties
implements InputProperties
java.lang.Object
   ↳ com.google.gdata.client.Service.ClientStreamProperties
     ↳ com.google.gdata.client.Service.ClientInputProperties

Class Overview

The ClientInputProperties class is an adaptor class that implements the InputProperties interface for content to be read from the target service based upon its attributes and a Service.GDataRequest.

Summary

Fields
private ElementMetadata<?, ?> elementMetadata
private final Class<?> expectType
protected final ContentType inputType
[Expand]
Inherited Fields
From class com.google.gdata.client.Service.ClientStreamProperties
Protected Constructors
Service.ClientInputProperties(Service.GDataRequest req, Class<?> expectType)
Service.ClientInputProperties(ContentType inputType, Class<?> expectType)
Public Methods
ContentType getContentType()
Returns the MIME content type of data on the stream.
ElementMetadata<?, ?> getRootMetadata()
Returns the ElementMetadata for the root object that is being read from or written to the stream.
Class<?> getRootType()
Returns the expected root type that will be produced as a result of parsing the content.
boolean isPartial()
[Expand]
Inherited Methods
From class com.google.gdata.client.Service.ClientStreamProperties
From class java.lang.Object
From interface com.google.gdata.wireformats.StreamProperties
From interface com.google.gdata.wireformats.input.InputProperties

Fields

private ElementMetadata<?, ?> elementMetadata

private final Class<?> expectType

protected final ContentType inputType

Protected Constructors

protected Service.ClientInputProperties (Service.GDataRequest req, Class<?> expectType)

Parameters
req
expectType
Throws
IOException
ServiceException

protected Service.ClientInputProperties (ContentType inputType, Class<?> expectType)

Parameters
inputType
expectType
Throws
IOException
ServiceException

Public Methods

public ContentType getContentType ()

Returns the MIME content type of data on the stream.

Returns
  • data content type

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.

public Class<?> getRootType ()

Returns the expected root type that will be produced as a result of parsing the content. The parse result will be of this type or a subtype that extends or implements the root type.

public boolean isPartial ()