Skip to content

Commit

Permalink
TFJ-192 TwitterStream needs a default constructor
Browse files Browse the repository at this point in the history
git-svn-id: http://yusuke.homeip.net/svn/twitter4j/trunk@370 117b7e0d-5933-0410-9d29-ab41bb01d86b
  • Loading branch information
yusuke committed Aug 30, 2009
1 parent d202b33 commit 1b21ba6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/twitter4j/TwitterStream.java
Expand Up @@ -45,6 +45,14 @@ public class TwitterStream extends TwitterSupport {
private StreamHandlingThread handler = null;
private int retryPerMinutes = 1;

/**
* Constructs a TwitterStream instance. UserID and password should be provided by either twitter4j.properties or system property.
* since Twitter4J 2.0.10
*/
public TwitterStream() {
super();
}

public TwitterStream(String userId, String password) {
super(userId, password);
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/twitter4j/http/HttpClient.java
Expand Up @@ -273,6 +273,9 @@ public String getAuthorizationURL() {
return authorizationURL;
}

/**
* since Twitter4J 2.0.10
*/
public String getAuthenticationRL() {
return authenticationURL;
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/twitter4j/http/RequestToken.java
Expand Up @@ -49,6 +49,9 @@ public String getAuthorizationURL() {
return httpClient.getAuthorizationURL() + "?oauth_token=" + getToken();
}

/**
* since Twitter4J 2.0.10
*/
public String getAuthenticationURL() {
return httpClient.getAuthenticationRL() + "?oauth_token=" + getToken();
}
Expand Down

0 comments on commit 1b21ba6

Please sign in to comment.