Class DatarefExtension

java.lang.Object
io.cloudevents.core.extensions.DatarefExtension
All Implemented Interfaces:
io.cloudevents.CloudEventExtension

public final class DatarefExtension extends Object implements io.cloudevents.CloudEventExtension
This extension supports the "Claim Check Pattern". It allows to specify a reference to a location where the event payload is stored.
See Also:
  • Field Details

  • Constructor Details

    • DatarefExtension

      public DatarefExtension()
  • Method Details

    • getDataref

      public URI getDataref()
      Returns:
      the dataref contained in this extension.
    • setDataref

      public void setDataref(URI dataref)
      Parameters:
      dataref - the uri to set as dataref.
    • readFrom

      public void readFrom(io.cloudevents.CloudEventExtensions extensions)
      Specified by:
      readFrom in interface io.cloudevents.CloudEventExtension
    • getValue

      public Object getValue(String key)
      Specified by:
      getValue in interface io.cloudevents.CloudEventExtension
    • getKeys

      public Set<String> getKeys()
      Specified by:
      getKeys in interface io.cloudevents.CloudEventExtension
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object