com.iteaj.iot.client.mqtt.gateway.MqttGatewayProtocol Maven / Gradle / Ivy
package com.iteaj.iot.client.mqtt.gateway;
import com.iteaj.iot.ProtocolType;
import com.iteaj.iot.client.protocol.ClientInitiativeProtocol;
/**
* mqtt网关协议
* @see MqttGatewayProtocolHandle 可以用来处理发布的状态
*/
public class MqttGatewayProtocol extends ClientInitiativeProtocol {
private MqttGatewayMessage request;
public MqttGatewayProtocol(MqttGatewayMessage request) {
this.request = request;
}
@Override
protected MqttGatewayMessage doBuildRequestMessage() {
return this.request;
}
@Override
public void doBuildResponseMessage(MqttGatewayMessage responseMessage) {
}
@Override
public ProtocolType protocolType() {
return MqttGatewayProtocolType.Mqtt_Gateway;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy