ARTEMIS-641 Enable filtering on address in server consumer
This commit is contained in:
parent
fe0cb648d6
commit
bed73f57b3
|
@ -62,11 +62,17 @@ public final class FilterConstants {
|
||||||
*/
|
*/
|
||||||
public static final SimpleString ACTIVEMQ_SIZE = new SimpleString("AMQSize");
|
public static final SimpleString ACTIVEMQ_SIZE = new SimpleString("AMQSize");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the ActiveMQ Artemis Address header
|
||||||
|
*/
|
||||||
|
public static final SimpleString ACTIVEMQ_ADDRESS = new SimpleString("AMQAddress");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All ActiveMQ Artemis headers are prepended by this prefix.
|
* All ActiveMQ Artemis headers are prepended by this prefix.
|
||||||
*/
|
*/
|
||||||
public static final SimpleString ACTIVEMQ_PREFIX = new SimpleString("AMQ");
|
public static final SimpleString ACTIVEMQ_PREFIX = new SimpleString("AMQ");
|
||||||
|
|
||||||
|
|
||||||
private FilterConstants() {
|
private FilterConstants() {
|
||||||
// Utility class
|
// Utility class
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,6 +169,9 @@ public class FilterImpl implements Filter {
|
||||||
else if (FilterConstants.ACTIVEMQ_SIZE.equals(fieldName)) {
|
else if (FilterConstants.ACTIVEMQ_SIZE.equals(fieldName)) {
|
||||||
return msg.getEncodeSize();
|
return msg.getEncodeSize();
|
||||||
}
|
}
|
||||||
|
else if (FilterConstants.ACTIVEMQ_ADDRESS.equals(fieldName)) {
|
||||||
|
return msg.getAddress();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue