OAuth Java连接继续流式传输

时间:2012-03-22 13:22:19

标签: java oauth scribe

OAuthService service = new ServiceBuilder()
                          .provider(TradeKingApi.class)
                          .apiKey(CONSUMER_KEY)
                          .apiSecret(CONSUMER_SECRET).build();
Token accessToken = new Token(OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL);
service.signRequest(accessToken, request);

request.setConnectionKeepAlive(true);

我将不断获得流...在这种情况下,我如何关闭连接

请你帮我解决这个问题

0 个答案:

没有答案