Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.filter
Class NoLocalFilter

    java.lang.Object
      org.codehaus.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.3 $

Constructor Summary
`NoLocalFilter(java.lang.String newClientId)` Construct a NoLocalFilter

Method Summary
`boolean` | `isWildcard()`
`boolean` | `matches(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`

Constructor Detail

### NoLocalFilter

    public NoLocalFilter(java.lang.String newClientId)

  Construct a NoLocalFilter

Parameters:
  `newClientId` -

Method Detail

### matches

    public boolean matches(Message message)
                    throws JMSException

  ensure messages are filtered if they have the same clientId as the filter

  Specified by:
    `matches` in interface `Filter`
  Parameters:
    `message` - - the message to match
  Returns:
    true if the message has a different clientId to the filter
  Throws:
    `JMSException`

### isWildcard

    public boolean isWildcard()

  Specified by:
    `isWildcard` in interface `Filter`
  Returns:
    return true if this filter is a wildcard filter and so can match multiple destinations

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.