Constructor and Description |
---|
SimpleEvent() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBody()
Returns the raw byte array of the data contained in this event.
|
Map<String,String> |
getHeaders()
Returns a map of name-value pairs describing the data stored in the body.
|
void |
setBody(byte[] body)
Sets the raw byte array of the data contained in this event.
|
void |
setHeaders(Map<String,String> headers)
Set the event headers
|
String |
toString() |
public Map<String,String> getHeaders()
Event
getHeaders
in interface Event
public void setHeaders(Map<String,String> headers)
Event
setHeaders
in interface Event
headers
- Map of headers to replace the current headers.public byte[] getBody()
Event
public void setBody(byte[] body)
Event
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.