public interface Event
| 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 
 | 
Map<String,String> getHeaders()
void setHeaders(Map<String,String> headers)
headers - Map of headers to replace the current headers.byte[] getBody()
void setBody(byte[] body)
body - The data.Copyright © 2009-2022 Apache Software Foundation. All Rights Reserved.