bea.jolt.pool.servlet
Class ServletResult

java.lang.Object
  java.util.Dictionary
      java.util.Hashtable
          bea.jolt.pool.DataSet
              bea.jolt.pool.Result
                  bea.jolt.pool.servlet.ServletResult
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ServletResult
extends Result

This class provides methods to retrieve each field in a ServletResult object as a String.

See Also:
Serialized Form

Method Summary
 java.lang.String getStringValue(java.lang.String name, int index, java.lang.String defval)
          Gets the string value of a data element associated with a name and an index.
 java.lang.String getStringValue(java.lang.String name, java.lang.String defval)
          Gets the string value of a data element associated with a name.
 
Methods inherited from class bea.jolt.pool.Result
getApplicationCode
 
Methods inherited from class bea.jolt.pool.DataSet
getCount, getValue, getValue, setValue, setValue
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getStringValue

public java.lang.String getStringValue(java.lang.String name,
                                       int index,
                                       java.lang.String defval)
Gets the string value of a data element associated with a name and an index. For BEA Tuxedo char (byte), the data is converted to a decimal numeric String. For BEA Tuxedo CARRAY (octets), the data is converted to a String of hexadecimal digits.

Parameters:
name - Name of the data element
index - Index of the data element, starting from zero
defval - Default value to return if the data element does not exist
Returns:
String value of the data element or the default value
See Also:
DataSet.getValue(java.lang.String, int, java.lang.Object), DataSet.getValue(java.lang.String, java.lang.Object)

getStringValue

public java.lang.String getStringValue(java.lang.String name,
                                       java.lang.String defval)
Gets the string value of a data element associated with a name. This method is the same as calling getStringValue(name, 0, value).

Parameters:
name - Name of the data element
defval - Default value to return if the data element does not exist
Returns:
String value of the data element or the default value
See Also:
DataSet.getValue(java.lang.String, int, java.lang.Object), DataSet.getValue(java.lang.String, java.lang.Object)