org.atmosphere.plugin.jaxrs
Class AtmosphereExecutionContext

java.lang.Object
  extended by org.atmosphere.plugin.jaxrs.AtmosphereExecutionContext
All Implemented Interfaces:
javax.ws.rs.core.ExecutionContext

public class AtmosphereExecutionContext
extends Object
implements javax.ws.rs.core.ExecutionContext


Constructor Summary
AtmosphereExecutionContext(AtmosphereResourceImpl r)
           
 
Method Summary
 void cancel()
           
 javax.ws.rs.core.Response getResponse()
           
 boolean isCancelled()
           
 boolean isDone()
           
 boolean isSuspended()
           
 void resume(Exception response)
           
 void resume(Object response)
           
 void setResponse(Object response)
           
 void setSuspendTimeout(long time, TimeUnit unit)
           
 void suspend()
           
 void suspend(long millis)
           
 void suspend(long time, TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosphereExecutionContext

public AtmosphereExecutionContext(AtmosphereResourceImpl r)
Method Detail

resume

public void resume(Object response)
            throws IllegalStateException
Specified by:
resume in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

resume

public void resume(Exception response)
            throws IllegalStateException
Specified by:
resume in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

suspend

public void suspend()
             throws IllegalStateException
Specified by:
suspend in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

suspend

public void suspend(long millis)
             throws IllegalStateException
Specified by:
suspend in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

suspend

public void suspend(long time,
                    TimeUnit unit)
             throws IllegalStateException
Specified by:
suspend in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

setSuspendTimeout

public void setSuspendTimeout(long time,
                              TimeUnit unit)
                       throws IllegalStateException
Specified by:
setSuspendTimeout in interface javax.ws.rs.core.ExecutionContext
Throws:
IllegalStateException

cancel

public void cancel()
Specified by:
cancel in interface javax.ws.rs.core.ExecutionContext

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface javax.ws.rs.core.ExecutionContext

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface javax.ws.rs.core.ExecutionContext

isDone

public boolean isDone()
Specified by:
isDone in interface javax.ws.rs.core.ExecutionContext

setResponse

public void setResponse(Object response)
Specified by:
setResponse in interface javax.ws.rs.core.ExecutionContext

getResponse

public javax.ws.rs.core.Response getResponse()
Specified by:
getResponse in interface javax.ws.rs.core.ExecutionContext


Copyright © 2012. All Rights Reserved.