2015-11-20 20:54:27 +01:00
|
|
|
package io.moquette.interception.messages;
|
2015-08-17 17:41:29 -03:00
|
|
|
|
2016-02-03 23:20:15 +01:00
|
|
|
import io.moquette.parser.proto.messages.AbstractMessage;
|
2015-11-20 20:54:27 +01:00
|
|
|
import io.moquette.spi.impl.subscriptions.Subscription;
|
2015-08-17 17:41:29 -03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Wagner Macedo
|
|
|
|
|
*/
|
|
|
|
|
public class InterceptSubscribeMessage {
|
|
|
|
|
private final Subscription subscription;
|
|
|
|
|
|
|
|
|
|
public InterceptSubscribeMessage(Subscription subscription) {
|
|
|
|
|
this.subscription = subscription;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getClientID() {
|
|
|
|
|
return subscription.getClientId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AbstractMessage.QOSType getRequestedQos() {
|
|
|
|
|
return subscription.getRequestedQos();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTopicFilter() {
|
|
|
|
|
return subscription.getTopicFilter();
|
|
|
|
|
}
|
|
|
|
|
}
|