Class SendTso


  • public class SendTso
    extends Object
    Class to handle sending data to TSO
    Version:
    3.0
    Author:
    Frank Giordano
    • Constructor Detail

      • SendTso

        public SendTso​(ZosConnection connection)
        SendTso constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • SendTso

        public SendTso​(ZosConnection connection,
                       ZosmfRequest request)
        Alternative SendTso constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • getAllResponses

        public CollectedResponses getAllResponses​(ZosmfTsoResponse tso)
                                           throws ZosmfRequestException
        Collects responses from address space until it reaches prompt
        Parameters:
        tso - object from first Tso response from witch responses are needed, see ZosmfTsoResponse
        Returns:
        CollectedResponses response object, see CollectedResponses
        Throws:
        ZosmfRequestException - request error state
      • sendDataToTsoCollect

        public SendResponse sendDataToTsoCollect​(String servletKey,
                                                 String command)
                                          throws ZosmfRequestException
        API method to send data to already started TSO address space, but will read TSO data until a PROMPT is reached.
        Parameters:
        command - to send to the TSO address space.
        servletKey - returned from a successful start
        Returns:
        SendResponse object
        Throws:
        ZosmfRequestException - request error state
      • sendDataToTsoCommon

        public ZosmfTsoResponse sendDataToTsoCommon​(SendTsoParams commandParams)
                                             throws ZosmfRequestException
        API method to send data to already started TSO address space
        Parameters:
        commandParams - object with required parameters, see SendTsoParams object
        Returns:
        ZosmfTsoResponse object
        Throws:
        ZosmfRequestException - request error state