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 Summary
ConstructorsConstructorDescriptionHttpMessageWriter(BiConsumer<String, String> putHeader, Consumer<byte[]> putBody) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cloudevents.rw.CloudEventContextWriter
withContextAttribute, withContextAttribute, withContextAttribute, withContextAttribute, withContextAttribute, withContextAttributeMethods inherited from interface io.cloudevents.core.message.MessageWriter
writeBinary, writeStructured, writeStructured
-
Constructor Details
-
HttpMessageWriter
-
-
Method Details
-
setEvent
public Void setEvent(io.cloudevents.core.format.EventFormat format, byte[] value) throws io.cloudevents.rw.CloudEventRWException - Specified by:
setEventin interfaceio.cloudevents.core.message.StructuredMessageWriter<Void>- Throws:
io.cloudevents.rw.CloudEventRWException
-
end
- Specified by:
endin interfaceio.cloudevents.rw.CloudEventWriter<Void>- Throws:
io.cloudevents.rw.CloudEventRWException
-
end
- Specified by:
endin interfaceio.cloudevents.rw.CloudEventWriter<Void>
-
withContextAttribute
public io.cloudevents.rw.CloudEventContextWriter withContextAttribute(String name, String value) throws io.cloudevents.rw.CloudEventRWException - Specified by:
withContextAttributein interfaceio.cloudevents.rw.CloudEventContextWriter- Throws:
io.cloudevents.rw.CloudEventRWException
-
create
- Specified by:
createin interfaceio.cloudevents.rw.CloudEventWriterFactory<HttpMessageWriter,Void>
-