com.ibm.cics.server

Class CWAHolder

  • java.lang.Object
    • com.ibm.cics.server.CWAHolder
  • All Implemented Interfaces:
    IHolder


    public class CWAHolder
    extends java.lang.Object
    implements IHolder

    This class holds an array of bytes that is a copy of the contents of the CWA. The actual data is an instance variable of type byte[] with the name value. This instance variable can be accessed using getters getValue() and getStringValue() and setter setValue(byte[])

    Since CICS TS version:
    1.3
    Since package version:
    1.0.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      CWAHolder()
      Constructs a CWAHolder without a value.
      CWAHolder(byte[] initialValue)
      Constructs a CWAHolder with an initial value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getStringValue()
      Returns a String derived from the data in the IHolder, assuming that the data is encoded in the LOCALCCSID.
      byte[] getValue()
      Returns the raw byte array from the IHolder
      void setValue(byte[] bytes)
      Allows the setting of the data value into the holder.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CWAHolder

        public CWAHolder()
        Constructs a CWAHolder without a value.
        Since CICS TS version:
        1.3
        Since package version:
        1.0.0
      • CWAHolder

        public CWAHolder(byte[] initialValue)
        Constructs a CWAHolder with an initial value.
        Parameters:
        initialValue - the initial value
        Since CICS TS version:
        1.3
        Since package version:
        1.0.0
    • Method Detail

      • getValue

        public byte[] getValue()
        Description copied from interface: IHolder
        Returns the raw byte array from the IHolder
        Specified by:
        getValue in interface IHolder
        Returns:
        - the raw byte value stored in the IHolder
        See Also:
        IHolder.getValue()
        Since CICS TS version:
        5.1
        Since package version:
        1.401.0
      • getStringValue

        public java.lang.String getStringValue()
        Description copied from interface: IHolder
        Returns a String derived from the data in the IHolder, assuming that the data is encoded in the LOCALCCSID. The behavior of this method when the bytes are not valid in the LOCALCCSID encoding is unspecified.
        Specified by:
        getStringValue in interface IHolder
        Returns:
        - a String representation of the byte-array in the CICS LOCALCCSID.
        See Also:
        IHolder.getStringValue()
        Since CICS TS version:
        5.1
        Since package version:
        1.401.0
      • setValue

        public void setValue(byte[] bytes)
        Allows the setting of the data value into the holder.
        Parameters:
        bytes - The payload of the record holder.
        Since CICS TS version:
        6.1
        Since package version:
        2.0.0