org.jboss.narayana.blacktie.jatmibroker.jab
Class JABMessage

java.lang.Object
  extended by org.jboss.narayana.blacktie.jatmibroker.jab.JABMessage
All Implemented Interfaces:
Message

public class JABMessage
extends Object
implements Message

The JABRequest class wraps the output parameter to the service.

See Also:
JABServiceInvoker

Method Summary
 byte getByte(String key)
          Get the content of the buffer
 byte[] getByteArray(String key)
          Get the content of the buffer for this key.
 byte[][] getByteArrayArray(String key)
          Get the content of the buffer for this key.
 double getDouble(String key)
          Get the content of the buffer at this location.
 double[] getDoubleArray(String key)
          Get the content of the buffer for this key.
 float getFloat(String key)
          Get the content of the buffer at this location.
 float[] getFloatArray(String key)
          Get the content of the buffer for this key.
 int getInt(String key)
          Get the content of the buffer at this location.
 int[] getIntArray(String key)
          Get the content of the buffer for this key.
 long getLong(String key)
          Get the content of the buffer at this location.
 long[] getLongArray(String key)
          Get the content of the buffer for this key.
 Map<String,Class> getMessageFormat()
           
 short getShort(String key)
          Get the content of the buffer at this location.
 short[] getShortArray(String key)
          Get the content of the buffer for this key.
 void setByte(String key, byte data)
          Set part of the content to send.
 void setByteArray(String key, byte[] data)
          Set part of the content to send.
 void setByteArrayArray(String key, byte[][] data)
          Set part of the content to send.
 void setDouble(String key, double data)
          Set part of the content to send.
 void setDoubleArray(String key, double[] data)
          Set part of the content to send.
 void setFloat(String key, float data)
          Set part of the content to send.
 void setFloatArray(String key, float[] data)
          Set part of the content to send.
 void setInt(String key, int data)
          Set part of the content to send.
 void setIntArray(String key, int[] data)
          Set part of the content to send.
 void setLong(String key, long data)
          Set part of the content to send.
 void setLongArray(String key, long[] data)
          Set part of the content to send.
 void setShort(String key, short data)
          Set part of the content to send.
 void setShortArray(String key, short[] data)
          Set part of the content to send.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByte

public byte getByte(String key)
             throws JABException
Get the content of the buffer

Specified by:
getByte in interface Message
Parameters:
key - The content of the buffer to set
Returns:
The content of the buffer
Throws:
JABException - In case the content is malformed

getByteArray

public byte[] getByteArray(String key)
                    throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getByteArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getByteArrayArray

public byte[][] getByteArrayArray(String key)
                           throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getByteArrayArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getDouble

public double getDouble(String key)
                 throws JABException
Description copied from interface: Message
Get the content of the buffer at this location.

Specified by:
getDouble in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getDoubleArray

public double[] getDoubleArray(String key)
                        throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getDoubleArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getFloat

public float getFloat(String key)
               throws JABException
Description copied from interface: Message
Get the content of the buffer at this location.

Specified by:
getFloat in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getFloatArray

public float[] getFloatArray(String key)
                      throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getFloatArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getInt

public int getInt(String key)
           throws JABException
Description copied from interface: Message
Get the content of the buffer at this location.

Specified by:
getInt in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getIntArray

public int[] getIntArray(String key)
                  throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getIntArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getShort

public short getShort(String key)
               throws JABException
Description copied from interface: Message
Get the content of the buffer at this location.

Specified by:
getShort in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getShortArray

public short[] getShortArray(String key)
                      throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getShortArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

setByte

public void setByte(String key,
                    byte data)
             throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setByte in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setByteArray

public void setByteArray(String key,
                         byte[] data)
                  throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setByteArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setByteArrayArray

public void setByteArrayArray(String key,
                              byte[][] data)
                       throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setByteArrayArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setDouble

public void setDouble(String key,
                      double data)
               throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setDouble in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setDoubleArray

public void setDoubleArray(String key,
                           double[] data)
                    throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setDoubleArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setFloat

public void setFloat(String key,
                     float data)
              throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setFloat in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setFloatArray

public void setFloatArray(String key,
                          float[] data)
                   throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setFloatArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setInt

public void setInt(String key,
                   int data)
            throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setInt in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setIntArray

public void setIntArray(String key,
                        int[] data)
                 throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setIntArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setShort

public void setShort(String key,
                     short data)
              throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setShort in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setShortArray

public void setShortArray(String key,
                          short[] data)
                   throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setShortArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

getMessageFormat

public Map<String,Class> getMessageFormat()

getLong

public long getLong(String key)
             throws JABException
Description copied from interface: Message
Get the content of the buffer at this location.

Specified by:
getLong in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

getLongArray

public long[] getLongArray(String key)
                    throws JABException
Description copied from interface: Message
Get the content of the buffer for this key.

Specified by:
getLongArray in interface Message
Returns:
The content of the buffer
Throws:
JABException - If the key does not exist or is not of requested type

setLong

public void setLong(String key,
                    long data)
             throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types

Specified by:
setLong in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist

setLongArray

public void setLongArray(String key,
                         long[] data)
                  throws JABException
Description copied from interface: Message
Set part of the content to send. For non-array data types,

Specified by:
setLongArray in interface Message
Parameters:
key - The key of the data
data - The data to send
Throws:
JABException - In case the key is not of required type/does not exist


Copyright © 2011. All Rights Reserved.