org.mortbay.jetty
Class Suspendable

java.lang.Object
  extended by org.mortbay.jetty.Suspendable
Direct Known Subclasses:
Request

public class Suspendable
extends Object


Field Summary
protected  HttpConnection _connection
           
protected  boolean _initial
           
protected  boolean _resumed
           
protected  int _state
           
protected  boolean _timeout
           
protected  long _timeoutMs
           
protected  Timeout.Task _timeoutTask
           
 
Constructor Summary
Suspendable(HttpConnection connection)
           
 
Method Summary
protected  void cancelTimeout()
           
 void complete()
           
protected  void expire()
           
 String getStatusString()
           
 long getTimeout()
           
 void handling()
           
 boolean isCompleting()
           
 boolean isInitial()
           
 boolean isResumed()
           
 boolean isSuspended()
           
 boolean isTimeout()
           
 void reset()
           
 void resume()
           
protected  void scheduleDispatch()
           
protected  void scheduleTimeout()
           
 boolean shouldComplete()
           
 boolean shouldHandleRequest()
           
 void suspend()
           
 void suspend(long timeoutMs)
           
 String toString()
           
 boolean unhandling()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_connection

protected HttpConnection _connection

_state

protected int _state

_initial

protected boolean _initial

_resumed

protected boolean _resumed

_timeout

protected boolean _timeout

_timeoutMs

protected long _timeoutMs

_timeoutTask

protected final Timeout.Task _timeoutTask
Constructor Detail

Suspendable

public Suspendable(HttpConnection connection)
Method Detail

getTimeout

public long getTimeout()

isInitial

public boolean isInitial()

isResumed

public boolean isResumed()

isSuspended

public boolean isSuspended()

isTimeout

public boolean isTimeout()

suspend

public void suspend()

toString

public String toString()
Overrides:
toString in class Object

getStatusString

public String getStatusString()

handling

public void handling()

suspend

public void suspend(long timeoutMs)

unhandling

public boolean unhandling()

resume

public void resume()

expire

protected void expire()

complete

public void complete()
              throws IOException
Throws:
IOException

reset

public void reset()

scheduleDispatch

protected void scheduleDispatch()

scheduleTimeout

protected void scheduleTimeout()

cancelTimeout

protected void cancelTimeout()

isCompleting

public boolean isCompleting()

shouldHandleRequest

public boolean shouldHandleRequest()

shouldComplete

public boolean shouldComplete()


Copyright © 2008 Mort Bay Consulting. All Rights Reserved.