| Constructor and Description | 
|---|
| JSONEvent() | 
| 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 | setCharset(String charset) | 
| void | setHeaders(Map<String,String> headers)Set the event headers | 
public Map<String,String> getHeaders()
EventgetHeaders in interface Eventpublic void setHeaders(Map<String,String> headers)
EventsetHeaders in interface Eventheaders - Map of headers to replace the current headers.public byte[] getBody()
Eventpublic void setBody(byte[] body)
Eventpublic void setCharset(String charset)
Copyright © 2009-2017 Apache Software Foundation. All Rights Reserved.