org.eclipse.jetty.client
类 AbstractHttpConnection

java.lang.Object
  继承者 org.eclipse.jetty.io.AbstractConnection
      继承者 org.eclipse.jetty.client.AbstractHttpConnection
所有已实现的接口:
Connection, Dumpable
直接已知子类:
AsyncHttpConnection, BlockingHttpConnection

public abstract class AbstractHttpConnection
extends AbstractConnection
implements Dumpable

版本:
$Revision: 879 $ $Date: 2009-09-11 16:13:28 +0200 (Fri, 11 Sep 2009) $

字段摘要
protected  Buffer _connectionHeader
           
protected  HttpDestination _destination
           
protected  HttpExchange _exchange
           
protected  HttpGenerator _generator
           
protected  boolean _http11
           
protected  HttpParser _parser
           
protected  HttpExchange _pipeline
           
protected  boolean _reserved
           
protected  int _status
           
 
从类 org.eclipse.jetty.io.AbstractConnection 继承的字段
_endp
 
方法摘要
 boolean cancelIdleTimeout()
           
 void close()
           
protected  void commitRequest()
           
 String dump()
           
 void dump(Appendable out, String indent)
           
protected  void exchangeExpired(HttpExchange exchange)
           
 HttpDestination getDestination()
           
abstract  Connection handle()
          Handle the connection.
 boolean isIdle()
           
 boolean isReserved()
           
 boolean isSuspended()
          The semantic of this method is to return true to indicate interest in further reads, or false otherwise, but it is misnamed and should be really called isReadInterested().
 void onClose()
          Called after the connection is closed
protected  void reset()
           
 boolean send(HttpExchange ex)
           
 void setDestination(HttpDestination destination)
           
 void setIdleTimeout()
           
 void setReserved(boolean reserved)
           
 String toDetailString()
           
 String toString()
           
 
从类 org.eclipse.jetty.io.AbstractConnection 继承的方法
getEndPoint, getTimeStamp, onIdleExpired
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

_destination

protected HttpDestination _destination

_generator

protected HttpGenerator _generator

_parser

protected HttpParser _parser

_http11

protected boolean _http11

_status

protected int _status

_connectionHeader

protected Buffer _connectionHeader

_reserved

protected boolean _reserved

_exchange

protected volatile HttpExchange _exchange

_pipeline

protected HttpExchange _pipeline
方法详细信息

setReserved

public void setReserved(boolean reserved)

isReserved

public boolean isReserved()

getDestination

public HttpDestination getDestination()

setDestination

public void setDestination(HttpDestination destination)

send

public boolean send(HttpExchange ex)
             throws IOException
抛出:
IOException

handle

public abstract Connection handle()
                           throws IOException
从接口 Connection 复制的描述
Handle the connection.

指定者:
接口 Connection 中的 handle
返回:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
抛出:
IOException - if the handling of I/O operations fail

isIdle

public boolean isIdle()
指定者:
接口 Connection 中的 isIdle
返回:
whether this connection is idle, that is not parsing and not generating
另请参见:
Connection.onIdleExpired(long)

isSuspended

public boolean isSuspended()
从接口 Connection 复制的描述

The semantic of this method is to return true to indicate interest in further reads, or false otherwise, but it is misnamed and should be really called isReadInterested().

指定者:
接口 Connection 中的 isSuspended
返回:
true to indicate interest in further reads, false otherwise

onClose

public void onClose()
从接口 Connection 复制的描述
Called after the connection is closed

指定者:
接口 Connection 中的 onClose

commitRequest

protected void commitRequest()
                      throws IOException
抛出:
IOException

reset

protected void reset()
              throws IOException
抛出:
IOException

toString

public String toString()
覆盖:
AbstractConnection 中的 toString

toDetailString

public String toDetailString()

close

public void close()
           throws IOException
抛出:
IOException

setIdleTimeout

public void setIdleTimeout()

cancelIdleTimeout

public boolean cancelIdleTimeout()

exchangeExpired

protected void exchangeExpired(HttpExchange exchange)

dump

public String dump()
指定者:
接口 Dumpable 中的 dump
另请参见:
Dumpable.dump()

dump

public void dump(Appendable out,
                 String indent)
          throws IOException
指定者:
接口 Dumpable 中的 dump
抛出:
IOException
另请参见:
Dumpable.dump(java.lang.Appendable, java.lang.String)


Copyright © 2013. All Rights Reserved.