public abstract class BingMetaDataHandler
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected Attribution |
attribution |
protected java.util.List<Attribution> |
attributions |
protected java.lang.String |
text |
Constructor and Description |
---|
BingMetaDataHandler(java.lang.String apiKey) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
java.util.List<Attribution> |
getAttributions() |
protected abstract java.lang.String |
getMetaData(java.lang.String keyToAppend)
This method needs to return the path to the metadata with the api key appended.
|
java.lang.String |
getMetaDataUrl()
This method returns the string to the metadata url including the api key.
|
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected Attribution attribution
protected java.util.List<Attribution> attributions
protected java.lang.String text
public java.util.List<Attribution> getAttributions()
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public java.lang.String getMetaDataUrl()
protected abstract java.lang.String getMetaData(java.lang.String keyToAppend)