|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.
| Field Summary | |
|---|---|
String |
contentType
Content type. |
XmlNamespaceDictionary |
namespaceDictionary
XML namespace dictionary. |
| Constructor Summary | |
|---|---|
AbstractXmlHttpContent()
|
|
| Method Summary | |
|---|---|
String |
getEncoding()
Default implementation returns null, but subclasses may override. |
long |
getLength()
Default implementation returns -1, but subclasses may override. |
String |
getType()
Returns the content type or null for none. |
boolean |
retrySupported()
Returns whether or not retry is supported on this content type. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String contentType
XmlHttpParser.CONTENT_TYPE, though subclasses may define
a different default value.
public XmlNamespaceDictionary namespaceDictionary
| Constructor Detail |
|---|
public AbstractXmlHttpContent()
| Method Detail |
|---|
public String getEncoding()
null, but subclasses may override.
getEncoding in interface HttpContentpublic long getLength()
-1, but subclasses may override.
getLength in interface HttpContentpublic final String getType()
HttpContentnull for none.
getType in interface HttpContent
public final void writeTo(OutputStream out)
throws IOException
HttpContent
writeTo in interface HttpContentIOExceptionpublic boolean retrySupported()
HttpContent
retrySupported in interface HttpContent
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 | |||||||||