public class HTTPConnection
extends java.lang.Object
HTTPConnectionPool
Modifier and Type | Method and Description |
---|---|
java.io.BufferedInputStream |
getBufferedInputStream()
Get the buffered input stream of the established connection.
|
java.io.BufferedOutputStream |
getBufferedOutputStream()
Get the buffered output stream of the established connection.
|
long |
getConnectTimestamp()
Get the time stamp when the connection was established.
|
long |
getId()
Get the unique, internal connection id.
|
java.lang.String |
getNegotiatedSSLVersion()
Get the SSL version which was negotiated with the HTTPS server.
|
java.lang.String |
getProtocol()
Get the protocol, as passed by the constructor.
|
int |
getReuseCount()
Get how many times the connection has reused.
|
java.lang.String |
getServerHost()
Get the server host.
|
int |
getServerPort()
Get the server port.
|
long |
getSSLHandshakeTime()
Get the SSL handshake time to the server (after the TCP/IP connection was established).
|
byte[] |
getSSLSessionId()
Get the SSL session id.
|
long |
getTCPConnectTime()
Get the TCP/IP connect time for opening the network connection to the server.
|
boolean |
isInUse()
Get if this connection is 'in use' or 'is free'.
|
public java.lang.String getProtocol()
public java.lang.String getServerHost()
public int getServerPort()
public long getId()
public java.io.BufferedInputStream getBufferedInputStream() throws java.io.IOException
java.io.IOException
- if somewhat failspublic java.io.BufferedOutputStream getBufferedOutputStream() throws java.io.IOException
java.io.IOException
- if somewhat failspublic long getConnectTimestamp()
public long getTCPConnectTime()
public long getSSLHandshakeTime()
public java.lang.String getNegotiatedSSLVersion()
public byte[] getSSLSessionId()
public boolean isInUse()
public int getReuseCount()