@Test public void testProcessIO() throws Exception { System.out.println("processIO"); SampleResult res = new SampleResult(); res.sampleStart(); byte[] result = instance.processIO(res); assertEquals("", new String(result)); }
@Override protected byte[] processIO(SampleResult res) throws Exception { SocketChannel sock = getSocketChannel(); if (!getRequestData().isEmpty()) { ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); sock.write(sendBuf); } sendFile(getFileToSend(), sock); if (log.isDebugEnabled()) { log.debug("Sent request"); } return readResponse(sock, res); }
HTTPRawSampler extends AbstractIPSampler { @Override protected byte[] processIO(SampleResult res) throws Exception { SocketChannel sock = getSocketChannel(); if (!getRequestData().isEmpty()) { ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); sock.write(sendBuf); } sendFile(getFileToSend(), sock); if (log.isDebugEnabled()) { log.debug("Sent request"); } return readResponse(sock, res); } }
HTTPRawSampler extends AbstractIPSampler { @Override protected byte[] processIO(SampleResult res) throws Exception { SocketChannel sock = getSocketChannel(); if (!getRequestData().isEmpty()) { ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); sock.write(sendBuf); } sendFile(getFileToSend(), sock); if (log.isDebugEnabled()) { log.debug("Sent request"); } return readResponse(sock, res); } HTTPRawSampler(); }
HTTPRawSampler extends AbstractIPSampler { @Override protected byte[] processIO(SampleResult res) throws Exception { SocketChannel sock = getSocketChannel(); if (!getRequestData().isEmpty()) { ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); sock.write(sendBuf); } sendFile(getFileToSend(), sock); if (log.isDebugEnabled()) { log.debug("Sent request"); } return readResponse(sock, res); } 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 byte[] processIO(SampleResult res) throws Exception { SocketChannel sock = getSocketChannel(); if (!getRequestData().isEmpty()) { ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); sock.write(sendBuf); } sendFile(getFileToSend(), sock); if (log.isDebugEnabled()) { log.debug("Sent request"); } return readResponse(sock, res); } 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();  }