public abstract class BaseWebhookExecutor<RequestBody extends BaseWebhookRequestBody,Response> extends Object
| 构造器和说明 |
|---|
BaseWebhookExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterHandler(WebhookExecuteParam webhookExecuteParam,
WebhookExecuteResponse<Response> executeResponse)
请求之后的处理方法
|
protected void |
beforeHandler(WebhookExecuteParam webhookExecuteParam)
请求之前的处理方法
|
protected void |
checkFailHandler(WebhookExecuteParam webhookExecuteParam,
WebhookExecuteResponse<Response> executeResponse)
校验响应结果失败之后的处理
|
protected abstract boolean |
checkResponseObjectHandler(WebhookExecuteResponse<Response> executeResponse)
校验解析后的响应结果
|
protected void |
checkSuccessHandler(WebhookExecuteParam webhookExecuteParam,
WebhookExecuteResponse<Response> executeResponse)
校验响应结果成功之后的处理
|
void |
execute(String url,
RequestBody requestBody) |
protected void |
execute(String url,
String content)
执行发送消息
|
protected void |
execute(WebhookExecuteParam webhookExecuteParam)
执行发送消息
|
protected Response |
getParsedResponse(WebhookExecuteResponse<Response> executeResponse) |
protected Response |
parseResponseHandler(WebhookExecuteResponse<Response> executeResponse)
解析响应结果
|
protected abstract WebhookProductEnum |
webhookProductEnum()
webhook 产品信息
|
protected void beforeHandler(WebhookExecuteParam webhookExecuteParam)
webhookExecuteParam - webhook 请求参数protected void afterHandler(WebhookExecuteParam webhookExecuteParam, WebhookExecuteResponse<Response> executeResponse)
webhookExecuteParam - webhook 请求参数executeResponse - 响应结果protected abstract boolean checkResponseObjectHandler(WebhookExecuteResponse<Response> executeResponse)
executeResponse - 响应结果protected Response parseResponseHandler(WebhookExecuteResponse<Response> executeResponse)
executeResponse - 响应结果protected void checkFailHandler(WebhookExecuteParam webhookExecuteParam, WebhookExecuteResponse<Response> executeResponse)
webhookExecuteParam - webhook 请求参数executeResponse - 响应结果protected void checkSuccessHandler(WebhookExecuteParam webhookExecuteParam, WebhookExecuteResponse<Response> executeResponse)
webhookExecuteParam - webhook 请求参数executeResponse - 响应结果protected abstract WebhookProductEnum webhookProductEnum()
protected void execute(String url, String content)
url - webhook 通知地址content - 通知内容protected void execute(WebhookExecuteParam webhookExecuteParam)
webhookExecuteParam - webhook 请求参数public void execute(String url, RequestBody requestBody)
protected Response getParsedResponse(WebhookExecuteResponse<Response> executeResponse)
Copyright © 2021. All rights reserved.