@Test public void testGetSocketTimeout() throws Exception { Assert.assertEquals(Timeout.DISABLED, conn.getSocketTimeout()); Mockito.when(socket.getSoTimeout()).thenReturn(345); conn.bind(socket); Assert.assertEquals(Timeout.ofMilliseconds(345), conn.getSocketTimeout()); }
@Override public Timeout getSocketTimeout() { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { return Timeout.ofMilliseconds(socketHolder.getSocket().getSoTimeout()); } catch (final SocketException ignore) { } } return Timeout.DISABLED; }
BHttpConnectionBase implements BHttpConnection { @Override public Timeout getSocketTimeout() { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { return Timeout.ofMilliseconds(socketHolder.getSocket().getSoTimeout()); } catch (final SocketException ignore) { } } return Timeout.DISABLED; } }
BHttpConnectionBase implements BHttpConnection { @Override public Timeout getSocketTimeout() { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { return Timeout.ofMilliseconds(socketHolder.getSocket().getSoTimeout()); } catch (final SocketException ignore) { } } return Timeout.DISABLED; } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); }
BHttpConnectionBase implements BHttpConnection { @Override public Timeout getSocketTimeout() { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { return Timeout.ofMilliseconds(socketHolder.getSocket().getSoTimeout()); } catch (final SocketException ignore) { } } return Timeout.DISABLED; } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); @Override boolean isOpen(); @Override ProtocolVersion getProtocolVersion(); @Override SocketAddress getRemoteAddress(); @Override SocketAddress getLocalAddress(); @Override void setSocketTimeout(final Timeout timeout); @Override Timeout getSocketTimeout(); @Override void close(final CloseMode closeMode); @Override void close(); @Override boolean isDataAvailable(final Timeout timeout); @Override boolean isStale(); @Override void flush(); @Override SSLSession getSSLSession(); @Override EndpointDetails getEndpointDetails(); @Override String toString(); }
BHttpConnectionBase implements BHttpConnection { @Override public Timeout getSocketTimeout() { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { return Timeout.ofMilliseconds(socketHolder.getSocket().getSoTimeout()); } catch (final SocketException ignore) { } } return Timeout.DISABLED; } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); @Override boolean isOpen(); @Override ProtocolVersion getProtocolVersion(); @Override SocketAddress getRemoteAddress(); @Override SocketAddress getLocalAddress(); @Override void setSocketTimeout(final Timeout timeout); @Override Timeout getSocketTimeout(); @Override void close(final CloseMode closeMode); @Override void close(); @Override boolean isDataAvailable(final Timeout timeout); @Override boolean isStale(); @Override void flush(); @Override SSLSession getSSLSession(); @Override EndpointDetails getEndpointDetails(); @Override String toString();  }