Class CMAWebhookRequest


  • public class CMAWebhookRequest
    extends java.lang.Object
    Model class representing a request done by Contentful to a webhook.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getHeaders()  
      java.lang.String getJSONBody()  
      java.lang.String getMethod()  
      java.lang.String getUrl()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • CMAWebhookRequest

        public CMAWebhookRequest()
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Returns:
        An url this request was issued to.
      • getMethod

        public java.lang.String getMethod()
        Returns:
        The http method (aka POST, GET, DELETE, PUT) used for this request.
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Returns:
        All headers used, including custom headers, are returned by this method.
      • getJSONBody

        public java.lang.String getJSONBody()
        Returns:
        A JSON String representing the item affected.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human readable string, representing the object.