INT-3480: public DefaultPahoMC.setPayloadAsBytes
JIRA: https://jira.spring.io/browse/INT-3480 In docs, it s said: ``` The DefaultPahoMessageConverter can be configured to return the raw byte[] in the payload by declaring it as a <bean/> and setting the payloadAsBytes property. ``` http://docs.spring.io/spring-integration/docs/4.0.0.M3/reference/html/mqtt.html
This commit is contained in:
committed by
Artem Bilan
parent
aaf88ecc7c
commit
815f6bfce1
@@ -78,10 +78,14 @@ public class DefaultPahoMessageConverter implements MqttMessageConverter, BeanFa
|
||||
*
|
||||
* @param payloadAsBytes The payloadAsBytes to set.
|
||||
*/
|
||||
protected final void setPayloadAsBytes(boolean payloadAsBytes) {
|
||||
public void setPayloadAsBytes(boolean payloadAsBytes) {
|
||||
this.payloadAsBytes = payloadAsBytes;
|
||||
}
|
||||
|
||||
public boolean isPayloadAsBytes() {
|
||||
return this.payloadAsBytes;
|
||||
}
|
||||
|
||||
public DefaultPahoMessageConverter(int defaultQos, boolean defaultRetained, String charset) {
|
||||
this.defaultQos = defaultQos;
|
||||
this.defaultRetained = defaultRetained;
|
||||
|
||||
Reference in New Issue
Block a user