|
|||||||||
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 UriParameterMap |
queryMap
|
protected Service.GDataRequest |
req
|
Constructor Summary | |
---|---|
protected |
Service.ClientStreamProperties()
|
protected |
Service.ClientStreamProperties(Service.GDataRequest req)
|
Method Summary | |
---|---|
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()
|
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 UriParameterMap queryMap
Constructor Detail |
---|
protected Service.ClientStreamProperties(Service.GDataRequest req)
protected Service.ClientStreamProperties()
Method Detail |
---|
public Service.GDataRequest getGDataRequest()
public Version getRequestVersion()
public AltRegistry getAltRegistry()
StreamProperties
AltRegistry
that contains the set of supported
representations and the parser/generator configuration for them.
getAltRegistry
in interface StreamProperties
public boolean isPartial()
public ExtensionProfile getExtensionProfile()
StreamProperties
ExtensionProfile
associated with the stream.
getExtensionProfile
in interface StreamProperties
null
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()
StreamProperties
Collection
that contains the name of all query parameters
found in the request.
getQueryParameterNames
in interface StreamProperties
public java.lang.String getQueryParameter(java.lang.String name)
StreamProperties
null
if not found.
getQueryParameter
in interface StreamProperties
protected AltFormat getAltFormat()
AltFormat
describing the representation used for
the current request.
protected 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 |