Package com.totvs.tjf.core.message
Class CloudEventsInfo
- java.lang.Object
-
- com.totvs.tjf.core.message.CloudEventsInfo
-
public class CloudEventsInfo extends Object
This class holds all the cloudevents information.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_CLOUDEVENTS_JSONstatic StringAPPLICATION_JSON
-
Constructor Summary
Constructors Constructor Description CloudEventsInfo()The default constructor of this class.CloudEventsInfo(String id, String subject, String dataSchema, String correlationId)This constructor sets all transaction information.CloudEventsInfo(String id, String subject, String dataSchema, String correlationId, String dataContentType)This constructor sets all transaction information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCorrelationId()StringgetDataContentType()StringgetDataSchema()StringgetId()StringgetSubject()voidsetContentType(String contentType)voidsetCorrelationId(String correlationId)voidsetDataContentType(String dataContentType)voidsetDataSchema(String dataSchema)voidsetId(String id)voidsetSubject(String subject)
-
-
-
Field Detail
-
APPLICATION_JSON
public static final String APPLICATION_JSON
- See Also:
- Constant Field Values
-
APPLICATION_CLOUDEVENTS_JSON
public static final String APPLICATION_CLOUDEVENTS_JSON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloudEventsInfo
public CloudEventsInfo()
The default constructor of this class.
-
CloudEventsInfo
public CloudEventsInfo(String id, String subject, String dataSchema, String correlationId)
This constructor sets all transaction information.- Parameters:
id- transaction identificationcorrelationId- producer identificationsubject- subject of the eventdataSchema- schema of the data
-
CloudEventsInfo
public CloudEventsInfo(String id, String subject, String dataSchema, String correlationId, String dataContentType)
This constructor sets all transaction information.- Parameters:
id- transaction identificationcorrelationId- producer identificationsubject- subject of the eventdataSchema- schema of the data
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id
-
setId
public void setId(String id)
- Parameters:
id- the id to set
-
getSubject
public String getSubject()
- Returns:
- the subject
-
setSubject
public void setSubject(String subject)
- Parameters:
subject- the subject to set
-
getDataSchema
public String getDataSchema()
- Returns:
- the dataSchema
-
setDataSchema
public void setDataSchema(String dataSchema)
- Parameters:
dataSchema- the dataSchema to set
-
getCorrelationId
public String getCorrelationId()
- Returns:
- the correlationId
-
setCorrelationId
public void setCorrelationId(String correlationId)
- Parameters:
correlationId- the correlationId to set
-
getDataContentType
public String getDataContentType()
- Returns:
- the dataContentType
-
setDataContentType
public void setDataContentType(String dataContentType)
- Parameters:
dataContentType- the dataContentType to set
-
setContentType
public void setContentType(String contentType)
- Parameters:
contentType- the dataContentType to set
-
-