org.apache.cxf.transport.http_jetty.continuations
Class JettyContinuationWrapper

java.lang.Object
  extended by org.apache.cxf.transport.http_jetty.continuations.JettyContinuationWrapper
All Implemented Interfaces:
EventListener, org.apache.cxf.continuations.Continuation, org.eclipse.jetty.continuation.ContinuationListener

public class JettyContinuationWrapper
extends Object
implements org.apache.cxf.continuations.Continuation, org.eclipse.jetty.continuation.ContinuationListener


Constructor Summary
JettyContinuationWrapper(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse resp, org.apache.cxf.message.Message m)
           
 
Method Summary
protected  org.apache.cxf.message.Message getMessage()
           
 Object getObject()
           
 boolean isNew()
           
 boolean isPending()
           
 boolean isResumed()
           
 void onComplete(org.eclipse.jetty.continuation.Continuation cont)
           
 void onTimeout(org.eclipse.jetty.continuation.Continuation cont)
           
 void reset()
           
 void resume()
           
 void setObject(Object userObject)
           
 boolean suspend(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyContinuationWrapper

public JettyContinuationWrapper(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse resp,
                                org.apache.cxf.message.Message m)
Method Detail

getObject

public Object getObject()
Specified by:
getObject in interface org.apache.cxf.continuations.Continuation

setObject

public void setObject(Object userObject)
Specified by:
setObject in interface org.apache.cxf.continuations.Continuation

resume

public void resume()
Specified by:
resume in interface org.apache.cxf.continuations.Continuation

isNew

public boolean isNew()
Specified by:
isNew in interface org.apache.cxf.continuations.Continuation

isPending

public boolean isPending()
Specified by:
isPending in interface org.apache.cxf.continuations.Continuation

isResumed

public boolean isResumed()
Specified by:
isResumed in interface org.apache.cxf.continuations.Continuation

reset

public void reset()
Specified by:
reset in interface org.apache.cxf.continuations.Continuation

suspend

public boolean suspend(long timeout)
Specified by:
suspend in interface org.apache.cxf.continuations.Continuation

getMessage

protected org.apache.cxf.message.Message getMessage()

onComplete

public void onComplete(org.eclipse.jetty.continuation.Continuation cont)
Specified by:
onComplete in interface org.eclipse.jetty.continuation.ContinuationListener

onTimeout

public void onTimeout(org.eclipse.jetty.continuation.Continuation cont)
Specified by:
onTimeout in interface org.eclipse.jetty.continuation.ContinuationListener


Apache CXF