org.mortbay.cometd
Class ChannelPattern

java.lang.Object
  extended by org.mortbay.cometd.ChannelPattern

public class ChannelPattern
extends Object

Channel Pattern A string matcher that matches channel name as follows:

  /channel/name     - absolute match
  /channel,/other   - coma separated list of patterns
  /foo*bah/blah     - wild card not including /
  /foo**bah         - wild card including /

Author:
gregw

Constructor Summary
ChannelPattern(String pattern)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean matches(String channel)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelPattern

public ChannelPattern(String pattern)
Method Detail

matches

public boolean matches(String channel)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007 Mort Bay Consulting. All Rights Reserved.