Package org.wikipediacleaner.api.constants

Examples of org.wikipediacleaner.api.constants.ConnectionInformation


   * @return HttpMethod.
   */
  protected HttpMethod createHttpMethod(
      Map<String, String> properties) {
    if (shouldSendIdentification()) {
      ConnectionInformation connection = wiki.getConnection();
      if (connection.getLgToken() != null) {
        properties.put(
            ApiLoginRequest.PROPERTY_TOKEN,
            connection.getLgToken());
      }
      if (connection.getLgUserName() != null) {
        properties.put(
            ApiLoginRequest.PROPERTY_USER_NAME,
            connection.getLgUserName());
      }
      if (connection.getLgUserId() != null) {
        properties.put(
            ApiLoginRequest.PROPERTY_USER_ID,
            connection.getLgUserId());
      }
    }
    boolean getMethod = canUseGetMethod(properties);
    Configuration config = Configuration.getConfiguration();
    boolean useHttps = !config.getBoolean(null, ConfigurationValueBoolean.FORCE_HTTP_API);
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.constants.ConnectionInformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.