Class GetTextZosmfRequest


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

      • GetTextZosmfRequest

        public GetTextZosmfRequest​(ZosConnection connection)
        GetTextZosmfRequest 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 ZosmfRequest
        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 ZosmfRequest
        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 ZosmfRequest