class JSONImplFactory extends java.lang.Object implements ObjectFactory
| Modifier and Type | Field and Description |
|---|---|
private Configuration |
conf |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
JSONImplFactory(Configuration conf) |
private static final long serialVersionUID
private final Configuration conf
public JSONImplFactory(Configuration conf)
public Status createStatus(JSONObject json) throws TwitterException
createStatus in interface ObjectFactoryTwitterExceptionpublic User createUser(JSONObject json) throws TwitterException
createUser in interface ObjectFactoryTwitterExceptionpublic UserList createAUserList(JSONObject json) throws TwitterException
createAUserList in interface ObjectFactoryTwitterExceptionpublic java.util.Map<java.lang.String,RateLimitStatus> createRateLimitStatuses(HttpResponse res) throws TwitterException
createRateLimitStatuses in interface ObjectFactoryTwitterExceptionpublic Status createStatus(HttpResponse res) throws TwitterException
createStatus in interface ObjectFactoryTwitterExceptionpublic ResponseList<Status> createStatusList(HttpResponse res) throws TwitterException
createStatusList in interface ObjectFactoryTwitterExceptionstatic GeoLocation createGeoLocation(JSONObject json) throws TwitterException
json - JSONObject to be parsedTwitterException - when coordinates is not included in geo element (should be an API side issue)static GeoLocation[][] coordinatesAsGeoLocationArray(JSONArray coordinates) throws TwitterException
TwitterExceptionpublic static RateLimitStatus createRateLimitStatusFromResponseHeader(HttpResponse res)
public Trends createTrends(HttpResponse res) throws TwitterException
createTrends in interface ObjectFactoryTwitterExceptionpublic User createUser(HttpResponse res) throws TwitterException
createUser in interface ObjectFactoryTwitterExceptionpublic ResponseList<User> createUserList(HttpResponse res) throws TwitterException
createUserList in interface ObjectFactoryTwitterExceptionpublic ResponseList<User> createUserListFromJSONArray(HttpResponse res) throws TwitterException
createUserListFromJSONArray in interface ObjectFactoryTwitterExceptionpublic ResponseList<User> createUserListFromJSONArray_Users(HttpResponse res) throws TwitterException
createUserListFromJSONArray_Users in interface ObjectFactoryTwitterExceptionpublic QueryResult createQueryResult(HttpResponse res, Query query) throws TwitterException
createQueryResult in interface ObjectFactoryTwitterExceptionpublic IDs createIDs(HttpResponse res) throws TwitterException
createIDs in interface ObjectFactoryTwitterExceptionpublic PagableResponseList<User> createPagableUserList(HttpResponse res) throws TwitterException
createPagableUserList in interface ObjectFactoryTwitterExceptionpublic UserList createAUserList(HttpResponse res) throws TwitterException
createAUserList in interface ObjectFactoryTwitterExceptionpublic PagableResponseList<UserList> createPagableUserListList(HttpResponse res) throws TwitterException
createPagableUserListList in interface ObjectFactoryTwitterExceptionpublic ResponseList<UserList> createUserListList(HttpResponse res) throws TwitterException
createUserListList in interface ObjectFactoryTwitterExceptionpublic ResponseList<Category> createCategoryList(HttpResponse res) throws TwitterException
createCategoryList in interface ObjectFactoryTwitterExceptionpublic DirectMessage createDirectMessage(HttpResponse res) throws TwitterException
createDirectMessage in interface ObjectFactoryTwitterExceptionpublic ResponseList<DirectMessage> createDirectMessageList(HttpResponse res) throws TwitterException
createDirectMessageList in interface ObjectFactoryTwitterExceptionpublic Relationship createRelationship(HttpResponse res) throws TwitterException
createRelationship in interface ObjectFactoryTwitterExceptionpublic ResponseList<Friendship> createFriendshipList(HttpResponse res) throws TwitterException
createFriendshipList in interface ObjectFactoryTwitterExceptionpublic AccountTotals createAccountTotals(HttpResponse res) throws TwitterException
createAccountTotals in interface ObjectFactoryTwitterExceptionpublic AccountSettings createAccountSettings(HttpResponse res) throws TwitterException
createAccountSettings in interface ObjectFactoryTwitterExceptionpublic SavedSearch createSavedSearch(HttpResponse res) throws TwitterException
createSavedSearch in interface ObjectFactoryTwitterExceptionpublic ResponseList<SavedSearch> createSavedSearchList(HttpResponse res) throws TwitterException
createSavedSearchList in interface ObjectFactoryTwitterExceptionpublic ResponseList<Location> createLocationList(HttpResponse res) throws TwitterException
createLocationList in interface ObjectFactoryTwitterExceptionpublic Place createPlace(HttpResponse res) throws TwitterException
createPlace in interface ObjectFactoryTwitterExceptionpublic ResponseList<Place> createPlaceList(HttpResponse res) throws TwitterException
createPlaceList in interface ObjectFactoryTwitterExceptionpublic SimilarPlaces createSimilarPlaces(HttpResponse res) throws TwitterException
createSimilarPlaces in interface ObjectFactoryTwitterExceptionpublic TwitterAPIConfiguration createTwitterAPIConfiguration(HttpResponse res) throws TwitterException
createTwitterAPIConfiguration in interface ObjectFactoryTwitterExceptionpublic ResponseList<HelpResources.Language> createLanguageList(HttpResponse res) throws TwitterException
createLanguageList in interface ObjectFactoryTwitterExceptionpublic <T> ResponseList<T> createEmptyResponseList()
createEmptyResponseList in interface ObjectFactorypublic OEmbed createOEmbed(HttpResponse res) throws TwitterException
createOEmbed in interface ObjectFactoryTwitterExceptionpublic static HashtagEntity createHashtagEntity(int start, int end, java.lang.String text)
public static UserMentionEntity createUserMentionEntity(int start, int end, java.lang.String name, java.lang.String screenName, long id)
public static URLEntity createUrlEntity(int start, int end, java.lang.String url, java.lang.String expandedURL, java.lang.String displayURL)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object