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

wee0.net.HttpClient Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2016-2022, wee0.com.
 *
 * Licensed 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.
 **/
package wee0.net;

import wee0.Wee0;
import wee0.config.IEnv;

/**
 * HTTP客户端便捷操作类
 * @author		baihw
 * @date 		2018年7月3日
 **/

/**
 * 
 *  examples:
 * 
**/ public final class HttpClient{ /** * 用户未指定实现类名称时使用的默认实现类名称。 */ public static final String DEF_IMPL_NAME = "wee0.net.http.impl.DefaultHttpClient"; // 实现类实例。 private static final IHttpClient DEF_IMPL = ( IHttpClient )Wee0.getSingleInstance( IEnv.KEY_HTTPCLIENT_IMPL, DEF_IMPL_NAME ); /** * 获取当前使用的默认实现类实例。 * * @return 当前使用的默认实现类实例 */ public static IHttpClient impl(){ return DEF_IMPL; } } // end class




© 2015 - 2025 Weber Informatics LLC | Privacy Policy