@Test public void testClearCookies() throws LoginFailedException, IOException, MediaWikiApiErrorException { connection.login("username", "password"); assertFalse(connection.getCookies().isEmpty()); connection.clearCookies(); assertTrue(connection.getCookies().isEmpty()); }
public void clearCookies() throws IOException, MediaWikiApiErrorException { logout(); cookieManager.getCookieStore().removeAll(); }
BasicApiConnection extends ApiConnection { public void clearCookies() throws IOException, MediaWikiApiErrorException { logout(); cookieManager.getCookieStore().removeAll(); } }
BasicApiConnection extends ApiConnection { public void clearCookies() throws IOException, MediaWikiApiErrorException { logout(); cookieManager.getCookieStore().removeAll(); } BasicApiConnection(String apiBaseUrl); @JsonCreator protected  BasicApiConnection(
			@JsonProperty("baseUrl") String apiBaseUrl,
			@JsonProperty("cookies") List<HttpCookieWrapper> cookies,
			@JsonProperty("username") String username,
			@JsonProperty("loggedIn") boolean loggedIn,
			@JsonProperty("tokens") Map<String, String> tokens,
			@JsonProperty("connectTimeout") int connectTimeout,
			@JsonProperty("readTimeout") int readTimeout); }
BasicApiConnection extends ApiConnection { public void clearCookies() throws IOException, MediaWikiApiErrorException { logout(); cookieManager.getCookieStore().removeAll(); } BasicApiConnection(String apiBaseUrl); @JsonCreator protected  BasicApiConnection(
			@JsonProperty("baseUrl") String apiBaseUrl,
			@JsonProperty("cookies") List<HttpCookieWrapper> cookies,
			@JsonProperty("username") String username,
			@JsonProperty("loggedIn") boolean loggedIn,
			@JsonProperty("tokens") Map<String, String> tokens,
			@JsonProperty("connectTimeout") int connectTimeout,
			@JsonProperty("readTimeout") int readTimeout); static BasicApiConnection getTestWikidataApiConnection(); static BasicApiConnection getWikidataApiConnection(); static BasicApiConnection getWikimediaCommonsApiConnection(); void login(String username, String password); @JsonProperty("cookies") List<HttpCookie> getCookies(); void clearCookies(); void logout(); }
BasicApiConnection extends ApiConnection { public void clearCookies() throws IOException, MediaWikiApiErrorException { logout(); cookieManager.getCookieStore().removeAll(); } BasicApiConnection(String apiBaseUrl); @JsonCreator protected  BasicApiConnection(
			@JsonProperty("baseUrl") String apiBaseUrl,
			@JsonProperty("cookies") List<HttpCookieWrapper> cookies,
			@JsonProperty("username") String username,
			@JsonProperty("loggedIn") boolean loggedIn,
			@JsonProperty("tokens") Map<String, String> tokens,
			@JsonProperty("connectTimeout") int connectTimeout,
			@JsonProperty("readTimeout") int readTimeout); static BasicApiConnection getTestWikidataApiConnection(); static BasicApiConnection getWikidataApiConnection(); static BasicApiConnection getWikimediaCommonsApiConnection(); void login(String username, String password); @JsonProperty("cookies") List<HttpCookie> getCookies(); void clearCookies(); void logout();  }