RequestToken(String token, String tokenSecret, OAuthSupport oauth) { super(token, tokenSecret); conf = ConfigurationContext.getInstance(); this.oauth = oauth; }
/** * Creates a TwitterFactory with the root configuration. */ public TwitterFactory() { this(ConfigurationContext.getInstance()); }
/** * Creates a TwitterFactory with a specified config tree * * @param configTreePath the path */ public TwitterFactory(String configTreePath) { this(ConfigurationContext.getInstance(configTreePath)); }
/** * Creates a TwitterStreamFactory with the root configuration. */ public TwitterStreamFactory() { this(ConfigurationContext.getInstance()); }
RequestToken(HttpResponse res, OAuthSupport oauth) throws TwitterException { super(res); conf = ConfigurationContext.getInstance(); this.oauth = oauth; }
/** * Creates a TwitterStreamFactory with a specified config tree. * * @param configTreePath the path */ public TwitterStreamFactory(String configTreePath) { this(ConfigurationContext.getInstance(configTreePath)); }
/** * Creates an AsyncTwitterFactory with the root configuration, with no listener. AsyncTwitter instances will not perform callbacks when using this constructor. */ public AsyncTwitterFactory() { this(ConfigurationContext.getInstance()); }
/** * Creates a AsyncTwitterFactory with the specified config tree, with given listener * * @param configTreePath the path * @since Twitter4J 2.1.12 */ public AsyncTwitterFactory(String configTreePath) { this.conf = ConfigurationContext.getInstance(configTreePath); }
public RequestToken(String token, String tokenSecret) { super(token, tokenSecret); conf = ConfigurationContext.getInstance(); }
public DispatcherFactory() { this(ConfigurationContext.getInstance()); }
public HttpClientImpl() { super(ConfigurationContext.getInstance().getHttpClientConfiguration()); }
HttpResponse() { this.CONF = ConfigurationContext.getInstance().getHttpClientConfiguration(); }
public static HttpClient getInstance() { return getInstance(ConfigurationContext.getInstance().getHttpClientConfiguration()); }
public static void main(String[] args) throws Exception { Configuration twitterConf = ConfigurationContext.getInstance(); Authorization twitterAuth = AuthorizationFactory.getInstance(twitterConf);