Example usage for twitter4j.conf Configuration getHttpClientConfiguration

List of usage examples for twitter4j.conf Configuration getHttpClientConfiguration

Introduction

In this page you can find the example usage for twitter4j.conf Configuration getHttpClientConfiguration.

Prototype

HttpClientConfiguration getHttpClientConfiguration();

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  . jav a  2s  .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 {/* w  w  w .  j a v a2 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());
}