IBM Branch Transformation Toolkit Javadoc

com.ibm.connector2.sna.lu62.host
Class Lu62Message

java.lang.Object
  extended bycom.ibm.connector2.sna.lu62.host.Lu62Message

public class Lu62Message
extends java.lang.Object

The Lu62Message class represents a Lu62 message with message characteristics.


Field Summary
 java.lang.String dataReceived
           
 boolean dataSent
           
 char[] fieldBuffer
           
 java.lang.String fieldConversationStatus
           
 int fieldDataReceivedType
           
 int fieldReceivedLength
           
 int fieldRequestedLength
           
 boolean fieldRequestToSendReceived
           
 int fieldStatusReceived
           
 int receiveRC
           
(package private)  int[] segmentsLengths
           
 boolean timeout
           
 
Constructor Summary
Lu62Message()
           
 
Method Summary
 void addBuffer(java.lang.String aData)
          Adds the aData to the existing message data.
 void finalize()
          Clear all the atributes when no reference to this instance.
 java.lang.String getBuffer()
          Gets the buffer property (java.lang.String) value.
 java.lang.String getConversationStatus()
          Gets the conversationStatus property (int) value.
 java.lang.String getDataReceived()
          Returns the message received from the communications channel or null if no message is received.
 int getDataReceivedType()
          Gets the dataReceived property (int) value.
 boolean getDataSent()
          Returns true if data has been sent .
 int getReceivedLength()
          Gets the receivedLength property (int) value.
 int getReceiveRC()
          Returns the return code produced in the receive.
 int getRequestedLength()
          Gets the requestedLength property (int) value.
 boolean getRequestToSendReceived()
          Gets the requestToSendReceived property (boolean) value.
 int[] getSegmentsLengths()
          Gets the segmentsLengths property int [] value.
 int getStatusReceived()
          Gets the statusReceived property (int) value.
 boolean getTimeout()
          Returns true if the timeout has been reached in receive.
 void newBuffer(int length)
          Creates a new char[] for attribute buffer with the specified length.
(package private) static Lu62Message newLu62Message(Lu62Message aMessage)
          Creates a new instance of Lu62Message from the received message.
 void newSegmentsLengths(int length)
          Creates a new char[] for attribute segmentsLengths with the specified length.
 void setBuffer(java.lang.String buffer)
          Sets the buffer property (java.lang.String) value.
 void setConversationStatus(java.lang.String aStatus)
          Sets the conversationStatus property (int) value.
 void setDataReceived(java.lang.String aData)
          Actualizes the message received from the communications channel.
 void setDataReceivedType(int dataReceived)
          Sets the dataReceivedType property (int) value.
 void setDataSent(boolean aDataSent)
          Actualizes if data has been sent.
 void setReceivedLength(int receivedLength)
          Sets the receivedLength property (int) value.
 void setReceiveRC(int aRC)
          Actualizes the return code produced in the receive.
 void setRequestedLength(int requestedLength)
          Sets the requestedLength property (int) value.
 void setRequestToSendReceived(boolean requestToSendReceived)
          Sets the requestToSendReceived property (boolean) value.
 void setStatusReceived(int statusReceived)
          Sets the statusReceived property (int) value.
 void setTimeout(boolean aTimeout)
          Actualizes if the timeout has been reached in receive.
 java.lang.String toString()
          Converts Lu62Message to string.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldRequestedLength

public int fieldRequestedLength

fieldReceivedLength

public int fieldReceivedLength

fieldDataReceivedType

public int fieldDataReceivedType

fieldStatusReceived

public int fieldStatusReceived

fieldRequestToSendReceived

public boolean fieldRequestToSendReceived

fieldBuffer

public char[] fieldBuffer

fieldConversationStatus

public java.lang.String fieldConversationStatus

segmentsLengths

int[] segmentsLengths

dataReceived

public java.lang.String dataReceived

receiveRC

public int receiveRC

timeout

public boolean timeout

dataSent

public boolean dataSent
Constructor Detail

Lu62Message

public Lu62Message()
Method Detail

addBuffer

public void addBuffer(java.lang.String aData)

Adds the aData to the existing message data.

Parameters:
aData - java.lang.String

finalize

public void finalize()

Clear all the atributes when no reference to this instance.


getBuffer

public java.lang.String getBuffer()

Gets the buffer property (java.lang.String) value.

Returns:
The buffer property value.
See Also:
setBuffer(java.lang.String)

getConversationStatus

public java.lang.String getConversationStatus()

Gets the conversationStatus property (int) value.

Returns:
The statusReceived property value.
See Also:
setConversationStatus(java.lang.String)

getDataReceivedType

public int getDataReceivedType()

Gets the dataReceived property (int) value.

Returns:
The dataReceived property value.
See Also:
setDataReceived(java.lang.String)

getReceivedLength

public int getReceivedLength()

Gets the receivedLength property (int) value.

Returns:
The receivedLength property value.
See Also:
setReceivedLength(int)

getRequestedLength

public int getRequestedLength()

Gets the requestedLength property (int) value.

Returns:
The requestedLength property value.
See Also:
setRequestedLength(int)

getRequestToSendReceived

public boolean getRequestToSendReceived()

Gets the requestToSendReceived property (boolean) value.

Returns:
The requestToSendReceived property value.
See Also:
setRequestToSendReceived(boolean)

getSegmentsLengths

public int[] getSegmentsLengths()

Gets the segmentsLengths property int [] value.

Returns:
The segmentsLengths property value.

getStatusReceived

public int getStatusReceived()

Gets the statusReceived property (int) value.

Returns:
The statusReceived property value.
See Also:
setStatusReceived(int)

newBuffer

public void newBuffer(int length)
Creates a new char[] for attribute buffer with the specified length.

Parameters:
length - int

newLu62Message

static Lu62Message newLu62Message(Lu62Message aMessage)

Creates a new instance of Lu62Message from the received message.


newSegmentsLengths

public void newSegmentsLengths(int length)
Creates a new char[] for attribute segmentsLengths with the specified length.

Parameters:
length - int

setBuffer

public void setBuffer(java.lang.String buffer)

Sets the buffer property (java.lang.String) value.

Parameters:
buffer - The new value for the property.
See Also:
getBuffer()

setConversationStatus

public void setConversationStatus(java.lang.String aStatus)

Sets the conversationStatus property (int) value.

Parameters:
aStatus - The new value for the property.
See Also:
getConversationStatus()

setDataReceivedType

public void setDataReceivedType(int dataReceived)

Sets the dataReceivedType property (int) value.

Parameters:
dataReceived - The new value for the property.
See Also:
getDataReceived()

setReceivedLength

public void setReceivedLength(int receivedLength)

Sets the receivedLength property (int) value.

Parameters:
receivedLength - The new value for the property.
See Also:
getReceivedLength()

setRequestedLength

public void setRequestedLength(int requestedLength)

Sets the requestedLength property (int) value.

Parameters:
requestedLength - The new value for the property.
See Also:
getRequestedLength()

setRequestToSendReceived

public void setRequestToSendReceived(boolean requestToSendReceived)

Sets the requestToSendReceived property (boolean) value.

Parameters:
requestToSendReceived - The new value for the property.
See Also:
getRequestToSendReceived()

setStatusReceived

public void setStatusReceived(int statusReceived)

Sets the statusReceived property (int) value.

Parameters:
statusReceived - The new value for the property.
See Also:
getStatusReceived()

toString

public java.lang.String toString()

Converts Lu62Message to string.


getDataReceived

public java.lang.String getDataReceived()
Returns the message received from the communications channel or null if no message is received.


getDataSent

public boolean getDataSent()
Returns true if data has been sent .


getReceiveRC

public int getReceiveRC()
Returns the return code produced in the receive.


getTimeout

public boolean getTimeout()
Returns true if the timeout has been reached in receive.


setDataReceived

public void setDataReceived(java.lang.String aData)
Actualizes the message received from the communications channel.

Parameters:
aData - String

setDataSent

public void setDataSent(boolean aDataSent)
Actualizes if data has been sent.

Parameters:
aDataSent - boolean

setReceiveRC

public void setReceiveRC(int aRC)
Actualizes the return code produced in the receive.

Parameters:
aRC - int

setTimeout

public void setTimeout(boolean aTimeout)
Actualizes if the timeout has been reached in receive.

Parameters:
aTimeout - boolean

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005