* @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);