@ParametersAreNonnullByDefault public interface CloudEventContextWriter
CloudEventContextReader to a new representation.| Modifier and Type | Method and Description |
|---|---|
default CloudEventContextWriter |
withContextAttribute(String name,
Boolean value)
Set attribute with type
Boolean attribute. |
default CloudEventContextWriter |
withContextAttribute(String name,
Number value)
Set attribute with type
URI. |
default CloudEventContextWriter |
withContextAttribute(String name,
OffsetDateTime value)
Set attribute with type
OffsetDateTime attribute. |
CloudEventContextWriter |
withContextAttribute(String name,
String value)
Set attribute with type
String. |
default CloudEventContextWriter |
withContextAttribute(String name,
URI value)
Set attribute with type
URI. |
CloudEventContextWriter withContextAttribute(String name, String value) throws CloudEventRWException
String.
This setter should not be invoked for specversion, because the writer should
already know the specversion or because it doesn't need it to correctly write the value.name - name of the attributevalue - value of the attributeCloudEventRWException - if anything goes wrong while writing this attribute.IllegalArgumentException - if you're trying to set the specversion attribute.default CloudEventContextWriter withContextAttribute(String name, URI value) throws CloudEventRWException
URI.
This setter should not be invoked for specversion, because the writer should
already know the specversion or because it doesn't need it to correctly write the value.name - name of the attributevalue - value of the attributeCloudEventRWException - if anything goes wrong while writing this attribute.IllegalArgumentException - if you're trying to set the specversion attribute.default CloudEventContextWriter withContextAttribute(String name, OffsetDateTime value) throws CloudEventRWException
OffsetDateTime attribute.
This setter should not be invoked for specversion, because the writer should
already know the specversion or because it doesn't need it to correctly write the value.name - name of the attributevalue - value of the attributeCloudEventRWException - if anything goes wrong while writing this attribute.IllegalArgumentException - if you're trying to set the specversion attribute.default CloudEventContextWriter withContextAttribute(String name, Number value) throws CloudEventRWException
URI.
This setter should not be invoked for specversion, because the writer should
already know the specversion or because it doesn't need it to correctly write the value.name - name of the attributevalue - value of the attributeCloudEventRWException - if anything goes wrong while writing this extension.IllegalArgumentException - if you're trying to set the specversion attribute.default CloudEventContextWriter withContextAttribute(String name, Boolean value) throws CloudEventRWException
Boolean attribute.
This setter should not be invoked for specversion, because the writer should
already know the specversion or because it doesn't need it to correctly write the value.name - name of the attributevalue - value of the attributeCloudEventRWException - if anything goes wrong while writing this extension.IllegalArgumentException - if you're trying to set the specversion attribute.Copyright © 2021. All rights reserved.