ProxyClient.ConnectResponse (HttpClient 3.1 API)
Keywords: org.apache.commons.httpclient.ProxyClient.ConnectResponse class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.httpclient
Class ProxyClient.ConnectResponse

    java.lang.Object
      org.apache.commons.httpclient.ProxyClient.ConnectResponse

Enclosing class:
  ProxyClient

    public static class ProxyClient.ConnectResponse

extends Object

Contains the method used to execute the connect along with the created socket.

Method Summary
`ConnectMethod` | `getConnectMethod()` Gets the method that was used to execute the connect.
`Socket` | `getSocket()` Gets the socket connected and authenticated (if appropriate) to the configured HTTP proxy, or `null` if a connection could not be made.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getConnectMethod

    public ConnectMethod getConnectMethod()

  Gets the method that was used to execute the connect. This method is useful for analyzing the proxy's response when a connect fails.

  Returns:
    the connectMethod.

### getSocket

    public Socket getSocket()

  Gets the socket connected and authenticated (if appropriate) to the configured HTTP proxy, or `null` if a connection could not be made. It is the responsibility of the user to close this socket when it is no longer needed.

  Returns:
    the socket.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.