Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,15 @@

public class SubscriptionsGet extends PubSubElementProcessorAbstract {

private final BlockingQueue<Packet> outQueue;
private ChannelManager channelManager;

private IQ result;
private String node;
private JID actorJid;
private IQ requestIq;
private boolean ephemeral = false;

public SubscriptionsGet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
this.outQueue = outQueue;
this.channelManager = channelManager;
}

public void setChannelManager(ChannelManager dataStore) {
channelManager = dataStore;
setOutQueue(outQueue);
setChannelManager(channelManager);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public class NodeItemsGet extends PubSubElementProcessorAbstract {

public static final int MAX_ITEMS_TO_RETURN = 50;

private final BlockingQueue<Packet> outQueue;

private ChannelManager channelManager;
private String node;
private String firstItem;
Expand All @@ -56,7 +54,7 @@ public class NodeItemsGet extends PubSubElementProcessorAbstract {
private JID actor;

public NodeItemsGet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
this.outQueue = outQueue;
setOutQueue(outQueue);
setChannelManager(channelManager);

this.acceptedElementName = XMLConstants.ITEMS_ELEM;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ public class SubscribeSet extends PubSubElementProcessorAbstract {

public static final String INVALID_NODE_FORMAT = "invalid-node-format";

private final BlockingQueue<Packet> outQueue;
private final ChannelManager channelManager;

public SubscribeSet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
this.outQueue = outQueue;
this.setOutQueue(outQueue);
this.channelManager = channelManager;

acceptedElementName = XMLConstants.SUBSCRIBE_ELEM;
Expand Down