@Test public void testGetChannel() throws Exception { System.out.println("getChannel"); AbstractSelectableChannel result = instance.getChannel(); assertNotNull(result); }
@Override protected AbstractSelectableChannel getChannel() throws IOException { int t = getTimeoutAsInt(); if (t > 0) { SocketChannelWithTimeouts res = (SocketChannelWithTimeouts) SocketChannelWithTimeouts.open(); res.setConnectTimeout(t); res.setReadTimeout(t); return res; } else { return SocketChannel.open(); } }
HTTPRawSampler extends AbstractIPSampler { @Override protected AbstractSelectableChannel getChannel() throws IOException { int t = getTimeoutAsInt(); if (t > 0) { SocketChannelWithTimeouts res = (SocketChannelWithTimeouts) SocketChannelWithTimeouts.open(); res.setConnectTimeout(t); res.setReadTimeout(t); return res; } else { return SocketChannel.open(); } } }
HTTPRawSampler extends AbstractIPSampler { @Override protected AbstractSelectableChannel getChannel() throws IOException { int t = getTimeoutAsInt(); if (t > 0) { SocketChannelWithTimeouts res = (SocketChannelWithTimeouts) SocketChannelWithTimeouts.open(); res.setConnectTimeout(t); res.setReadTimeout(t); return res; } else { return SocketChannel.open(); } } HTTPRawSampler(); }
HTTPRawSampler extends AbstractIPSampler { @Override protected AbstractSelectableChannel getChannel() throws IOException { int t = getTimeoutAsInt(); if (t > 0) { SocketChannelWithTimeouts res = (SocketChannelWithTimeouts) SocketChannelWithTimeouts.open(); res.setConnectTimeout(t); res.setReadTimeout(t); return res; } else { return SocketChannel.open(); } } HTTPRawSampler(); @Override SampleResult sample(Entry entry); boolean isUseKeepAlive(); void setUseKeepAlive(boolean selected); boolean isParseResult(); void setParseResult(boolean selected); String getFileToSend(); void setFileToSend(String text); @Override boolean interrupt(); }
HTTPRawSampler extends AbstractIPSampler { @Override protected AbstractSelectableChannel getChannel() throws IOException { int t = getTimeoutAsInt(); if (t > 0) { SocketChannelWithTimeouts res = (SocketChannelWithTimeouts) SocketChannelWithTimeouts.open(); res.setConnectTimeout(t); res.setReadTimeout(t); return res; } else { return SocketChannel.open(); } } HTTPRawSampler(); @Override SampleResult sample(Entry entry); boolean isUseKeepAlive(); void setUseKeepAlive(boolean selected); boolean isParseResult(); void setParseResult(boolean selected); String getFileToSend(); void setFileToSend(String text); @Override boolean interrupt();  }