public class PayloadMsg extends Msg
Constructor and Description |
---|
PayloadMsg()
Class constructor.
|
PayloadMsg(String protocol,
String vendor,
String version,
int type,
int connectionNumber)
Class constructor specifying various properties.
|
PayloadMsg(String protocol,
String vendor,
String version,
int type,
int connectionNumber,
byte[] bData)
Class constructor specifying various properties.
|
PayloadMsg(String protocol,
String vendor,
String version,
int type,
int connectionNumber,
byte[] bData,
int bDataLength)
Class constructor specifying various properties.
|
PayloadMsg(String protocol,
String vendor,
String version,
int type,
int connectionNumber,
String sData)
Class constructor specifying various properties.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Gets the (optional) binary data associated with this msg.
|
int |
getBytesLength()
Gets the length of the (optional) binary data associated with this msg.
|
int |
getConnectionNumber()
Gets the connection number associated with this msg.
|
String |
getString()
Gets the (optional) string data associated with this msg.
|
int |
getType()
Gets the type of information associated with this msg.
|
void |
setBytes(byte[] bData)
Sets the (optional) binary data associated with this msg.
|
void |
setConnectionNumber(int c)
Sets the connection number associated with this msg.
|
void |
setString(String sData)
Sets the (optional) string data associated with this msg.
|
void |
setType(int type)
Sets the type of information associated with this msg.
|
getProtocol, getTicket, getTimestamp, getVendor, getVersion, setProtocol, setTicket, setTimestamp, setVendor, setVersion
public PayloadMsg()
public PayloadMsg(String protocol, String vendor, String version, int type, int connectionNumber)
protocol
- protocol name (example: "HTTP")vendor
- vendor name (example: "IBM")version
- version string (example: "6.1.2.0")type
- integer reflecting the type of information associated
with this msgconnectionNumber
- connection number associated with this msgpublic PayloadMsg(String protocol, String vendor, String version, int type, int connectionNumber, byte[] bData)
protocol
- protocol name (example: "HTTP")vendor
- vendor name (example: "IBM")version
- version string (example: "6.1.2.0")type
- integer reflecting the type of information associated
with this msgconnectionNumber
- connection number associated with this msgbData
- binary data associated with this msgpublic PayloadMsg(String protocol, String vendor, String version, int type, int connectionNumber, byte[] bData, int bDataLength)
protocol
- protocol name (example: "HTTP")vendor
- vendor name (example: "IBM")version
- version string (example: "6.1.2.0")type
- integer reflecting the type of information associated
with this msgconnectionNumber
- connection number associated with this msgbData
- binary data associated with this msgbDataLength
- length of binary data associated with this msgpublic PayloadMsg(String protocol, String vendor, String version, int type, int connectionNumber, String sData)
protocol
- protocol name (example: "HTTP")vendor
- vendor name (example: "IBM")version
- version string (example: "6.1.2.0")type
- integer reflecting the type of information associated
with this msgconnectionNumber
- connection number associated with this msgsData
- String data associated with this msgpublic int getType()
public void setType(int type)
type
- integer reflecting the type of information associated
with this msgpublic int getConnectionNumber()
public void setConnectionNumber(int c)
c
- the connection numberpublic int getBytesLength()
public byte[] getBytes()
public void setBytes(byte[] bData)
bData
- the binary datapublic String getString()
public void setString(String sData)
sData
- the string data© Copyright IBM Corp. 2013. All rights reserved.