org.apache.http.conn
Class HttpHostConnectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.SocketException
                  extended by java.net.ConnectException
                      extended by org.apache.http.conn.HttpHostConnectException
All Implemented Interfaces:
Serializable

public class HttpHostConnectException
extends ConnectException

A ConnectException that specifies the HttpHost that was being connected to.

Since:
4.0
See Also:
Serialized Form

Constructor Summary
HttpHostConnectException(HttpHost host, ConnectException cause)
          Deprecated. (4.3) use HttpHostConnectException(java.io.IOException, org.apache.http.HttpHost, java.net.InetAddress...)
HttpHostConnectException(IOException cause, HttpHost host, InetAddress... remoteAddresses)
          Creates a HttpHostConnectException based on original IOException.
 
Method Summary
 HttpHost getHost()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpHostConnectException

@Deprecated
public HttpHostConnectException(HttpHost host,
                                           ConnectException cause)
Deprecated. (4.3) use HttpHostConnectException(java.io.IOException, org.apache.http.HttpHost, java.net.InetAddress...)


HttpHostConnectException

public HttpHostConnectException(IOException cause,
                                HttpHost host,
                                InetAddress... remoteAddresses)
Creates a HttpHostConnectException based on original IOException.

Since:
4.3
Method Detail

getHost

public HttpHost getHost()


Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.