Package zowe.client.sdk.zostso
Class SendTso
- java.lang.Object
-
- zowe.client.sdk.zostso.SendTso
-
public class SendTso extends Object
Class to handle sending data to TSO- Version:
- 1.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description SendTso(ZOSConnection connection)SendTso constructorSendTso(ZOSConnection connection, ZoweRequest request)Alternative SendTso constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectedResponsesgetAllResponses(ZosmfTsoResponse tso)Collects responses from address space until it reaches promptSendResponsesendDataToTSOCollect(String servletKey, String command)API method to send data to already started TSO address space, but will read TSO data until a PROMPT is reached.ZosmfTsoResponsesendDataToTSOCommon(SendTsoParams commandParams)API method to send data to already started TSO address space
-
-
-
Constructor Detail
-
SendTso
public SendTso(ZOSConnection connection)
SendTso constructor- Parameters:
connection- connection information, see ZOSConnection object
-
SendTso
public SendTso(ZOSConnection connection, ZoweRequest request) throws Exception
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 objectrequest- any compatible ZoweRequest Interface type object- Throws:
Exception- processing error
-
-
Method Detail
-
sendDataToTSOCollect
public SendResponse sendDataToTSOCollect(String servletKey, String command) throws Exception
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:
- response object, see ISendResponse
- Throws:
Exception- error executing command
-
sendDataToTSOCommon
public ZosmfTsoResponse sendDataToTSOCommon(SendTsoParams commandParams) throws Exception
API method to send data to already started TSO address space- Parameters:
commandParams- object with required parameters, see SendTsoParams object- Returns:
- response object, see ZosmfTsoResponse
- Throws:
Exception- error executing command
-
getAllResponses
public CollectedResponses getAllResponses(ZosmfTsoResponse tso) throws Exception
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:
Exception- error executing command
-
-