public class AttributesImpl extends Object implements Attributes
| Modifier and Type | Method and Description |
|---|---|
static AttributesImpl |
build(String id,
URI source,
String specversion,
String type,
ZonedDateTime time,
URI schemaurl,
String datacontentencoding,
String datacontenttype,
String subject)
Used by the Jackson framework to unmarshall.
|
Optional<String> |
getDatacontentencoding() |
Optional<String> |
getDatacontenttype() |
String |
getId() |
Optional<String> |
getMediaType()
A common way to get the media type of CloudEvents 'data';
|
Optional<URI> |
getSchemaurl() |
URI |
getSource() |
String |
getSpecversion() |
Optional<String> |
getSubject() |
Optional<ZonedDateTime> |
getTime() |
String |
getType() |
static Map<String,String> |
marshal(AttributesImpl attributes)
Creates the marshaller instance to marshall
AttributesImpl as
a Map of strings |
String |
toString() |
static AttributesImpl |
unmarshal(Map<String,String> attributes)
The attribute unmarshaller for the binary format, that receives a
Map with attributes names as String and value as String. |
public String getId()
public URI getSource()
public String getSpecversion()
public String getType()
public Optional<ZonedDateTime> getTime()
public Optional<String> getMediaType()
getMediaType in interface Attributespublic static AttributesImpl build(String id, URI source, String specversion, String type, ZonedDateTime time, URI schemaurl, String datacontentencoding, String datacontenttype, String subject)
public static Map<String,String> marshal(AttributesImpl attributes)
AttributesImpl as
a Map of stringspublic static AttributesImpl unmarshal(Map<String,String> attributes)
Map with attributes names as String and value as String.Copyright © 2019. All rights reserved.