public class ZapHttpConnection
extends org.apache.commons.httpclient.HttpConnection
HttpConnection
that exposes its socket and avoids closing.Constructor and Description |
---|
ZapHttpConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
Creates a new HTTP connection for the given host configuration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeSocketAndStreams()
Avoid closing in- & output stream as that would close the underlying socket also.
|
Socket |
getSocket()
Returns the socket of this connection object.
|
assertNotOpen, assertOpen, close, closeIfStale, flushRequestOutputStream, getHost, getHttpConnectionManager, getLastResponseInputStream, getLocalAddress, getParams, getPort, getProtocol, getProxyHost, getProxyPort, getRequestOutputStream, getResponseInputStream, getSendBufferSize, getSoTimeout, getVirtualHost, isLocked, isOpen, isProxied, isResponseAvailable, isResponseAvailable, isSecure, isStale, isStaleCheckingEnabled, isTransparent, open, print, print, printLine, printLine, printLine, readLine, readLine, releaseConnection, setConnectionTimeout, setHost, setHttpConnectionManager, setLastResponseInputStream, setLocalAddress, setLocked, setParams, setPort, setProtocol, setProxyHost, setProxyPort, setSendBufferSize, setSocketTimeout, setSoTimeout, setStaleCheckingEnabled, setTunnelRequested, setVirtualHost, shutdownOutput, tunnelCreated, write, write, writeLine, writeLine
public ZapHttpConnection(org.apache.commons.httpclient.HostConfiguration hostConfiguration)
hostConfiguration
- the host/proxy/protocol to usepublic Socket getSocket()
getSocket
in class org.apache.commons.httpclient.HttpConnection
protected void closeSocketAndStreams()
closeSocketAndStreams
in class org.apache.commons.httpclient.HttpConnection