org.apache.jmeter.protocol.tcp.sampler

Class TCPClientDecorator

Implemented Interfaces:
TCPClient
Known Direct Subclasses:
LengthPrefixedBinaryTCPClientImpl

public abstract class TCPClientDecorator
extends AbstractTCPClient

Field Summary

protected TCPClient
tcpClient

Fields inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

eolByte, useEolByte

Constructor Summary

TCPClientDecorator(TCPClient tcpClient)

Method Summary

static int
byteArrayToInt(byte[] b)
Convert byte array to int.
static byte[]
intToByteArray(int value, int len)
Convert int to byte array.

Methods inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

getEolByte, setEolByte, setupTest, teardownTest

Field Details

tcpClient

protected final TCPClient tcpClient

Constructor Details

TCPClientDecorator

public TCPClientDecorator(TCPClient tcpClient)

Method Details

byteArrayToInt

public static int byteArrayToInt(byte[] b)
Convert byte array to int.
Parameters:
b - - Byte array to be converted
Returns:
Integer value of input byte array

intToByteArray

public static byte[] intToByteArray(int value,
                                    int len)
Convert int to byte array.
Parameters:
value - - int to be converted
len - - length of required byte array
Returns:
Byte array representation of input value

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.