org.apache.jmeter.protocol.tcp.sampler
Class TCPClientImpl
java.lang.Object
org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient
org.apache.jmeter.protocol.tcp.sampler.TCPClientImpl
- All Implemented Interfaces:
- TCPClient
public class TCPClientImpl
- extends AbstractTCPClient
Sample TCPClient implementation.
Reads data until the defined EOL byte is reached.
If there is no EOL byte defined, then reads until
the end of the stream is reached.
The EOL byte is defined by the property "tcp.eolByte".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCPClientImpl
public TCPClientImpl()
write
public void write(OutputStream os,
String s)
throws IOException
-
- Parameters:
os
- -
OutputStream for sockets
- -
String to write
- Throws:
IOException
write
public void write(OutputStream os,
InputStream is)
throws IOException
-
- Parameters:
os
- -
OutputStream for socketis
- -
InputStream to be written to Socket
- Throws:
IOException
read
public String read(InputStream is)
throws ReadException
- Reads data until the defined EOL byte is reached.
If there is no EOL byte defined, then reads until
the end of the stream is reached.
- Parameters:
is
- -
InputStream for socket
- Returns:
- String read from socket
- Throws:
ReadException
- exception that can contain partial response (Response until error occured)
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.