private Configuration buildTwitterConfiguration() {
        logger.debug("creating twitter configuration");
        ConfigurationBuilder cb = new ConfigurationBuilder();

        cb.setOAuthConsumerKey(oauthConsumerKey)
                .setOAuthConsumerSecret(oauthConsumerSecret)
                .setOAuthAccessToken(oauthAccessToken)
                .setOAuthAccessTokenSecret(oauthAccessTokenSecret);

        if (proxyHost != null) cb.setHttpProxyHost(proxyHost);
        if (proxyPort != null) cb.setHttpProxyPort(Integer.parseInt(proxyPort));
        if (proxyUser != null) cb.setHttpProxyUser(proxyUser);
        if (proxyPassword != null) cb.setHttpProxyPassword(proxyPassword);
        if (raw) cb.setJSONStoreEnabled(true);
        logger.debug("twitter configuration created");
        return cb.build();
    }
private Configuration buildTwitterConfiguration ( ) { logger . debug ( "creating twitter configuration" ) ; ConfigurationBuilder cb = new ConfigurationBuilder ( ) ; cb . setOAuthConsumerKey ( oauthConsumerKey ) . setOAuthConsumerSecret ( oauthConsumerSecret ) . setOAuthAccessToken ( oauthAccessToken ) . setOAuthAccessTokenSecret ( oauthAccessTokenSecret ) ; if ( proxyHost != null ) cb . setHttpProxyHost ( proxyHost ) ; if ( proxyPort != null ) cb . setHttpProxyPort ( Integer . parseInt ( proxyPort ) ) ; if ( proxyUser != null ) cb . setHttpProxyUser ( proxyUser ) ; if ( proxyPassword != null ) cb . setHttpProxyPassword ( proxyPassword ) ; if ( raw ) cb . setJSONStoreEnabled ( true ) ; logger . debug ( "twitter configuration created" ) ; return cb . build ( ) ; }
Build configuration object with credentials and proxy settings
@return