update copyright

This commit is contained in:
Looly
2025-01-01 23:44:09 +08:00
parent 224bfee92e
commit cb9ed49fae
2804 changed files with 4615 additions and 3874 deletions

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<!--
~ Copyright (c) 2024 Hutool Team and hutool.cn
~ Copyright (c) 2013-2025 Hutool Team and hutool.cn
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import java.util.zip.GZIPInputStream;
* 全局响应内容压缩解压器注册中心<br>
* 通过注册指定Accept-Encoding的流来包装响应内容流从而支持特殊压缩算法
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public enum GlobalCompressStreamRegister {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ import java.util.Map.Entry;
* 全局头部信息<br>
* 所有Http请求将共用此全局头部信息
*
* @author looly
* @author Looly
*/
public enum GlobalHeaders {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import java.nio.charset.Charset;
/**
* HTTP验证工具类
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpAuthUtil {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* 提供HTTP认证相关封装
*
* @author looly
* @author Looly
* @since 6.0.0
*/
package org.dromara.hutool.http.auth;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.dromara.hutool.http.ssl.SSLInfo;
/**
* Http客户端配置
*
* @author looly
* @author Looly
*/
public class ClientConfig {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ import java.util.Map;
* downloader.close();
* }</pre>
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpDownloader {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
* 请求消息用于定义请求所需的信息如请求URL、请求方法、请求头、请求体等<br>
* 此对象为无状态对象,与具体引擎不相关,因此可以复用。
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class Request implements HeaderOperation<Request> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import java.util.function.Consumer;
/**
* 响应内容接口包括响应状态码、HTTP消息头、响应体等信息
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public interface Response extends Closeable {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.dromara.hutool.core.io.resource.HttpResource;
* bytes类型的Http request body主要发送编码后的表单数据或rest body如JSON或XML
*
* @since 5.7.17
* @author looly
* @author Looly
*/
public class BytesBody extends ResourceBody {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ import java.util.Map;
* Form表单形式的消息体
*
* @param <T> this类型用于链式调用
* @author looly
* @author Looly
*/
@SuppressWarnings("unchecked")
public abstract class FormBody<T extends FormBody<T>> implements HttpBody {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import java.util.Map;
* Multipart/form-data数据的请求体封装<br>
* 遵循RFC2387规范https://www.rfc-editor.org/rfc/rfc2387
*
* @author looly
* @author Looly
* @since 5.3.5
*/
public class MultipartBody extends FormBody<MultipartBody> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ import java.nio.file.Path;
* Multipart/form-data输出流封装<br>
* 遵循RFC2387规范https://www.rfc-editor.org/rfc/rfc2387
*
* @author looly
* @author Looly
* @since 5.7.17
*/
public class MultipartOutputStream extends OutputStream {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.io.OutputStream;
/**
* {@link Resource}类型的Http request body主要发送资源文件中的内容
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class ResourceBody implements HttpBody {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import java.io.*;
/**
* 响应体部分封装
*
* @author looly
* @author Looly
*/
public class ResponseBody implements HttpBody, Closeable {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.nio.charset.Charset;
/**
* String类型的body一般用于Rest请求的请求体如JSON或XML
*
* @author looly
* @author Looly
*/
public class StringBody extends ResourceBody {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import java.util.Map;
/**
* application/x-www-form-urlencoded 类型请求body封装
*
* @author looly
* @author Looly
* @since 5.7.17
*/
public class UrlEncodedFormBody extends FormBody<UrlEncodedFormBody> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* 请求体封装实现
*
* @author looly
* @author Looly
*
*/
package org.dromara.hutool.http.client.body;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import java.util.concurrent.ConcurrentHashMap;
/**
* 基于内存的Cookie存储实现线程安全
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class InMemoryCookieStore implements CookieStoreSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import java.util.List;
*
* 见https://stackoverflow.com/questions/16305486/cookiemanager-for-multiple-threads
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class ThreadLocalCookieStore implements CookieStoreSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* 自定义Cookie
*
* @author looly
* @author Looly
*
*/
package org.dromara.hutool.http.client.cookie;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.io.Closeable;
/**
* HTTP客户端引擎接口通过不同实现完成HTTP请求发送
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public interface ClientEngine extends Closeable {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import org.dromara.hutool.log.LogUtil;
/**
* Http客户端引擎工厂类
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class ClientEngineFactory {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.io.OutputStream;
/**
* {@link HttpBody}转换为{@link org.apache.hc.core5.http.HttpEntity}对象
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient4BodyEntity extends AbstractHttpEntity {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.time.Instant;
/**
* HttpClient4 Cookie实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient4Cookie extends SimpleWrapper<Cookie> implements CookieSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ import java.util.List;
/**
* Apache HttpClient4的Cookie存储器实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient4CookieStore extends SimpleWrapper<CookieStoreSpi> implements CookieStore {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ import java.util.Map;
/**
* Apache HttpClient5的HTTP请求引擎
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient4Engine extends AbstractClientEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ import java.util.*;
* HttpClient响应包装<br>
* 通过包装{@link CloseableHttpResponse},实现获取响应状态码、响应头、响应体等内容
*
* @author looly
* @author Looly
*/
public class HttpClient4Response extends SimpleWrapper<HttpResponse> implements Response {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
* Apache HttpClient 4.x实现<br>
* 文档见https://hc.apache.org/httpcomponents-client-4.5.x/index.html
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.client.engine.httpclient4;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.io.OutputStream;
/**
* {@link HttpBody}转换为{@link org.apache.hc.core5.http.HttpEntity}对象
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient5BodyEntity extends AbstractHttpEntity {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.time.Instant;
/**
* HttpClient5 Cookie实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient5Cookie extends SimpleWrapper<Cookie> implements CookieSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ import java.util.List;
/**
* HttpClient5 Cookie存储器实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient5CookieStore extends SimpleWrapper<CookieStoreSpi> implements CookieStore {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@ import java.util.concurrent.TimeUnit;
/**
* Apache HttpClient5的HTTP请求引擎
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpClient5Engine extends AbstractClientEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ import java.util.*;
* HttpClient响应包装<br>
* 通过包装{@link CloseableHttpResponse},实现获取响应状态码、响应头、响应体等内容
*
* @author looly
* @author Looly
*/
public class HttpClient5Response extends SimpleWrapper<ClassicHttpResponse> implements Response {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ import javax.net.ssl.SSLContext;
/**
* TLS Socket 策略构建器
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class TlsSocketStrategyBuilder implements Builder<TlsSocketStrategy> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
* Apache HttpClient 5.1.x实现<br>
* 文档见https://hc.apache.org/httpcomponents-client-5.1.x/index.html
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.client.engine.httpclient5;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import java.net.URLConnection;
/**
* 针对{@link HttpURLConnection}相关工具
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class HttpUrlConnectionUtil {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ import java.io.IOException;
/**
* 基于JDK的UrlConnection的Http客户端引擎实现
*
* @author looly
* @author Looly
*/
public class JdkClientEngine extends AbstractClientEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.time.Instant;
/**
* JDK Cookie实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class JdkCookie extends SimpleWrapper<HttpCookie> implements CookieSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ import java.util.List;
/**
* JDK CookieStore实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class JdkCookieStore extends SimpleWrapper<CookieStoreSpi> implements CookieStore {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* 基于JDK的HttpUrlConnection封装的HTTP客户端
*
* @author looly
* @author Looly
* @since 6.0.0
*/
package org.dromara.hutool.http.client.engine.jdk;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import java.net.PasswordAuthentication;
* Proxy-Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
* </pre>
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class BasicProxyAuthenticator implements Authenticator {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.time.Instant;
/**
* OkHttp Cookie实现
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class OkCookie extends SimpleWrapper<Cookie> implements CookieSpi {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ import java.util.concurrent.TimeUnit;
/**
* OkHttp3客户端引擎封装
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class OkHttpEngine extends AbstractClientEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.io.IOException;
/**
* OkHttp的请求体实现通过{@link HttpBody}转换实现
*
* @author looly
* @author Looly
*/
public class OkHttpRequestBody extends okhttp3.RequestBody {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import java.util.Map;
/**
* OkHttp3的{@link okhttp3.Response} 响应包装
*
* @author looly
* @author Looly
*/
public class OkHttpResponse implements Response {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,6 @@
/**
* Http客户端引擎实现
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.client.engine;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,6 +26,6 @@
* ClientEngine
* </pre>
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.client;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,6 @@
/**
* HTML相关工具封装
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.html;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import java.nio.charset.Charset;
/**
* 常用Content-Type类型枚举
*
* @author looly
* @author Looly
* @since 4.0.11
*/
public enum ContentType {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import java.util.regex.Pattern;
/**
* Content-Type解析工具
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class ContentTypeUtil {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,6 @@
/**
* Http元数据信息包括Header枚举、状态码、Http方法、枚举Content-Type等
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.meta;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* 文件上传封装
*
* @author looly
* @author Looly
*
*/
package org.dromara.hutool.http.multipart;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
/**
* Hutool-http针对JDK的HttpUrlConnection做一层封装简化了HTTPS请求、文件上传、Cookie记忆等操作使Http请求变得无比简单。
*
* @author looly
* @author Looly
*
*/
package org.dromara.hutool.http;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import java.util.List;
/**
* 代理信息,提供代理选择器和代理验证
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class ProxyInfo {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,6 @@
/**
* HTTP代理相关封装
*
* @author looly
* @author Looly
*/
package org.dromara.hutool.http.proxy;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.dromara.hutool.http.server.handler.HttpHandler;
/**
* 服务端引擎抽象类,实现重置引擎功能
*
* @author looly
* @author Looly
*/
public abstract class AbstractServerEngine implements ServerEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import org.dromara.hutool.http.server.handler.HttpHandler;
* init -> setHandler -> start
* }</pre>
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public interface ServerEngine {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Hutool Team and hutool.cn
* Copyright (c) 2013-2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import java.util.Collection;
/**
* SmartHttp请求对象
*
* @author looly
* @author Looly
* @since 6.0.0
*/
public class SmartHttpRequest implements ServerRequest {

Some files were not shown because too many files have changed in this diff Show More