Class TextGetRequest


  • public class TextGetRequest
    extends ZoweRequest
    Http get operation with text content type
    Version:
    2.0
    Author:
    Frank Giordano
    • Constructor Detail

      • TextGetRequest

        public TextGetRequest​(ZosConnection connection)
        TextGetRequest constructor
        Parameters:
        connection - connection information, see ZosConnection object
    • Method Detail

      • executeRequest

        public Response executeRequest()
                                throws kong.unirest.UnirestException
        Perform the http rest request
        Specified by:
        executeRequest in class ZoweRequest
        Returns:
        Response object
        Throws:
        kong.unirest.UnirestException - processing request error
      • setBody

        public void setBody​(Object body)
                     throws kong.unirest.UnirestException
        Method to set the body information for the http request which is not used for this request.
        Specified by:
        setBody in class ZoweRequest
        Parameters:
        body - object value
        Throws:
        kong.unirest.UnirestException - error setting body
      • setStandardHeaders

        public void setStandardHeaders()
        Set the standard headers for the http request
        Specified by:
        setStandardHeaders in class ZoweRequest