com.sun.grizzly.comet
Class CometAsyncFilter

java.lang.Object
  extended by com.sun.grizzly.comet.CometAsyncFilter
All Implemented Interfaces:
AsyncFilter

public class CometAsyncFilter
extends Object
implements AsyncFilter

AJAX/Comet support using the Grizzly Asynchronous Request Processing default mechanism. Instance of this class represent an interrupted/polled/Comet request. Note: The request can be resumed anytime, and the polled request is not holding a thread.

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.grizzly.arp.AsyncFilter
AsyncFilter.Result
 
Constructor Summary
CometAsyncFilter()
          Comet Async Filter.
 
Method Summary
 AsyncFilter.Result doFilter(AsyncExecutor asyncExecutor)
          Execute the Comet AsyncFilter by delegating the work to the CometEngine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CometAsyncFilter

public CometAsyncFilter()
Comet Async Filter.

Method Detail

doFilter

public AsyncFilter.Result doFilter(AsyncExecutor asyncExecutor)
Execute the Comet AsyncFilter by delegating the work to the CometEngine. At this stage, the request has already been interrupted.

Specified by:
doFilter in interface AsyncFilter
Returns:
AsyncFilter.Result


Copyright © 2012 Oracle Corporation. All Rights Reserved.