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.mortbay.cometd
Class Channel

    java.lang.Object
      org.mortbay.cometd.Channel

    public class Channel

extends Object

Method Summary
`void` | `addDataFilter(DataFilter filter)`
`void` | `addSubscriber(Client client)`
`String` | `getId()`
`String` | `getToken(Client client, boolean subscribe, boolean send, boolean oneTime)`
`void` | `publish(Object data, Client from)`
`void` | `removeDataFilter(DataFilter filter)`
`void` | `removeSubscriber(Client client)`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Method Detail

### addSubscriber

    public void addSubscriber(Client client)

  Parameters:
    `client` -

### addDataFilter

    public void addDataFilter(DataFilter filter)

  Parameters:
    `filter` -

### removeDataFilter

    public void removeDataFilter(DataFilter filter)

  Parameters:
    `filter` -

### getId

    public String getId()

  Returns:

### removeSubscriber

    public void removeSubscriber(Client client)

  Parameters:
    `client` -

### publish

    public void publish(Object data,
                        Client from)

  Parameters:
    `data` -

### getToken

    public String getToken(Client client,
                           boolean subscribe,
                           boolean send,
                           boolean oneTime)

  Parameters:
    `client` - The client for which this token will be valid
    `subscribe` - True if this token may be used for subscriptions
    `send` - True if this token may be used for send
    `oneTime` - True if this token may only be used in one request batch.
  Returns:
    A new token that can be used for subcriptions and or sending.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

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 © 2007 Mort Bay Consulting. All Rights Reserved.