|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.client.Service.ClientStreamProperties
protected abstract class Service.ClientStreamProperties
The ClientStreamProperties class is an abstract adaptor class that
implements the 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.
Field Summary | |
---|---|
protected com.google.gdata.util.common.net.UriParameterMap |
queryMap
|
protected Service.GDataRequest |
req
|
Constructor Summary | |
---|---|
protected |
Service.ClientStreamProperties()
|
protected |
Service.ClientStreamProperties(Service.GDataRequest req)
|
Method Summary | |
---|---|
protected com.google.gdata.wireformats.AltFormat |
getAltFormat()
Returns the AltFormat describing the representation used for
the current request. |
com.google.gdata.wireformats.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 com.google.gdata.model.MetadataContext |
getMetadataContext()
Returns a MetadataContext based upon the alt format and version
of the request associated with these properties. |
protected com.google.gdata.util.common.net.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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.wireformats.StreamProperties |
---|
getContentType, getRootMetadata |
Field Detail |
---|
protected final Service.GDataRequest req
protected final com.google.gdata.util.common.net.UriParameterMap queryMap
Constructor Detail |
---|
protected Service.ClientStreamProperties(Service.GDataRequest req)
protected Service.ClientStreamProperties()
Method Detail |
---|
public Service.GDataRequest getGDataRequest()
public Version getRequestVersion()
public com.google.gdata.wireformats.AltRegistry getAltRegistry()
com.google.gdata.wireformats.StreamProperties
AltRegistry
that contains the set of supported
representations and the parser/generator configuration for them.
getAltRegistry
in interface com.google.gdata.wireformats.StreamProperties
public boolean isPartial()
public ExtensionProfile getExtensionProfile()
com.google.gdata.wireformats.StreamProperties
ExtensionProfile
associated with the stream.
getExtensionProfile
in interface com.google.gdata.wireformats.StreamProperties
null
for requests that use the
data model classes in com.google.gdata.model.protected com.google.gdata.model.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()
com.google.gdata.wireformats.StreamProperties
Collection
that contains the name of all query parameters
found in the request.
getQueryParameterNames
in interface com.google.gdata.wireformats.StreamProperties
public java.lang.String getQueryParameter(java.lang.String name)
com.google.gdata.wireformats.StreamProperties
null
if not found.
getQueryParameter
in interface com.google.gdata.wireformats.StreamProperties
protected com.google.gdata.wireformats.AltFormat getAltFormat()
AltFormat
describing the representation used for
the current request.
protected com.google.gdata.util.common.net.UriParameterMap getParameterMap()
UriParameterMap
containing the decoded query
parameters for the current request.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |