Package zowe.client.sdk.rest
Class TextGetRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZoweRequest
-
- zowe.client.sdk.rest.TextGetRequest
-
public class TextGetRequest extends ZoweRequest
Http get operation with text content type- Version:
- 2.0
- Author:
- Frank Giordano
-
-
Field Summary
-
Fields inherited from class zowe.client.sdk.rest.ZoweRequest
connection, headers, url, X_CSRF_ZOSMF_HEADER_KEY, X_CSRF_ZOSMF_HEADER_VALUE
-
-
Constructor Summary
Constructors Constructor Description TextGetRequest(ZosConnection connection)
TextGetRequest constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
executeRequest()
Perform the http rest requestvoid
setBody(Object body)
Method to set the body information for the http request which is not used for this request.void
setStandardHeaders()
Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZoweRequest
getJsonResponse, setHeaders, setUrl
-
-
-
-
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 classZoweRequest
- 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 classZoweRequest
- 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 classZoweRequest
-
-