org.eclipse.jetty.client
Class HttpDestination
java.lang.Object
org.eclipse.jetty.client.HttpDestination
- All Implemented Interfaces:
- Dumpable
public class HttpDestination
- extends java.lang.Object
- implements Dumpable
- Version:
- $Revision: 879 $ $Date: 2009-09-11 16:13:28 +0200 (Fri, 11 Sep 2009) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.String pathSpec,
Authentication authorization)
addCookie
public void addCookie(HttpCookie cookie)
reserveConnection
public AbstractHttpConnection reserveConnection(long timeout)
throws java.io.IOException
- Throws:
java.io.IOException
getIdleConnection
public AbstractHttpConnection getIdleConnection()
throws java.io.IOException
- Throws:
java.io.IOException
startNewConnection
protected void startNewConnection()
onConnectionFailed
public void onConnectionFailed(java.lang.Throwable throwable)
onException
public void onException(java.lang.Throwable throwable)
onNewConnection
public void onNewConnection(AbstractHttpConnection connection)
throws java.io.IOException
- Throws:
java.io.IOException
returnConnection
public void returnConnection(AbstractHttpConnection connection,
boolean close)
throws java.io.IOException
- Throws:
java.io.IOException
returnIdleConnection
public void returnIdleConnection(AbstractHttpConnection connection)
send
public void send(HttpExchange ex)
throws java.io.IOException
- Throws:
java.io.IOException
resend
public void resend(HttpExchange ex)
throws java.io.IOException
- Throws:
java.io.IOException
doSend
protected void doSend(HttpExchange ex)
throws java.io.IOException
- Throws:
java.io.IOException
exchangeExpired
protected void exchangeExpired(HttpExchange exchange)
send
protected void send(AbstractHttpConnection connection,
HttpExchange exchange)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toDetailString
public java.lang.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 java.io.IOException
- Throws:
java.io.IOException
dump
public java.lang.String dump()
- Specified by:
dump
in interface Dumpable
- See Also:
Dumpable.dump()
dump
public void dump(java.lang.Appendable out,
java.lang.String indent)
throws java.io.IOException
- Specified by:
dump
in interface Dumpable
- Throws:
java.io.IOException
- See Also:
Dumpable.dump(java.lang.Appendable, java.lang.String)
Copyright © 2012. All Rights Reserved.