org.eclipse.jetty.client
类 HttpDestination
java.lang.Object
org.eclipse.jetty.client.HttpDestination
- 所有已实现的接口:
- Dumpable
public class HttpDestination
- extends Object
- implements Dumpable
- 版本:
- $Revision: 879 $ $Date: 2009-09-11 16:13:28 +0200 (Fri, 11 Sep 2009) $
getHttpClient
public HttpClient getHttpClient()
getAddress
public Address getAddress()
isSecure
public boolean isSecure()
getHostHeader
public Buffer getHostHeader()
getMaxConnections
public int getMaxConnections()
setMaxConnections
public void setMaxConnections(int maxConnections)
getMaxQueueSize
public int getMaxQueueSize()
setMaxQueueSize
public void setMaxQueueSize(int maxQueueSize)
getConnections
public int getConnections()
getIdleConnections
public int getIdleConnections()
addAuthorization
public void addAuthorization(String pathSpec,
Authentication authorization)
addCookie
public void addCookie(HttpCookie cookie)
reserveConnection
public AbstractHttpConnection reserveConnection(long timeout)
throws IOException
- 抛出:
IOException
getIdleConnection
public AbstractHttpConnection getIdleConnection()
throws IOException
- 抛出:
IOException
startNewConnection
protected void startNewConnection()
onConnectionFailed
public void onConnectionFailed(Throwable throwable)
onException
public void onException(Throwable throwable)
onNewConnection
public void onNewConnection(AbstractHttpConnection connection)
throws IOException
- 抛出:
IOException
returnConnection
public void returnConnection(AbstractHttpConnection connection,
boolean close)
throws IOException
- 抛出:
IOException
returnIdleConnection
public void returnIdleConnection(AbstractHttpConnection connection)
send
public void send(HttpExchange ex)
throws IOException
- 抛出:
IOException
resend
public void resend(HttpExchange ex)
throws IOException
- 抛出:
IOException
doSend
protected void doSend(HttpExchange ex)
throws IOException
- 抛出:
IOException
exchangeExpired
protected void exchangeExpired(HttpExchange exchange)
send
protected void send(AbstractHttpConnection connection,
HttpExchange exchange)
throws IOException
- 抛出:
IOException
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
toDetailString
public String toDetailString()
setProxy
public void setProxy(Address proxy)
getProxy
public Address getProxy()
getProxyAuthentication
public Authentication getProxyAuthentication()
setProxyAuthentication
public void setProxyAuthentication(Authentication authentication)
isProxied
public boolean isProxied()
close
public void close()
throws IOException
- 抛出:
IOException
dump
public String dump()
- 指定者:
- 接口
Dumpable 中的 dump
dump
public void dump(Appendable out,
String indent)
throws IOException
- 指定者:
- 接口
Dumpable 中的 dump
- 抛出:
IOException
Copyright © 2013. All Rights Reserved.