更新包的名字

This commit is contained in:
YuCheng Hu 2023-01-11 15:17:54 -05:00
parent c8cc611085
commit 05b85efc0f
795 changed files with 1760 additions and 1831 deletions

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.annotation;
package com.ossez.wechat.common.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.api;
package com.ossez.wechat.common.api;
import com.ossez.wechat.common.exception.WxMpErrorMsgEnum;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static me.chanjar.weixin.common.error.WxMpErrorMsgEnum.*;
/**
* 微信开发所使用到的常量类.
*
@ -22,8 +22,8 @@ public class WxConsts {
* 40014 不合法的access_token请开发者认真比对access_token的有效性如是否过期或查看是否正在为恰当的公众号调用接口
* </pre>
*/
public static final List<Integer> ACCESS_TOKEN_ERROR_CODES = Arrays.asList(CODE_40001.getCode(),
CODE_40014.getCode(), CODE_42001.getCode());
public static final List<Integer> ACCESS_TOKEN_ERROR_CODES = Arrays.asList(WxMpErrorMsgEnum.CODE_40001.getCode(),
WxMpErrorMsgEnum.CODE_40014.getCode(), WxMpErrorMsgEnum.CODE_42001.getCode());
/**
* 微信推送过来的消息的类型和发送给微信xml格式消息的消息类型.

View File

@ -1,6 +1,6 @@
package me.chanjar.weixin.common.api;
package com.ossez.wechat.common.api;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.exception.WxErrorException;
/**
* WxErrorException处理器.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.api;
package com.ossez.wechat.common.api;
/**
* <pre>

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.api;
package com.ossez.wechat.common.api;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.api;
package com.ossez.wechat.common.api;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import lombok.extern.slf4j.Slf4j;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
/**
* 包含toJson()方法的接口.

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
import java.io.Serializable;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* access token.

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
import java.io.Serializable;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* 卡券Api签名.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
import java.io.Serializable;

View File

@ -1,7 +1,7 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.ArrayList;

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.bean;
package com.ossez.wechat.common.bean;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.imgproc;
package com.ossez.wechat.common.bean.imgproc;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.List;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.imgproc;
package com.ossez.wechat.common.bean.imgproc;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.List;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.imgproc;
package com.ossez.wechat.common.bean.imgproc;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.menu;
package com.ossez.wechat.common.bean.menu;
import java.io.InputStream;
import java.io.InputStreamReader;
@ -7,8 +7,8 @@ import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* 菜单公众号和企业号共用的.

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.bean.menu;
package com.ossez.wechat.common.bean.menu;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* menu button.

View File

@ -1,10 +1,10 @@
package me.chanjar.weixin.common.bean.menu;
package com.ossez.wechat.common.bean.menu;
import java.io.Serializable;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* menu rule.

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.oauth2;
package com.ossez.wechat.common.bean.oauth2;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.List;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.bean.ocr;
package com.ossez.wechat.common.bean.ocr;
import com.google.gson.annotations.SerializedName;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.bean.result;
package com.ossez.wechat.common.bean.result;
import java.io.Serializable;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
*

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.bean.result;
package com.ossez.wechat.common.bean.result;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,10 +1,10 @@
package me.chanjar.weixin.common.bean.result;
package com.ossez.wechat.common.bean.result;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.result;
package com.ossez.wechat.common.bean.result;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.result;
package com.ossez.wechat.common.bean.result;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.subscribemsg;
package com.ossez.wechat.common.bean.subscribemsg;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.subscribemsg;
package com.ossez.wechat.common.bean.subscribemsg;
import lombok.Data;

View File

@ -1,7 +1,7 @@
package me.chanjar.weixin.common.bean.subscribemsg;
package com.ossez.wechat.common.bean.subscribemsg;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.io.Serializable;
import java.util.List;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.bean.subscribemsg;
package com.ossez.wechat.common.bean.subscribemsg;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.enums;
package com.ossez.wechat.common.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.enums;
package com.ossez.wechat.common.enums;
/**
* <pre>

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
import com.google.common.collect.Maps;
import lombok.Getter;

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.util.json.WxGsonBuilder;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
/**
* @author Daniel Qian

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
import com.google.common.collect.Maps;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
import com.google.common.collect.Maps;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
import com.google.common.collect.Maps;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.error;
package com.ossez.wechat.common.exception;
/**
* WxJava专用的runtime exception.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.redis;
package com.ossez.wechat.common.redis;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.redis;
package com.ossez.wechat.common.redis;
import com.github.jedis.lock.JedisLock;
import lombok.RequiredArgsConstructor;
import me.chanjar.weixin.common.util.locks.JedisDistributedLock;
import com.ossez.wechat.common.util.locks.JedisDistributedLock;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.util.Pool;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.redis;
package com.ossez.wechat.common.redis;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import me.chanjar.weixin.common.util.locks.RedisTemplateSimpleDistributedLock;
import com.ossez.wechat.common.util.locks.RedisTemplateSimpleDistributedLock;
import org.springframework.data.redis.core.StringRedisTemplate;
import java.util.concurrent.TimeUnit;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.redis;
package com.ossez.wechat.common.redis;
import lombok.RequiredArgsConstructor;
import org.redisson.api.RedissonClient;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.redis;
package com.ossez.wechat.common.redis;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;

View File

@ -1,10 +1,10 @@
package me.chanjar.weixin.common.requestexecuter.ocr;
package com.ossez.wechat.common.requestexecuter.ocr;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.RequestHttp;
import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.RequestHttp;
import com.ossez.wechat.common.util.http.apache.Utf8ResponseHandler;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.client.config.RequestConfig;

View File

@ -1,10 +1,10 @@
package me.chanjar.weixin.common.requestexecuter.ocr;
package com.ossez.wechat.common.requestexecuter.ocr;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.RequestExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import me.chanjar.weixin.common.util.http.ResponseHandler;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.RequestExecutor;
import com.ossez.wechat.common.util.http.RequestHttp;
import com.ossez.wechat.common.util.http.ResponseHandler;
import java.io.File;
import java.io.IOException;

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.service;
package com.ossez.wechat.common.service;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.bean.imgproc.WxImgProcAiCropResult;
import me.chanjar.weixin.common.bean.imgproc.WxImgProcQrCodeResult;
import me.chanjar.weixin.common.bean.imgproc.WxImgProcSuperResolutionResult;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.bean.imgproc.WxImgProcAiCropResult;
import com.ossez.wechat.common.bean.imgproc.WxImgProcQrCodeResult;
import com.ossez.wechat.common.bean.imgproc.WxImgProcSuperResolutionResult;
import java.io.File;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.service;
package com.ossez.wechat.common.service;
import me.chanjar.weixin.common.bean.WxOAuth2UserInfo;
import me.chanjar.weixin.common.bean.oauth2.WxOAuth2AccessToken;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.bean.WxOAuth2UserInfo;
import com.ossez.wechat.common.bean.oauth2.WxOAuth2AccessToken;
import com.ossez.wechat.common.exception.WxErrorException;
/**
* oauth2 相关接口.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.service;
package com.ossez.wechat.common.service;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.service;
package com.ossez.wechat.common.service;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.bean.ocr.WxOcrBankCardResult;
import me.chanjar.weixin.common.bean.ocr.WxOcrBizLicenseResult;
import me.chanjar.weixin.common.bean.ocr.WxOcrCommResult;
import me.chanjar.weixin.common.bean.ocr.WxOcrDrivingLicenseResult;
import me.chanjar.weixin.common.bean.ocr.WxOcrDrivingResult;
import me.chanjar.weixin.common.bean.ocr.WxOcrIdCardResult;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.bean.ocr.WxOcrBankCardResult;
import com.ossez.wechat.common.bean.ocr.WxOcrBizLicenseResult;
import com.ossez.wechat.common.bean.ocr.WxOcrCommResult;
import com.ossez.wechat.common.bean.ocr.WxOcrDrivingLicenseResult;
import com.ossez.wechat.common.bean.ocr.WxOcrDrivingResult;
import com.ossez.wechat.common.bean.ocr.WxOcrIdCardResult;
import java.io.File;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.service;
package com.ossez.wechat.common.service;
import com.google.gson.JsonObject;
import me.chanjar.weixin.common.bean.ToJson;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.bean.ToJson;
import com.ossez.wechat.common.exception.WxErrorException;
/**
* 微信服务接口.

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
/**
* Manifest constants for the <code>org.apache.catalina.session</code>

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
/**
*

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
/**
* @author Daniel Qian

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
import java.util.Collections;
import java.util.Enumeration;
@ -8,7 +8,7 @@ import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import me.chanjar.weixin.common.util.res.StringManager;
import com.ossez.wechat.common.util.res.StringManager;
/**
* @author Daniel Qian

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
import java.util.Enumeration;

View File

@ -1,6 +1,6 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
import me.chanjar.weixin.common.util.res.StringManager;
import com.ossez.wechat.common.util.res.StringManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
/**
* An exception that indicates the maximum number of active sessions has been

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
import java.util.Enumeration;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.session;
package com.ossez.wechat.common.session;
/**
* @author Daniel Qian

View File

@ -1,9 +1,8 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
import com.google.common.collect.Lists;
import me.chanjar.weixin.common.annotation.Required;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.annotation.Required;
import com.ossez.wechat.common.exception.WxErrorException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
import org.apache.commons.lang3.RegExUtils;
import org.apache.commons.lang3.StringUtils;

View File

@ -1,8 +1,8 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
import com.ossez.wechat.common.exception.WxErrorException;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.api.WxErrorExceptionHandler;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.api.WxErrorExceptionHandler;
/**
* @author Daniel Qian

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
public class RandomUtils {

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;

View File

@ -1,9 +1,9 @@
package me.chanjar.weixin.common.util;
package com.ossez.wechat.common.util;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import me.chanjar.weixin.common.error.WxRuntimeException;
import com.ossez.wechat.common.exception.WxRuntimeException;
import org.dom4j.*;
import org.dom4j.io.SAXReader;
import org.dom4j.tree.DefaultText;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.crypto;
package com.ossez.wechat.common.util.crypto;
import java.util.ArrayList;

View File

@ -4,7 +4,7 @@
* @copyright Copyright (c) 1998-2014 Tencent Inc.
*/
package me.chanjar.weixin.common.util.crypto;
package com.ossez.wechat.common.util.crypto;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.crypto;
package com.ossez.wechat.common.util.crypto;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;

View File

@ -1,9 +1,8 @@
package me.chanjar.weixin.common.util.crypto;
package com.ossez.wechat.common.util.crypto;
import com.google.common.base.CharMatcher;
import com.ossez.wechat.common.exception.WxRuntimeException;
import lombok.AllArgsConstructor;
import lombok.Data;
import me.chanjar.weixin.common.error.WxRuntimeException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.StringUtils;
import org.w3c.dom.Document;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.fs;
package com.ossez.wechat.common.util.fs;
import org.apache.commons.io.IOUtils;

View File

@ -1,13 +1,13 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import java.io.File;
import java.io.IOException;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheMediaDownloadRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpMediaDownloadRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpMediaDownloadRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheMediaDownloadRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpMediaDownloadRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpMediaDownloadRequestExecutor;
/**
* 下载媒体文件请求执行器.

View File

@ -1,8 +1,7 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import com.ossez.wechat.common.exception.WxErrorException;
import jodd.http.HttpResponse;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import okhttp3.Response;
import org.apache.http.Header;
import org.apache.http.client.methods.CloseableHttpResponse;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
/**
* Created by ecoolper on 2017/4/28.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import lombok.AllArgsConstructor;
import lombok.Data;

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheMediaInputStreamUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpMediaInputStreamUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpMediaInputStreamUploadRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheMediaInputStreamUploadRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpMediaInputStreamUploadRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpMediaInputStreamUploadRequestExecutor;
import com.ossez.wechat.common.bean.result.WxMediaUploadResult;
import java.io.IOException;

View File

@ -1,14 +1,14 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import java.io.File;
import java.io.IOException;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheMediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpMediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpMediaUploadRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheMediaUploadRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpMediaUploadRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpMediaUploadRequestExecutor;
import com.ossez.wechat.common.bean.result.WxMediaUploadResult;
/**
* 上传媒体文件请求执行器.

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadCustomizeResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheMinishopMediaUploadRequestCustomizeExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpMinishopMediaUploadRequestCustomizeExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpMinishopMediaUploadRequestCustomizeExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheMinishopMediaUploadRequestCustomizeExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpMinishopMediaUploadRequestCustomizeExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpMinishopMediaUploadRequestCustomizeExecutor;
import com.ossez.wechat.common.bean.result.WxMinishopImageUploadCustomizeResult;
import java.io.File;
import java.io.IOException;

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheMinishopMediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpMinishopMediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpMinishopMediaUploadRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheMinishopMediaUploadRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpMinishopMediaUploadRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpMinishopMediaUploadRequestExecutor;
import com.ossez.wechat.common.bean.result.WxMinishopImageUploadResult;
import java.io.File;
import java.io.IOException;

View File

@ -1,7 +1,7 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxErrorException;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxErrorException;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
/**
* Created by ecoolper on 2017/4/22.

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
/**
* <pre>

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheSimpleGetRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpSimpleGetRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpSimpleGetRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheSimpleGetRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpSimpleGetRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpSimpleGetRequestExecutor;
import java.io.IOException;

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.apache.ApacheSimplePostRequestExecutor;
import me.chanjar.weixin.common.util.http.jodd.JoddHttpSimplePostRequestExecutor;
import me.chanjar.weixin.common.util.http.okhttp.OkHttpSimplePostRequestExecutor;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.http.apache.ApacheSimplePostRequestExecutor;
import com.ossez.wechat.common.util.http.jodd.JoddHttpSimplePostRequestExecutor;
import com.ossez.wechat.common.util.http.okhttp.OkHttpSimplePostRequestExecutor;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import java.nio.charset.StandardCharsets;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http;
package com.ossez.wechat.common.util.http;
import org.apache.http.conn.DnsResolver;
import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import org.apache.http.client.HttpRequestRetryHandler;
import org.apache.http.conn.ConnectionKeepAliveStrategy;

View File

@ -1,4 +1,4 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpHost;

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.fs.FileUtils;
import me.chanjar.weixin.common.util.http.BaseMediaDownloadRequestExecutor;
import me.chanjar.weixin.common.util.http.HttpResponseProxy;
import me.chanjar.weixin.common.util.http.RequestHttp;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.util.fs.FileUtils;
import com.ossez.wechat.common.util.http.BaseMediaDownloadRequestExecutor;
import com.ossez.wechat.common.util.http.HttpResponseProxy;
import com.ossez.wechat.common.util.http.RequestHttp;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.Header;

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.InputStreamData;
import me.chanjar.weixin.common.util.http.MediaInputStreamUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.bean.result.WxMediaUploadResult;
import com.ossez.wechat.common.util.http.InputStreamData;
import com.ossez.wechat.common.util.http.MediaInputStreamUploadRequestExecutor;
import com.ossez.wechat.common.util.http.RequestHttp;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.client.config.RequestConfig;

View File

@ -1,11 +1,11 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import com.ossez.wechat.common.bean.result.WxMediaUploadResult;
import com.ossez.wechat.common.util.http.MediaUploadRequestExecutor;
import com.ossez.wechat.common.util.http.RequestHttp;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.client.config.RequestConfig;

View File

@ -1,12 +1,12 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadCustomizeResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.MinishopUploadRequestCustomizeExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import com.ossez.wechat.common.bean.result.WxMinishopImageUploadCustomizeResult;
import com.ossez.wechat.common.util.http.MinishopUploadRequestCustomizeExecutor;
import com.ossez.wechat.common.util.http.RequestHttp;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.client.config.RequestConfig;

View File

@ -1,13 +1,12 @@
package me.chanjar.weixin.common.util.http.apache;
package com.ossez.wechat.common.util.http.apache;
import com.ossez.wechat.common.enums.WxType;
import com.ossez.wechat.common.exception.WxError;
import com.ossez.wechat.common.exception.WxErrorException;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadResult;
import me.chanjar.weixin.common.enums.WxType;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.MinishopUploadRequestExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import com.ossez.wechat.common.bean.result.WxMinishopImageUploadResult;
import com.ossez.wechat.common.util.http.MinishopUploadRequestExecutor;
import com.ossez.wechat.common.util.http.RequestHttp;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.client.config.RequestConfig;

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