XmlObjectParser instead.@Deprecated public class XmlHttpParser extends Object implements HttpParser
Implementation is thread-safe.
Sample usage:
static void setParser(HttpRequest request, XmlNamespaceDictionary namespaceDictionary) {
request.addParser(new XmlHttpParser(namespaceDictionary));
}
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlHttpParser.Builder
Deprecated.
Builder for
XmlHttpParser. |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE
Deprecated.
"application/xml" content type. |
| Modifier | Constructor and Description |
|---|---|
|
XmlHttpParser(XmlNamespaceDictionary namespaceDictionary)
Deprecated.
|
protected |
XmlHttpParser(XmlNamespaceDictionary namespaceDictionary,
String contentType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static XmlHttpParser.Builder |
builder(XmlNamespaceDictionary namespaceDictionary)
Deprecated.
Returns an instance of a new builder.
|
String |
getContentType()
Deprecated.
Returns the content type.
|
XmlNamespaceDictionary |
getNamespaceDictionary()
Deprecated.
Returns the XML namespace dictionary.
|
<T> T |
parse(HttpResponse response,
Class<T> dataClass)
Deprecated.
Default implementation parses the content of the response into the data class of key/value
pairs, but subclasses may override.
|
public static final String CONTENT_TYPE
"application/xml" content type.public XmlHttpParser(XmlNamespaceDictionary namespaceDictionary)
namespaceDictionary - XML namespace dictionaryprotected XmlHttpParser(XmlNamespaceDictionary namespaceDictionary, String contentType)
namespaceDictionary - XML namespace dictionarycontentType - content type or null for nonepublic final String getContentType()
HttpParsergetContentType in interface HttpParserpublic <T> T parse(HttpResponse response, Class<T> dataClass) throws IOException
parse in interface HttpParserIOExceptionpublic final XmlNamespaceDictionary getNamespaceDictionary()
public static XmlHttpParser.Builder builder(XmlNamespaceDictionary namespaceDictionary)
namespaceDictionary - XML namespace dictionaryCopyright © 2011-2012 Google. All Rights Reserved.