All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.buession.httpclient.AbstractHttpAsyncClient Maven / Gradle / Ivy

The newest version!
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
 * See the NOTICE file distributed with this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
 *
 * =========================================================================================================
 *
 * This software consists of voluntary contributions made by many individuals on behalf of the
 * Apache Software Foundation. For more information on the Apache Software Foundation, please see
 * .
 *
 * +-------------------------------------------------------------------------------------------------------+
 * | License: http://www.apache.org/licenses/LICENSE-2.0.txt 										       |
 * | Author: Yong.Teng  													       |
 * | Copyright @ 2013-2023 Buession.com Inc.														       |
 * +-------------------------------------------------------------------------------------------------------+
 */
package com.buession.httpclient;

import com.buession.core.utils.Assert;
import com.buession.httpclient.conn.ConnectionManager;
import com.buession.httpclient.core.Header;
import com.buession.httpclient.core.RequestBody;
import com.buession.httpclient.core.RequestMethod;
import com.buession.httpclient.core.concurrent.Callback;
import com.buession.httpclient.exception.RequestException;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import java.util.Map;

/**
 * Http 异步客户端抽象类
 *
 * @author Yong.Teng
 * @since 2.3.0
 */
public abstract class AbstractHttpAsyncClient extends AbstractBaseHttpClient implements HttpAsyncClient {

	/**
	 * 构造函数
	 */
	public AbstractHttpAsyncClient() {
		super();
	}

	/**
	 * 构造函数
	 *
	 * @param connectionManager
	 * 		连接管理器
	 */
	public AbstractHttpAsyncClient(ConnectionManager connectionManager) {
		super(connectionManager);
	}

	@Override
	public void get(URI uri, Callback callback) throws IOException, RequestException {
		get(uri, null, null, callback);
	}

	@Override
	public void get(URL url, Callback callback) throws IOException, RequestException {
		asyncExecute(()->get(URL2URI(url), null, null, callback));
	}

	@Override
	public void get(URI uri, Map parameters, Callback callback) throws IOException, RequestException {
		get(uri, parameters, null, callback);
	}

	@Override
	public void get(URL url, Map parameters, Callback callback) throws IOException, RequestException {
		asyncExecute(()->get(URL2URI(url), parameters, null, callback));
	}

	@Override
	public void get(URI uri, List
headers, Callback callback) throws IOException, RequestException { get(uri, null, headers, callback); } @Override public void get(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), null, headers, callback)); } @Override public void get(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), parameters, headers, callback)); } @Override public void get(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { get(uri, readTimeout, null, null, callback); } @Override public void get(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), readTimeout, null, null, callback)); } @Override public void get(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { get(uri, readTimeout, parameters, null, callback); } @Override public void get(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void get(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { get(uri, readTimeout, null, headers, callback); } @Override public void get(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void get(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->get(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void post(URI uri, Callback callback) throws IOException, RequestException { post(uri, null, null, null, callback); } @Override public void post(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), null, null, null, callback)); } @Override public void post(URI uri, Map parameters, Callback callback) throws IOException, RequestException { post(uri, null, parameters, null, callback); } @Override public void post(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), null, parameters, null, callback)); } @Override public void post(URI uri, List
headers, Callback callback) throws IOException, RequestException { post(uri, null, null, headers, callback); } @Override public void post(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), null, null, headers, callback)); } @Override public void post(URI uri, Map parameters, List
headers, Callback callback) throws IOException, RequestException { post(uri, null, parameters, headers, callback); } @Override public void post(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), null, parameters, headers, callback)); } @Override public void post(URI uri, RequestBody data, Callback callback) throws IOException, RequestException { post(uri, data, null, null, callback); } @Override public void post(URL url, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), data, null, null, callback)); } @Override public void post(URI uri, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { post(uri, data, parameters, null, callback); } @Override public void post(URL url, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), data, parameters, null, callback)); } @Override public void post(URI uri, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { post(uri, data, null, headers, callback); } @Override public void post(URL url, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), data, null, headers, callback)); } @Override public void post(URL url, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), data, parameters, headers, callback)); } @Override public void post(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { post(uri, readTimeout, null, null, null, callback); } @Override public void post(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, null, null, null, callback)); } @Override public void post(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { post(uri, readTimeout, null, parameters, null, callback); } @Override public void post(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, null, parameters, null, callback)); } @Override public void post(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { post(uri, readTimeout, null, null, headers, callback); } @Override public void post(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, null, null, headers, callback)); } @Override public void post(URI uri, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { post(uri, readTimeout, null, parameters, headers, callback); } @Override public void post(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, null, parameters, headers, callback)); } @Override public void post(URI uri, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { post(uri, readTimeout, data, null, null, callback); } @Override public void post(URL url, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, data, null, null, callback)); } @Override public void post(URI uri, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { post(uri, readTimeout, data, parameters, null, callback); } @Override public void post(URL url, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, data, parameters, null, callback)); } @Override public void post(URI uri, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { post(uri, readTimeout, data, null, headers, callback); } @Override public void post(URL url, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, data, null, headers, callback)); } @Override public void post(URL url, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->post(URL2URI(url), readTimeout, data, parameters, headers, callback)); } @Override public void put(URI uri, Callback callback) throws IOException, RequestException { put(uri, null, null, null, callback); } @Override public void put(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), null, null, null, callback)); } @Override public void put(URI uri, Map parameters, Callback callback) throws IOException, RequestException { put(uri, null, parameters, null, callback); } @Override public void put(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), null, parameters, null, callback)); } @Override public void put(URI uri, List
headers, Callback callback) throws IOException, RequestException { put(uri, null, null, headers, callback); } @Override public void put(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), null, null, headers, callback)); } @Override public void put(URI uri, Map parameters, List
headers, Callback callback) throws IOException, RequestException { put(uri, null, parameters, headers, callback); } @Override public void put(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), null, parameters, headers, callback)); } @Override public void put(URI uri, RequestBody data, Callback callback) throws IOException, RequestException { put(uri, data, null, null, callback); } @Override public void put(URL url, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), data, null, null, callback)); } @Override public void put(URI uri, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { put(uri, data, parameters, null, callback); } @Override public void put(URL url, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), data, parameters, null, callback)); } @Override public void put(URI uri, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { put(uri, data, null, headers, callback); } @Override public void put(URL url, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), data, null, headers, callback)); } @Override public void put(URL url, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), data, parameters, headers, callback)); } @Override public void put(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { put(uri, readTimeout, null, null, null, callback); } @Override public void put(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, null, null, null, callback)); } @Override public void put(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { put(uri, readTimeout, null, parameters, null, callback); } @Override public void put(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, null, parameters, null, callback)); } @Override public void put(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { put(uri, readTimeout, null, null, headers, callback); } @Override public void put(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, null, null, headers, callback)); } @Override public void put(URI uri, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { put(uri, readTimeout, parameters, headers, callback); } @Override public void put(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void put(URI uri, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { put(uri, readTimeout, data, null, null, callback); } @Override public void put(URL url, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, data, null, null, callback)); } @Override public void put(URI uri, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { put(uri, readTimeout, data, parameters, null, callback); } @Override public void put(URL url, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, data, parameters, null, callback)); } @Override public void put(URI uri, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { put(uri, readTimeout, data, null, headers, callback); } @Override public void put(URL url, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, data, null, headers, callback)); } @Override public void put(URL url, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->put(URL2URI(url), readTimeout, data, parameters, headers, callback)); } @Override public void patch(URI uri, Callback callback) throws IOException, RequestException { patch(uri, null, null, null, callback); } @Override public void patch(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), null, null, null, callback)); } @Override public void patch(URI uri, Map parameters, Callback callback) throws IOException, RequestException { patch(uri, null, parameters, null, callback); } @Override public void patch(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), null, parameters, null, callback)); } @Override public void patch(URI uri, List
headers, Callback callback) throws IOException, RequestException { patch(uri, null, null, headers, callback); } @Override public void patch(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), null, null, headers, callback)); } @Override public void patch(URI uri, Map parameters, List
headers, Callback callback) throws IOException, RequestException { patch(uri, null, parameters, headers, callback); } @Override public void patch(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), null, parameters, headers, callback)); } @Override public void patch(URI uri, RequestBody data, Callback callback) throws IOException, RequestException { patch(uri, data, null, null, callback); } @Override public void patch(URL url, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), data, null, null, callback)); } @Override public void patch(URI uri, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { patch(uri, data, parameters, null, callback); } @Override public void patch(URL url, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), data, parameters, null, callback)); } @Override public void patch(URI uri, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { patch(uri, data, null, headers, callback); } @Override public void patch(URL url, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), data, null, headers, callback)); } @Override public void patch(URL url, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), data, parameters, headers, callback)); } @Override public void patch(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, null, null, null, callback); } @Override public void patch(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, null, null, null, callback)); } @Override public void patch(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, null, parameters, null, callback); } @Override public void patch(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, null, parameters, null, callback)); } @Override public void patch(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, null, null, headers, callback); } @Override public void patch(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, null, null, headers, callback)); } @Override public void patch(URI uri, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, null, parameters, headers, callback); } @Override public void patch(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, null, parameters, headers, callback)); } @Override public void patch(URI uri, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, data, null, null, callback); } @Override public void patch(URL url, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, data, null, null, callback)); } @Override public void patch(URI uri, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, data, parameters, null, callback); } @Override public void patch(URL url, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, data, parameters, null, callback)); } @Override public void patch(URI uri, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { patch(uri, readTimeout, data, null, headers, callback); } @Override public void patch(URL url, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, data, null, headers, callback)); } @Override public void patch(URL url, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->patch(URL2URI(url), readTimeout, data, parameters, headers, callback)); } @Override public void delete(URI uri, Callback callback) throws IOException, RequestException { delete(uri, null, null, callback); } @Override public void delete(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), null, null, callback)); } @Override public void delete(URI uri, Map parameters, Callback callback) throws IOException, RequestException { delete(uri, parameters, null, callback); } @Override public void delete(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), parameters, null, callback)); } @Override public void delete(URI uri, List
headers, Callback callback) throws IOException, RequestException { delete(uri, null, headers, callback); } @Override public void delete(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), null, headers, callback)); } @Override public void delete(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), parameters, headers, callback)); } @Override public void delete(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { delete(uri, readTimeout, null, null, callback); } @Override public void delete(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), readTimeout, null, null, callback)); } @Override public void delete(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { delete(uri, readTimeout, parameters, null, callback); } @Override public void delete(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void delete(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { delete(uri, readTimeout, null, headers, callback); } @Override public void delete(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void delete(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->delete(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void connect(URI uri, Callback callback) throws IOException, RequestException { connect(uri, null, null, callback); } @Override public void connect(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), null, null, callback)); } @Override public void connect(URI uri, Map parameters, Callback callback) throws IOException, RequestException { connect(uri, parameters, null, callback); } @Override public void connect(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), parameters, null, callback)); } @Override public void connect(URI uri, List
headers, Callback callback) throws IOException, RequestException { connect(uri, null, headers, callback); } @Override public void connect(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), null, headers, callback)); } @Override public void connect(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), parameters, headers, callback)); } @Override public void connect(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { connect(uri, readTimeout, null, null, callback); } @Override public void connect(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), readTimeout, null, null, callback)); } @Override public void connect(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { connect(uri, readTimeout, parameters, null, callback); } @Override public void connect(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void connect(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { connect(uri, readTimeout, null, headers, callback); } @Override public void connect(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void connect(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->connect(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void trace(URI uri, Callback callback) throws IOException, RequestException { trace(uri, null, null, callback); } @Override public void trace(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), null, null, callback)); } @Override public void trace(URI uri, Map parameters, Callback callback) throws IOException, RequestException { trace(uri, parameters, null, callback); } @Override public void trace(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), parameters, null, callback)); } @Override public void trace(URI uri, List
headers, Callback callback) throws IOException, RequestException { trace(uri, null, headers, callback); } @Override public void trace(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), null, headers, callback)); } @Override public void trace(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), parameters, headers, callback)); } @Override public void trace(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { trace(uri, readTimeout, null, null, callback); } @Override public void trace(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), readTimeout, null, null, callback)); } @Override public void trace(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { trace(uri, readTimeout, parameters, null, callback); } @Override public void trace(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void trace(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { trace(uri, readTimeout, null, headers, callback); } @Override public void trace(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void trace(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->trace(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void copy(URI uri, Callback callback) throws IOException, RequestException { copy(uri, null, null, callback); } @Override public void copy(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), null, null, callback)); } @Override public void copy(URI uri, Map parameters, Callback callback) throws IOException, RequestException { copy(uri, parameters, null, callback); } @Override public void copy(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), parameters, null, callback)); } @Override public void copy(URI uri, List
headers, Callback callback) throws IOException, RequestException { copy(uri, null, headers, callback); } @Override public void copy(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), null, headers, callback)); } @Override public void copy(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), parameters, headers, callback)); } @Override public void copy(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { copy(uri, readTimeout, null, null, callback); } @Override public void copy(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), readTimeout, null, null, callback)); } @Override public void copy(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { copy(uri, readTimeout, parameters, null, callback); } @Override public void copy(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void copy(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { copy(uri, readTimeout, null, headers, callback); } @Override public void copy(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void copy(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->copy(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void move(URI uri, Callback callback) throws IOException, RequestException { move(uri, null, null, callback); } @Override public void move(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), null, null, callback)); } @Override public void move(URI uri, Map parameters, Callback callback) throws IOException, RequestException { move(uri, parameters, null, callback); } @Override public void move(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), parameters, null, callback)); } @Override public void move(URI uri, List
headers, Callback callback) throws IOException, RequestException { move(uri, null, headers, callback); } @Override public void move(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), null, headers, callback)); } @Override public void move(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), parameters, headers, callback)); } @Override public void move(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { move(uri, readTimeout, null, null, callback); } @Override public void move(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), readTimeout, null, null, callback)); } @Override public void move(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { move(uri, readTimeout, parameters, null, callback); } @Override public void move(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void move(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { move(uri, readTimeout, null, headers, callback); } @Override public void move(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void move(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->move(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void head(URI uri, Callback callback) throws IOException, RequestException { head(uri, null, null, callback); } @Override public void head(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), null, null, callback)); } @Override public void head(URI uri, Map parameters, Callback callback) throws IOException, RequestException { head(uri, parameters, null, callback); } @Override public void head(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), parameters, null, callback)); } @Override public void head(URI uri, List
headers, Callback callback) throws IOException, RequestException { head(uri, null, headers, callback); } @Override public void head(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), null, headers, callback)); } @Override public void head(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), parameters, headers, callback)); } @Override public void head(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { head(uri, readTimeout, null, null, callback); } @Override public void head(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), readTimeout, null, null, callback)); } @Override public void head(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { head(uri, readTimeout, parameters, null, callback); } @Override public void head(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void head(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { head(uri, readTimeout, null, headers, callback); } @Override public void head(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void head(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->head(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void options(URI uri, Callback callback) throws IOException, RequestException { options(uri, null, null, callback); } @Override public void options(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), null, null, callback)); } @Override public void options(URI uri, Map parameters, Callback callback) throws IOException, RequestException { options(uri, parameters, null, callback); } @Override public void options(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), parameters, null, callback)); } @Override public void options(URI uri, List
headers, Callback callback) throws IOException, RequestException { options(uri, null, headers, callback); } @Override public void options(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), null, headers, callback)); } @Override public void options(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), parameters, headers, callback)); } @Override public void options(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { options(uri, readTimeout, null, null, callback); } @Override public void options(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), readTimeout, null, null, callback)); } @Override public void options(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { options(uri, readTimeout, parameters, null, callback); } @Override public void options(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void options(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { options(uri, readTimeout, null, headers, callback); } @Override public void options(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void options(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->options(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void link(URI uri, Callback callback) throws IOException, RequestException { link(uri, null, null, callback); } @Override public void link(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), null, null, callback)); } @Override public void link(URI uri, Map parameters, Callback callback) throws IOException, RequestException { link(uri, parameters, null, callback); } @Override public void link(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), parameters, null, callback)); } @Override public void link(URI uri, List
headers, Callback callback) throws IOException, RequestException { link(uri, null, headers, callback); } @Override public void link(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), null, headers, callback)); } @Override public void link(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), parameters, headers, callback)); } @Override public void link(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { link(uri, readTimeout, null, null, callback); } @Override public void link(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), readTimeout, null, null, callback)); } @Override public void link(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { link(uri, readTimeout, parameters, null, callback); } @Override public void link(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void link(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { link(uri, readTimeout, null, headers, callback); } @Override public void link(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void link(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->link(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void unlink(URI uri, Callback callback) throws IOException, RequestException { unlink(uri, null, null, callback); } @Override public void unlink(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), null, null, callback)); } @Override public void unlink(URI uri, Map parameters, Callback callback) throws IOException, RequestException { unlink(uri, parameters, null, callback); } @Override public void unlink(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), parameters, null, callback)); } @Override public void unlink(URI uri, List
headers, Callback callback) throws IOException, RequestException { unlink(uri, null, headers, callback); } @Override public void unlink(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), null, headers, callback)); } @Override public void unlink(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), parameters, headers, callback)); } @Override public void unlink(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { unlink(uri, readTimeout, null, null, callback); } @Override public void unlink(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), readTimeout, null, null, callback)); } @Override public void unlink(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { unlink(uri, readTimeout, parameters, null, callback); } @Override public void unlink(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void unlink(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { unlink(uri, readTimeout, null, headers, callback); } @Override public void unlink(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void unlink(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlink(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void purge(URI uri, Callback callback) throws IOException, RequestException { purge(uri, null, null, callback); } @Override public void purge(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), null, null, callback)); } @Override public void purge(URI uri, Map parameters, Callback callback) throws IOException, RequestException { purge(uri, parameters, null, callback); } @Override public void purge(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), parameters, null, callback)); } @Override public void purge(URI uri, List
headers, Callback callback) throws IOException, RequestException { purge(uri, null, headers, callback); } @Override public void purge(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), null, headers, callback)); } @Override public void purge(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), parameters, headers, callback)); } @Override public void purge(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { purge(uri, readTimeout, null, null, callback); } @Override public void purge(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), readTimeout, null, null, callback)); } @Override public void purge(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { purge(uri, readTimeout, parameters, null, callback); } @Override public void purge(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void purge(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { purge(uri, readTimeout, null, headers, callback); } @Override public void purge(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void purge(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->purge(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void lock(URI uri, Callback callback) throws IOException, RequestException { lock(uri, null, null, callback); } @Override public void lock(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), null, null, callback)); } @Override public void lock(URI uri, Map parameters, Callback callback) throws IOException, RequestException { lock(uri, parameters, null, callback); } @Override public void lock(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), parameters, null, callback)); } @Override public void lock(URI uri, List
headers, Callback callback) throws IOException, RequestException { lock(uri, null, headers, callback); } @Override public void lock(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), null, headers, callback)); } @Override public void lock(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), parameters, headers, callback)); } @Override public void lock(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { lock(uri, readTimeout, null, null, callback); } @Override public void lock(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), readTimeout, null, null, callback)); } @Override public void lock(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { lock(uri, readTimeout, parameters, null, callback); } @Override public void lock(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void lock(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { lock(uri, readTimeout, null, headers, callback); } @Override public void lock(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void lock(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->lock(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void unlock(URI uri, Callback callback) throws IOException, RequestException { unlock(uri, null, null, callback); } @Override public void unlock(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), null, null, callback)); } @Override public void unlock(URI uri, Map parameters, Callback callback) throws IOException, RequestException { unlock(uri, parameters, null, callback); } @Override public void unlock(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), parameters, null, callback)); } @Override public void unlock(URI uri, List
headers, Callback callback) throws IOException, RequestException { unlock(uri, null, headers, callback); } @Override public void unlock(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), null, headers, callback)); } @Override public void unlock(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), parameters, headers, callback)); } @Override public void unlock(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { unlock(uri, readTimeout, null, null, callback); } @Override public void unlock(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), readTimeout, null, null, callback)); } @Override public void unlock(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { unlock(uri, readTimeout, parameters, null, callback); } @Override public void unlock(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void unlock(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { unlock(uri, readTimeout, null, headers, callback); } @Override public void unlock(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void unlock(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->unlock(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void propfind(URI uri, Callback callback) throws IOException, RequestException { propfind(uri, null, null, callback); } @Override public void propfind(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), null, null, callback)); } @Override public void propfind(URI uri, Map parameters, Callback callback) throws IOException, RequestException { propfind(uri, parameters, null, callback); } @Override public void propfind(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), parameters, null, callback)); } @Override public void propfind(URI uri, List
headers, Callback callback) throws IOException, RequestException { propfind(uri, null, headers, callback); } @Override public void propfind(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), null, headers, callback)); } @Override public void propfind(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), parameters, headers, callback)); } @Override public void propfind(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { propfind(uri, readTimeout, null, null, callback); } @Override public void propfind(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), readTimeout, null, null, callback)); } @Override public void propfind(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { propfind(uri, readTimeout, parameters, null, callback); } @Override public void propfind(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void propfind(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { propfind(uri, readTimeout, null, headers, callback); } @Override public void propfind(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void propfind(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->propfind(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void proppatch(URI uri, Callback callback) throws IOException, RequestException { proppatch(uri, null, null, null, callback); } @Override public void proppatch(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), null, null, null, callback)); } @Override public void proppatch(URI uri, Map parameters, Callback callback) throws IOException, RequestException { proppatch(uri, null, parameters, null, callback); } @Override public void proppatch(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), null, parameters, null, callback)); } @Override public void proppatch(URI uri, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, null, null, headers, callback); } @Override public void proppatch(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), null, null, headers, callback)); } @Override public void proppatch(URI uri, Map parameters, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, null, parameters, headers, callback); } @Override public void proppatch(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), null, parameters, headers, callback)); } @Override public void proppatch(URI uri, RequestBody data, Callback callback) throws IOException, RequestException { proppatch(uri, data, null, null, callback); } @Override public void proppatch(URL url, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), data, null, null, callback)); } @Override public void proppatch(URI uri, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { proppatch(uri, data, parameters, null, callback); } @Override public void proppatch(URL url, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), data, parameters, null, callback)); } @Override public void proppatch(URI uri, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, data, null, headers, callback); } @Override public void proppatch(URL url, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), data, null, headers, callback)); } @Override public void proppatch(URL url, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), data, parameters, headers, callback)); } @Override public void proppatch(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, null, null, null, callback); } @Override public void proppatch(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, null, null, null, callback)); } @Override public void proppatch(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, null, parameters, null, callback); } @Override public void proppatch(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, null, parameters, null, callback)); } @Override public void proppatch(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, null, null, headers, callback); } @Override public void proppatch(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, null, null, headers, callback)); } @Override public void proppatch(URI uri, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, null, parameters, headers, callback); } @Override public void proppatch(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, null, parameters, headers, callback)); } @Override public void proppatch(URI uri, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, data, null, null, callback); } @Override public void proppatch(URL url, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, data, null, null, callback)); } @Override public void proppatch(URI uri, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, data, parameters, null, callback); } @Override public void proppatch(URL url, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, data, parameters, null, callback)); } @Override public void proppatch(URI uri, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { proppatch(uri, readTimeout, data, null, headers, callback); } @Override public void proppatch(URL url, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, data, null, headers, callback)); } @Override public void proppatch(URL url, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->proppatch(URL2URI(url), readTimeout, data, parameters, headers, callback)); } @Override public void report(URI uri, Callback callback) throws IOException, RequestException { report(uri, null, null, null, callback); } @Override public void report(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), null, null, null, callback)); } @Override public void report(URI uri, Map parameters, Callback callback) throws IOException, RequestException { report(uri, null, parameters, null, callback); } @Override public void report(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), null, parameters, null, callback)); } @Override public void report(URI uri, List
headers, Callback callback) throws IOException, RequestException { report(uri, null, null, headers, callback); } @Override public void report(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), null, null, headers, callback)); } @Override public void report(URI uri, Map parameters, List
headers, Callback callback) throws IOException, RequestException { report(uri, null, parameters, headers, callback); } @Override public void report(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), null, parameters, headers, callback)); } @Override public void report(URI uri, RequestBody data, Callback callback) throws IOException, RequestException { report(uri, data, null, null, callback); } @Override public void report(URL url, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), data, null, null, callback)); } @Override public void report(URI uri, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { report(uri, data, parameters, null, callback); } @Override public void report(URL url, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), data, parameters, null, callback)); } @Override public void report(URI uri, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { report(uri, data, null, headers, callback); } @Override public void report(URL url, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), data, null, headers, callback)); } @Override public void report(URL url, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), data, parameters, headers, callback)); } @Override public void report(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { report(uri, readTimeout, null, null, null, callback); } @Override public void report(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, null, null, null, callback)); } @Override public void report(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { report(uri, readTimeout, null, parameters, null, callback); } @Override public void report(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, null, parameters, null, callback)); } @Override public void report(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { report(uri, readTimeout, null, null, headers, callback); } @Override public void report(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, null, null, headers, callback)); } @Override public void report(URI uri, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { report(uri, readTimeout, parameters, headers, callback); } @Override public void report(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void report(URI uri, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { report(uri, readTimeout, data, null, null, callback); } @Override public void report(URL url, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, data, null, null, callback)); } @Override public void report(URI uri, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { report(uri, readTimeout, data, parameters, null, callback); } @Override public void report(URL url, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, data, parameters, null, callback)); } @Override public void report(URI uri, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { report(uri, readTimeout, data, null, headers, callback); } @Override public void report(URL url, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, data, null, headers, callback)); } @Override public void report(URL url, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->report(URL2URI(url), readTimeout, data, parameters, headers, callback)); } @Override public void view(URI uri, Callback callback) throws IOException, RequestException { view(uri, null, null, callback); } @Override public void view(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), null, null, callback)); } @Override public void view(URI uri, Map parameters, Callback callback) throws IOException, RequestException { view(uri, parameters, null, callback); } @Override public void view(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), parameters, null, callback)); } @Override public void view(URI uri, List
headers, Callback callback) throws IOException, RequestException { view(uri, null, headers, callback); } @Override public void view(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), null, headers, callback)); } @Override public void view(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), parameters, headers, callback)); } @Override public void view(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { view(uri, readTimeout, null, null, callback); } @Override public void view(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), readTimeout, null, null, callback)); } @Override public void view(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { view(uri, readTimeout, parameters, null, callback); } @Override public void view(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void view(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { view(uri, readTimeout, null, headers, callback); } @Override public void view(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void view(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->view(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void wrapped(URI uri, Callback callback) throws IOException, RequestException { wrapped(uri, null, null, callback); } @Override public void wrapped(URL url, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), null, null, callback)); } @Override public void wrapped(URI uri, Map parameters, Callback callback) throws IOException, RequestException { wrapped(uri, parameters, null, callback); } @Override public void wrapped(URL url, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), parameters, null, callback)); } @Override public void wrapped(URI uri, List
headers, Callback callback) throws IOException, RequestException { wrapped(uri, null, headers, callback); } @Override public void wrapped(URL url, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), null, headers, callback)); } @Override public void wrapped(URL url, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), parameters, headers, callback)); } @Override public void wrapped(URI uri, int readTimeout, Callback callback) throws IOException, RequestException { wrapped(uri, readTimeout, null, null, callback); } @Override public void wrapped(URL url, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), readTimeout, null, null, callback)); } @Override public void wrapped(URI uri, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { wrapped(uri, readTimeout, parameters, null, callback); } @Override public void wrapped(URL url, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), readTimeout, parameters, null, callback)); } @Override public void wrapped(URI uri, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { wrapped(uri, readTimeout, null, headers, callback); } @Override public void wrapped(URL url, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), readTimeout, null, headers, callback)); } @Override public void wrapped(URL url, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->wrapped(URL2URI(url), readTimeout, parameters, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, Callback callback) throws IOException, RequestException { request(uri, requestMethod, null, null, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, Map parameters, Callback callback) throws IOException, RequestException { request(uri, requestMethod, null, parameters, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, parameters, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, null, null, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, Map parameters, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, null, parameters, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, parameters, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, RequestBody data, Callback callback) throws IOException, RequestException { request(uri, requestMethod, data, null, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, data, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { request(uri, requestMethod, data, parameters, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, data, parameters, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, data, null, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, data, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { Assert.isNull(requestMethod, "Request method could not be null."); switch(requestMethod){ case POST: post(uri, data, parameters, headers, callback); case PUT: put(uri, data, parameters, headers, callback); case PATCH: patch(uri, data, parameters, headers, callback); case DELETE: delete(uri, parameters, headers, callback); case CONNECT: connect(uri, parameters, headers, callback); case TRACE: trace(uri, parameters, headers, callback); case COPY: copy(uri, parameters, headers, callback); case MOVE: move(uri, parameters, headers, callback); case HEAD: head(uri, parameters, headers, callback); case OPTIONS: options(uri, parameters, headers, callback); case LINK: link(uri, parameters, headers, callback); case UNLINK: unlink(uri, parameters, headers, callback); case PURGE: purge(uri, parameters, headers, callback); case LOCK: lock(uri, parameters, headers, callback); case UNLOCK: unlock(uri, parameters, headers, callback); case PROPFIND: propfind(uri, parameters, headers, callback); case PROPPATCH: proppatch(uri, data, parameters, headers, callback); case REPORT: report(uri, data, parameters, headers, callback); case VIEW: view(uri, parameters, headers, callback); case WRAPPED: wrapped(uri, parameters, headers, callback); default: get(uri, parameters, headers, callback); } } @Override public void request(URL url, RequestMethod requestMethod, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, data, parameters, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, null, null, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, null, parameters, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, parameters, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, null, null, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, null, parameters, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, parameters, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, data, null, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, RequestBody data, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, data, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, data, parameters, null, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, RequestBody data, Map parameters, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, data, parameters, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { request(uri, requestMethod, readTimeout, data, null, headers, callback); } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, RequestBody data, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, data, headers, callback)); } @Override public void request(URI uri, RequestMethod requestMethod, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { Assert.isNull(requestMethod, "Request method could not be null."); switch(requestMethod){ case POST: post(uri, readTimeout, data, parameters, headers, callback); case PUT: put(uri, readTimeout, data, parameters, headers, callback); case PATCH: patch(uri, readTimeout, data, parameters, headers, callback); case DELETE: delete(uri, readTimeout, parameters, headers, callback); case CONNECT: connect(uri, readTimeout, parameters, headers, callback); case TRACE: trace(uri, readTimeout, parameters, headers, callback); case COPY: copy(uri, readTimeout, parameters, headers, callback); case MOVE: move(uri, readTimeout, parameters, headers, callback); case HEAD: head(uri, readTimeout, parameters, headers, callback); case OPTIONS: options(uri, readTimeout, parameters, headers, callback); case LINK: link(uri, readTimeout, parameters, headers, callback); case UNLINK: unlink(uri, readTimeout, parameters, headers, callback); case PURGE: purge(uri, readTimeout, parameters, headers, callback); case LOCK: lock(uri, readTimeout, parameters, headers, callback); case UNLOCK: unlock(uri, readTimeout, parameters, headers, callback); case PROPFIND: propfind(uri, readTimeout, parameters, headers, callback); case PROPPATCH: proppatch(uri, readTimeout, data, parameters, headers, callback); case REPORT: report(uri, readTimeout, data, parameters, headers, callback); case VIEW: view(uri, readTimeout, parameters, headers, callback); case WRAPPED: wrapped(uri, readTimeout, parameters, headers, callback); default: get(uri, readTimeout, parameters, headers, callback); } } @Override public void request(URL url, RequestMethod requestMethod, int readTimeout, RequestBody data, Map parameters, List
headers, Callback callback) throws IOException, RequestException { asyncExecute(()->request(URL2URI(url), requestMethod, readTimeout, data, parameters, headers, callback)); } protected static void asyncExecute(final AsyncExecute execute) throws IOException, RequestException { try{ execute.exec(); }catch(URISyntaxException e){ throw new IllegalArgumentException(e.getMessage(), e); } } @FunctionalInterface protected interface AsyncExecute { void exec() throws URISyntaxException, IOException, RequestException; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy