Skip to content

Commit

Permalink
Remove erroneous references to PasswordApiConnection
Browse files Browse the repository at this point in the history
Closes #455
  • Loading branch information
wetneb committed Nov 11, 2019
1 parent 77d5684 commit 52bd89f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Expand Up @@ -39,15 +39,19 @@
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

/**
* Class to build up and hold a connection to a Wikibase API, managing cookies
* and login.
*
* This should no longer be instantiated directly: please use one of the subclasses
* {@class PasswordApiConnection} and {@class OAuthApiConnection} instead. This
* {@class BasicApiConnection} and {@class OAuthApiConnection} instead. This
* class will become an interface in a future release.
*
* @author Michael Guenther
Expand Down Expand Up @@ -244,7 +248,7 @@ protected ApiConnection(
/**
* Creates an API connection to wikidata.org.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @deprecated to be migrated to {@class BasicApiConnection}
* @return {@link BasicApiConnection}
*/
@Deprecated
Expand All @@ -255,7 +259,7 @@ public static BasicApiConnection getWikidataApiConnection() {
/**
* Creates an API connection to test.wikidata.org.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @deprecated to be migrated to {@class BasicApiConnection}
* @return {@link BasicApiConnection}
*/
@Deprecated
Expand Down Expand Up @@ -590,7 +594,7 @@ List<String> getWarnings(JsonNode root) {
* successful, and sets the internal state of the API connection accordingly
* in this case.
*
* @deprecated because it will be migrated to {@class PasswordApiConnection}.
* @deprecated because it will be migrated to {@class BasicApiConnection}.
*
* @param token
* the login token string
Expand Down Expand Up @@ -631,7 +635,7 @@ void confirmLogin(String token, String username, String password)
/**
* Returns a user-readable message for a given API response.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @deprecated to be migrated to {@class BasicApiConnection}
* @param loginResult
* a API login request result string other than
* {@link #LOGIN_RESULT_SUCCESS}
Expand Down Expand Up @@ -674,7 +678,7 @@ String getLoginErrorMessage(String loginResult) {
* Reads out the Set-Cookie Header Fields and fills the cookie map of the
* API connection with it.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @deprecated to be migrated to {@class BasicApiConnection}
*/
@Deprecated
void fillCookies(Map<String, List<String>> headerFields) {
Expand All @@ -700,7 +704,7 @@ void fillCookies(Map<String, List<String>> headerFields) {
* Returns the string representation of the currently stored cookies. This
* data is added to the connection before making requests.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @deprecated to be migrated to {@class BasicApiConnection}
* @return cookie string
*/
@Deprecated
Expand Down
Expand Up @@ -73,7 +73,6 @@ private BasicApiConnection(
/**
* Creates an API connection to wikidata.org.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @return {@link BasicApiConnection}
*/
public static BasicApiConnection getWikidataApiConnection() {
Expand All @@ -83,7 +82,6 @@ public static BasicApiConnection getWikidataApiConnection() {
/**
* Creates an API connection to test.wikidata.org.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @return {@link BasicApiConnection}
*/
public static BasicApiConnection getTestWikidataApiConnection() {
Expand Down Expand Up @@ -159,7 +157,6 @@ String getCookieString() {
/**
* Returns a user-readable message for a given API response.
*
* @deprecated to be migrated to {@class PasswordApiConnection}
* @param loginResult
* a API login request result string other than
* {@link #LOGIN_RESULT_SUCCESS}
Expand Down

0 comments on commit 52bd89f

Please sign in to comment.