Class WebhookUtil
- java.lang.Object
-
- org.apache.eventmesh.runtime.util.WebhookUtil
-
public class WebhookUtil extends java.lang.ObjectUtility class for implementing CloudEvents Http Webhook spec- See Also:
- CloudEvents Http Webhook
-
-
Constructor Summary
Constructors Constructor Description WebhookUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanobtainDeliveryAgreement(org.apache.http.impl.client.CloseableHttpClient httpClient, java.lang.String targetUrl, java.lang.String requestOrigin)static voidsetWebhookHeaders(org.apache.http.client.methods.HttpPost builder, java.lang.String contentType, java.lang.String requestOrigin, java.lang.String urlAuthType)
-
-
-
Method Detail
-
obtainDeliveryAgreement
public static boolean obtainDeliveryAgreement(org.apache.http.impl.client.CloseableHttpClient httpClient, java.lang.String targetUrl, java.lang.String requestOrigin)
-
setWebhookHeaders
public static void setWebhookHeaders(org.apache.http.client.methods.HttpPost builder, java.lang.String contentType, java.lang.String requestOrigin, java.lang.String urlAuthType)
-
-