Class HttpMessageWriter

java.lang.Object
io.cloudevents.http.impl.HttpMessageWriter
All Implemented Interfaces:
io.cloudevents.core.message.MessageWriter<HttpMessageWriter,Void>, io.cloudevents.core.message.StructuredMessageWriter<Void>, io.cloudevents.rw.CloudEventContextWriter, io.cloudevents.rw.CloudEventWriter<Void>, io.cloudevents.rw.CloudEventWriterFactory<HttpMessageWriter,Void>

public class HttpMessageWriter extends Object implements io.cloudevents.rw.CloudEventWriter<Void>, io.cloudevents.core.message.MessageWriter<HttpMessageWriter,Void>
  • Constructor Details

  • Method Details

    • setEvent

      public Void setEvent(io.cloudevents.core.format.EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException
      Specified by:
      setEvent in interface io.cloudevents.core.message.StructuredMessageWriter<Void>
      Throws:
      io.cloudevents.rw.CloudEventRWException
    • end

      public Void end(io.cloudevents.CloudEventData value) throws io.cloudevents.rw.CloudEventRWException
      Specified by:
      end in interface io.cloudevents.rw.CloudEventWriter<Void>
      Throws:
      io.cloudevents.rw.CloudEventRWException
    • end

      public Void end()
      Specified by:
      end in interface io.cloudevents.rw.CloudEventWriter<Void>
    • withContextAttribute

      public io.cloudevents.rw.CloudEventContextWriter withContextAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException
      Specified by:
      withContextAttribute in interface io.cloudevents.rw.CloudEventContextWriter
      Throws:
      io.cloudevents.rw.CloudEventRWException
    • create

      public HttpMessageWriter create(io.cloudevents.SpecVersion version)
      Specified by:
      create in interface io.cloudevents.rw.CloudEventWriterFactory<HttpMessageWriter,Void>