Class ZoweRequest

    • Field Detail

      • X_CSRF_ZOSMF_HEADER_KEY

        public static final String X_CSRF_ZOSMF_HEADER_KEY
      • X_CSRF_ZOSMF_HEADER_VALUE

        public static final String X_CSRF_ZOSMF_HEADER_VALUE
    • Constructor Detail

      • ZoweRequest

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

      • getJsonResponse

        protected static Response getJsonResponse​(kong.unirest.HttpResponse<kong.unirest.JsonNode> reply)
        Retrieve the http response information
        Parameters:
        reply - json http response object
        Returns:
        Response object
      • executeRequest

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

        public abstract void setBody​(Object body)
                              throws kong.unirest.UnirestException
        Set the body information for the http request
        Parameters:
        body - object value
        Throws:
        kong.unirest.UnirestException - error setting body
      • setHeaders

        public void setHeaders​(Map<String,​String> headers)
        Set any headers needed for the http request
        Parameters:
        headers - headers to add to the request
      • setStandardHeaders

        public abstract void setStandardHeaders()
        Set the standard headers for the http request