Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.filter
Class NoLocalFilter  view NoLocalFilter download NoLocalFilter.java

java.lang.Object
  extended byorg.activemq.filter.NoLocalFilter
All Implemented Interfaces:
Filter

public class NoLocalFilter
extends java.lang.Object
implements Filter

Checks that messages are not filtered by NoLocal

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.lang.String clientId
           
 
Constructor Summary
NoLocalFilter(java.lang.String newClientId)
          Construct a NoLocalFilter
 
Method Summary
 boolean isWildcard()
           
 boolean matches(javax.jms.Message message)
          ensure messages are filtered if they have the same clientId as the filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientId

private java.lang.String clientId
Constructor Detail

NoLocalFilter

public NoLocalFilter(java.lang.String newClientId)
Construct a NoLocalFilter

Method Detail

matches

public boolean matches(javax.jms.Message message)
                throws javax.jms.JMSException
ensure messages are filtered if they have the same clientId as the filter

Specified by:
matches in interface Filter

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface Filter