public abstract class BaseWxChannelServiceImpl<H,P> extends Object implements WxChannelService, RequestHttp<H,P>
doGetAccessTokenRequest()| 限定符和类型 | 字段和说明 |
|---|---|
protected WxChannelConfig |
config |
| 构造器和说明 |
|---|
BaseWxChannelServiceImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitHttpgetRequestHttpClient, getRequestHttpProxy, getRequestTypeprotected WxChannelConfig config
public RequestHttp getRequestHttp()
BaseWxChannelServicegetRequestHttp 在接口中 BaseWxChannelServicepublic boolean checkSignature(String timestamp, String nonce, String signature)
BaseWxChannelService验证消息的确来自微信服务器. 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN
checkSignature 在接口中 BaseWxChannelServicetimestamp - the timestampnonce - the noncesignature - the signaturepublic String getAccessToken() throws WxErrorException
BaseWxChannelServicegetAccessToken 在接口中 BaseWxChannelServiceWxErrorException - the wx error exception#getAccessToken(boolean)public String getAccessToken(boolean forceRefresh) throws WxErrorException
BaseWxChannelService获取access_token,本方法线程安全. 且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限 使用【稳定版接口】获取access_token时,限制【20次/日】,连续使用该模式时,请保证调用时间隔至少为30s,否则不会刷新 程序员在非必要情况下尽量不要主动调用此方法 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140183&token=&lang=zh_CN
getAccessToken 在接口中 BaseWxChannelServiceforceRefresh - 强制刷新WxErrorException - the wx error exceptionprotected abstract String doGetAccessTokenRequest() throws IOException
IOException - IOExceptionprotected abstract String doGetStableAccessTokenRequest(boolean forceRefresh) throws IOException
IOException - IOExceptionpublic String get(String url, String queryParam) throws WxErrorException
get 在接口中 WxServiceWxErrorExceptionpublic String post(String url, String postData) throws WxErrorException
post 在接口中 WxServiceWxErrorExceptionpublic String post(String url, Object obj) throws WxErrorException
post 在接口中 WxServiceWxErrorExceptionpublic String post(String url, ToJson obj) throws WxErrorException
post 在接口中 WxServiceWxErrorExceptionpublic String upload(String url, CommonUploadParam param) throws WxErrorException
upload 在接口中 WxServiceWxErrorExceptionpublic String post(String url, com.google.gson.JsonObject jsonObject) throws WxErrorException
post 在接口中 WxServiceWxErrorExceptionpublic <T,E> T execute(RequestExecutor<T,E> executor, String uri, E data) throws WxErrorException
execute 在接口中 BaseWxChannelServiceT - .E - .executor - 执行器uri - 接口请求地址data - 参数或请求数据WxErrorException - the wx error exceptionpublic <T,E> T executeWithoutLog(RequestExecutor<T,E> executor, String uri, E data) throws WxErrorException
BaseWxChannelServiceexecuteWithoutLog 在接口中 BaseWxChannelServiceT - .E - .executor - 执行器uri - 接口请求地址data - 参数或请求数据WxErrorException - the wx error exceptionprotected <T,E> T execute0(RequestExecutor<T,E> executor, String uri, E data, boolean printResult) throws WxErrorException
WxErrorExceptionprotected <T,E> T executeInternal(RequestExecutor<T,E> executor, String uri, E data, boolean doNotAutoRefreshToken, boolean printResult) throws WxErrorException
WxErrorExceptionprotected String extractAccessToken(String resultContent) throws WxErrorException
resultContent - 响应内容WxErrorException - 异常public WxChannelConfig getConfig()
BaseWxChannelServicegetConfig 在接口中 BaseWxChannelServicepublic void setConfig(WxChannelConfig config)
BaseWxChannelServiceWxChannelConfig 的实现.setConfig 在接口中 BaseWxChannelServiceconfig - configpublic void setRetrySleepMillis(int retrySleepMillis)
BaseWxChannelService设置当微信系统响应系统繁忙时,要等待多少 retrySleepMillis(ms) * 2^(重试次数 - 1) 再发起重试. 默认:1000ms
setRetrySleepMillis 在接口中 BaseWxChannelServiceretrySleepMillis - 重试等待毫秒数public void setMaxRetryTimes(int maxRetryTimes)
BaseWxChannelService设置当微信系统响应系统繁忙时,最大重试次数. 默认:5次
setMaxRetryTimes 在接口中 BaseWxChannelServicemaxRetryTimes - 最大重试次数public WxChannelBasicService getBasicService()
WxChannelServicegetBasicService 在接口中 WxChannelServicepublic WxChannelCategoryService getCategoryService()
WxChannelServicegetCategoryService 在接口中 WxChannelServicepublic WxChannelBrandService getBrandService()
WxChannelServicegetBrandService 在接口中 WxChannelServicepublic WxChannelProductService getProductService()
WxChannelServicegetProductService 在接口中 WxChannelServicepublic WxChannelWarehouseService getWarehouseService()
WxChannelServicegetWarehouseService 在接口中 WxChannelServicepublic WxChannelOrderService getOrderService()
WxChannelServicegetOrderService 在接口中 WxChannelServicepublic WxChannelAfterSaleService getAfterSaleService()
WxChannelServicegetAfterSaleService 在接口中 WxChannelServicepublic WxChannelFreightTemplateService getFreightTemplateService()
WxChannelServicegetFreightTemplateService 在接口中 WxChannelServicepublic WxChannelAddressService getAddressService()
WxChannelServicegetAddressService 在接口中 WxChannelServicepublic WxChannelCouponService getCouponService()
WxChannelServicegetCouponService 在接口中 WxChannelServicepublic WxChannelSharerService getSharerService()
WxChannelServicegetSharerService 在接口中 WxChannelServicepublic WxChannelFundService getFundService()
WxChannelServicegetFundService 在接口中 WxChannelServicepublic WxStoreHomePageService getHomePageService()
WxChannelServicegetHomePageService 在接口中 WxChannelServicepublic WxStoreCooperationService getCooperationService()
WxChannelServicegetCooperationService 在接口中 WxChannelServicepublic WxChannelCompassShopService getCompassShopService()
WxChannelServicegetCompassShopService 在接口中 WxChannelServicepublic WxLeagueWindowService getLeagueWindowService()
WxChannelServicegetLeagueWindowService 在接口中 WxChannelServicepublic WxLeagueSupplierService getLeagueSupplierService()
WxChannelServicegetLeagueSupplierService 在接口中 WxChannelServicepublic WxLeaguePromoterService getLeaguePromoterService()
WxChannelServicegetLeaguePromoterService 在接口中 WxChannelServicepublic WxLeagueProductService getLeagueProductService()
WxChannelServicegetLeagueProductService 在接口中 WxChannelServicepublic WxLeadComponentService getLeadComponentService()
WxChannelServicegetLeadComponentService 在接口中 WxChannelServicepublic WxFinderLiveService getFinderLiveService()
WxChannelServicegetFinderLiveService 在接口中 WxChannelServicepublic WxAssistantService getAssistantService()
WxChannelServicegetAssistantService 在接口中 WxChannelServicepublic WxChannelVipService getVipService()
WxChannelServicegetVipService 在接口中 WxChannelServicepublic WxChannelCompassFinderService getCompassFinderService()
WxChannelServicegetCompassFinderService 在接口中 WxChannelServicepublic WxChannelLiveDashboardService getLiveDashboardService()
WxChannelServicegetLiveDashboardService 在接口中 WxChannelServiceCopyright © 2025. All rights reserved.