public class HttpMessageWriter extends Object implements io.cloudevents.rw.CloudEventWriter<Void>, MessageWriter<HttpMessageWriter,Void>
| Constructor and Description |
|---|
HttpMessageWriter(BiConsumer<String,String> putHeader,
Consumer<byte[]> putBody) |
| Modifier and Type | Method and Description |
|---|---|
HttpMessageWriter |
create(io.cloudevents.SpecVersion version) |
Void |
end() |
Void |
end(io.cloudevents.CloudEventData value) |
Void |
setEvent(EventFormat format,
byte[] value) |
io.cloudevents.rw.CloudEventContextWriter |
withContextAttribute(String name,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithContextAttribute, withContextAttribute, withContextAttribute, withContextAttribute, withContextAttribute, withContextAttributewriteBinary, writeStructured, writeStructuredpublic HttpMessageWriter(BiConsumer<String,String> putHeader, Consumer<byte[]> putBody)
public Void setEvent(EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException
setEvent in interface StructuredMessageWriter<Void>io.cloudevents.rw.CloudEventRWExceptionpublic Void end(io.cloudevents.CloudEventData value) throws io.cloudevents.rw.CloudEventRWException
end in interface io.cloudevents.rw.CloudEventWriter<Void>io.cloudevents.rw.CloudEventRWExceptionpublic io.cloudevents.rw.CloudEventContextWriter withContextAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException
withContextAttribute in interface io.cloudevents.rw.CloudEventContextWriterio.cloudevents.rw.CloudEventRWExceptionpublic HttpMessageWriter create(io.cloudevents.SpecVersion version)
create in interface io.cloudevents.rw.CloudEventWriterFactory<HttpMessageWriter,Void>Copyright © 2024. All rights reserved.