|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.http.AbstractHttpContent
com.google.api.client.http.xml.AbstractXmlHttpContent
public abstract class AbstractXmlHttpContent
Abstract serializer for XML HTTP content based on the data key/value mapping object for an item.
Implementation is not thread-safe.
Constructor Summary | |
---|---|
protected |
AbstractXmlHttpContent(XmlNamespaceDictionary namespaceDictionary)
|
Method Summary | |
---|---|
XmlNamespaceDictionary |
getNamespaceDictionary()
Returns the XML namespace dictionary. |
String |
getType()
Returns the content type or null for none. |
AbstractXmlHttpContent |
setType(String type)
Sets the content type or null for none. |
void |
writeTo(OutputStream out)
Writes the content to the given output stream. |
protected abstract void |
writeTo(org.xmlpull.v1.XmlSerializer serializer)
Writes the content to the given XML serializer. |
Methods inherited from class com.google.api.client.http.AbstractHttpContent |
---|
computeLength, getEncoding, getLength, retrySupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractXmlHttpContent(XmlNamespaceDictionary namespaceDictionary)
namespaceDictionary
- XML namespace dictionaryMethod Detail |
---|
public final String getType()
HttpContent
null
for none.
public final void writeTo(OutputStream out) throws IOException
HttpContent
IOException
public AbstractXmlHttpContent setType(String type)
null
for none.
Defaults to XmlHttpParser.CONTENT_TYPE
, though subclasses may define a different
default value.
public final XmlNamespaceDictionary getNamespaceDictionary()
protected abstract void writeTo(org.xmlpull.v1.XmlSerializer serializer) throws IOException
IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |