twitter4j
Class TwitterResponse

java.lang.Object
  extended by twitter4j.TwitterResponse
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DirectMessage, IDs, QueryResult, RateLimitStatus, Status, Trends, Tweet, User

public class TwitterResponse
extends java.lang.Object
implements java.io.Serializable

Super class of Twitter Response objects.

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
DirectMessage, Status, User, ExtendedUser, Serialized Form

Constructor Summary
TwitterResponse()
           
TwitterResponse(Response res)
           
 
Method Summary
protected  void ensureRootNodeNameIs(java.lang.String[] rootNames, org.w3c.dom.Element elem)
           
protected static void ensureRootNodeNameIs(java.lang.String rootName, org.w3c.dom.Document doc)
           
protected  void ensureRootNodeNameIs(java.lang.String rootName, org.w3c.dom.Element elem)
           
protected  boolean getChildBoolean(java.lang.String str, org.w3c.dom.Element elem)
           
protected  java.util.Date getChildDate(java.lang.String str, org.w3c.dom.Element elem)
           
protected  java.util.Date getChildDate(java.lang.String str, org.w3c.dom.Element elem, java.lang.String format)
           
protected  int getChildInt(java.lang.String str, org.w3c.dom.Element elem)
           
protected  long getChildLong(java.lang.String str, org.w3c.dom.Element elem)
           
protected  java.lang.String getChildText(java.lang.String str, org.w3c.dom.Element elem)
           
 int getRateLimitLimit()
           
 int getRateLimitRemaining()
           
 long getRateLimitReset()
           
protected  java.lang.String getString(java.lang.String name, twitter4j.org.json.JSONObject json)
           
protected static boolean isRootNodeNilClasses(org.w3c.dom.Document doc)
           
protected static java.util.Date parseDate(java.lang.String str, java.lang.String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterResponse

public TwitterResponse()

TwitterResponse

public TwitterResponse(Response res)
Method Detail

ensureRootNodeNameIs

protected void ensureRootNodeNameIs(java.lang.String rootName,
                                    org.w3c.dom.Element elem)
                             throws TwitterException
Throws:
TwitterException

ensureRootNodeNameIs

protected void ensureRootNodeNameIs(java.lang.String[] rootNames,
                                    org.w3c.dom.Element elem)
                             throws TwitterException
Throws:
TwitterException

ensureRootNodeNameIs

protected static void ensureRootNodeNameIs(java.lang.String rootName,
                                           org.w3c.dom.Document doc)
                                    throws TwitterException
Throws:
TwitterException

isRootNodeNilClasses

protected static boolean isRootNodeNilClasses(org.w3c.dom.Document doc)

getChildText

protected java.lang.String getChildText(java.lang.String str,
                                        org.w3c.dom.Element elem)

getChildInt

protected int getChildInt(java.lang.String str,
                          org.w3c.dom.Element elem)

getChildLong

protected long getChildLong(java.lang.String str,
                            org.w3c.dom.Element elem)

getString

protected java.lang.String getString(java.lang.String name,
                                     twitter4j.org.json.JSONObject json)

getChildBoolean

protected boolean getChildBoolean(java.lang.String str,
                                  org.w3c.dom.Element elem)

getChildDate

protected java.util.Date getChildDate(java.lang.String str,
                                      org.w3c.dom.Element elem)
                               throws TwitterException
Throws:
TwitterException

getChildDate

protected java.util.Date getChildDate(java.lang.String str,
                                      org.w3c.dom.Element elem,
                                      java.lang.String format)
                               throws TwitterException
Throws:
TwitterException

parseDate

protected static java.util.Date parseDate(java.lang.String str,
                                          java.lang.String format)
                                   throws TwitterException
Throws:
TwitterException

getRateLimitLimit

public int getRateLimitLimit()

getRateLimitRemaining

public int getRateLimitRemaining()

getRateLimitReset

public long getRateLimitReset()


Copyright © 2009. All Rights Reserved.