protected abstract class Service.ClientStreamProperties extends java.lang.Object implements StreamProperties
StreamProperties interface for content to be written
to or read from the target service based upon its attributes and a
Service.GDataRequest.
Subclasses must implement the StreamProperties.getContentType()
method since the expected content type depends on the direction of data
transfer for the request.
| Modifier and Type | Field and Description |
|---|---|
protected UriParameterMap |
queryMap |
protected Service.GDataRequest |
req |
| Modifier | Constructor and Description |
|---|---|
protected |
Service.ClientStreamProperties() |
protected |
Service.ClientStreamProperties(Service.GDataRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected AltFormat |
getAltFormat()
Returns the
AltFormat describing the representation used for
the current request. |
AltRegistry |
getAltRegistry()
Returns the
AltRegistry that contains the set of supported
representations and the parser/generator configuration for them. |
ExtensionProfile |
getExtensionProfile()
Returns the
ExtensionProfile associated with the stream. |
Service.GDataRequest |
getGDataRequest() |
protected MetadataContext |
getMetadataContext()
Returns a
MetadataContext based upon the alt format and version
of the request associated with these properties. |
protected UriParameterMap |
getParameterMap()
Returns the
UriParameterMap containing the decoded query
parameters for the current request. |
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. |
Version |
getRequestVersion() |
boolean |
isPartial() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getRootMetadataprotected final Service.GDataRequest req
protected final UriParameterMap queryMap
protected Service.ClientStreamProperties(Service.GDataRequest req)
protected Service.ClientStreamProperties()
public Service.GDataRequest getGDataRequest()
public Version getRequestVersion()
public AltRegistry getAltRegistry()
StreamPropertiesAltRegistry that contains the set of supported
representations and the parser/generator configuration for them.getAltRegistry in interface StreamPropertiespublic boolean isPartial()
public ExtensionProfile getExtensionProfile()
StreamPropertiesExtensionProfile associated with the stream.getExtensionProfile in interface StreamPropertiesnull for requests that use the
data model classes in com.google.gdata.model.protected MetadataContext getMetadataContext()
MetadataContext based upon the alt format and version
of the request associated with these properties. This can be used by
subclasses to bind root element metadata for request or response types.public java.util.Collection<java.lang.String> getQueryParameterNames()
StreamPropertiesCollection that contains the name of all query parameters
found in the request.getQueryParameterNames in interface StreamPropertiespublic java.lang.String getQueryParameter(java.lang.String name)
StreamPropertiesnull
if not found.getQueryParameter in interface StreamPropertiesprotected AltFormat getAltFormat()
AltFormat describing the representation used for
the current request.protected UriParameterMap getParameterMap()
UriParameterMap containing the decoded query
parameters for the current request.