Example usage for twitter4j HttpClientFactory getInstance

List of usage examples for twitter4j HttpClientFactory getInstance

Introduction

In this page you can find the example usage for twitter4j HttpClientFactory getInstance.

Prototype

public static HttpClient getInstance(HttpClientConfiguration conf) 

Source Link

Usage

From source file:cmu.edu.homework.mediaUpload.AbstractPhotoUploadImpl.java

License:Apache License

AbstractPhotoUploadImpl(Configuration conf, OAuthAuthorization oauth) {
    this.oauth = oauth;
    this.conf = conf;
    try {/*from  www.j  ava2 s  . com*/
    } catch (Exception e) {
        e.printStackTrace();
    }

    client = HttpClientFactory.getInstance(conf.getHttpClientConfiguration());
}

From source file:cmu.edu.homework.mediaUpload.AbstractVideoUploadImpl.java

License:Apache License

AbstractVideoUploadImpl(Configuration conf, OAuthAuthorization oauth) {
    this.oauth = oauth;
    this.conf = conf;
    try {//  ww w .java  2  s.c o m
    } catch (Exception e) {
        e.printStackTrace();
    }

    client = HttpClientFactory.getInstance(conf.getHttpClientConfiguration());
}

From source file:com.github.moko256.twitlatte.GlobalApplication.java

License:Apache License

@NonNull
private static AlternativeHttpClientImpl getT4jHttpClient(Configuration configuration) {
    return (AlternativeHttpClientImpl) HttpClientFactory
            .getInstance(configuration.getHttpClientConfiguration());
}