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()
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
public void setCharset(String charset)
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.