Class WebhookUtil


  • public class WebhookUtil
    extends java.lang.Object
    Utility 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 boolean obtainDeliveryAgreement​(org.apache.http.impl.client.CloseableHttpClient httpClient, java.lang.String targetUrl, java.lang.String requestOrigin)  
      static void setWebhookHeaders​(org.apache.http.client.methods.HttpPost builder, java.lang.String contentType, java.lang.String requestOrigin, java.lang.String urlAuthType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebhookUtil

        public WebhookUtil()
    • 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)