ix.test
Class TwitterAtomSearchTest
java.lang.Object
ix.test.TwitterAtomSearchTest
public class TwitterAtomSearchTest
- extends java.lang.Object
Tests HTTP "GET" requests that obtain XML.
Method Summary |
(package private) java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
decodeQueryArgs(java.lang.String args)
|
(package private) void |
do_main(java.lang.String[] argv)
|
(package private) java.lang.String |
getAuthorName(org.jdom.Element entry)
|
(package private) java.lang.String |
getContentText(org.jdom.Element entry)
|
(package private) java.lang.String |
getEncodedQueryArgs()
|
static void |
main(java.lang.String[] argv)
|
(package private) org.jdom.Document |
readResultXML(java.lang.String q)
|
(package private) java.lang.String |
stripMarkup(java.lang.String text)
|
(package private) void |
writeErrorReport(java.lang.Exception e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEARCH_URL
java.lang.String SEARCH_URL
DEFAULT_QUERY
java.lang.String DEFAULT_QUERY
MAX_RESULTS
int MAX_RESULTS
CONNECT_TIMEOUT
int CONNECT_TIMEOUT
READ_TIMEOUT
int READ_TIMEOUT
ATOM_NAMESPACE
org.jdom.Namespace ATOM_NAMESPACE
TWITTER_NAMESPACE
org.jdom.Namespace TWITTER_NAMESPACE
dateTimePattern
java.lang.String dateTimePattern
format
java.text.SimpleDateFormat format
TwitterAtomSearchTest
public TwitterAtomSearchTest()
main
public static void main(java.lang.String[] argv)
throws java.io.IOException
- Throws:
java.io.IOException
do_main
void do_main(java.lang.String[] argv)
getAuthorName
java.lang.String getAuthorName(org.jdom.Element entry)
getContentText
java.lang.String getContentText(org.jdom.Element entry)
stripMarkup
java.lang.String stripMarkup(java.lang.String text)
getEncodedQueryArgs
java.lang.String getEncodedQueryArgs()
decodeQueryArgs
java.util.Map<java.lang.String,java.util.List<java.lang.String>> decodeQueryArgs(java.lang.String args)
readResultXML
org.jdom.Document readResultXML(java.lang.String q)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeErrorReport
void writeErrorReport(java.lang.Exception e)