Package zowe.client.sdk.rest
Class GetTextZosmfRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZosmfRequest
-
- zowe.client.sdk.rest.GetTextZosmfRequest
-
public class GetTextZosmfRequest extends ZosmfRequest
Http get operation with a text content type- Version:
- 5.0
- Author:
- Frank Giordano
-
-
Field Summary
-
Fields inherited from class zowe.client.sdk.rest.ZosmfRequest
connection, headers, token, url, X_CSRF_ZOSMF_HEADER_KEY, X_CSRF_ZOSMF_HEADER_VALUE
-
-
Constructor Summary
Constructors Constructor Description GetTextZosmfRequest(ZosConnection connection)GetTextZosmfRequest constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseexecuteRequest()Perform the http rest requestvoidsetBody(Object body)Method to set the body information for the http request which is not used for this request.voidsetStandardHeaders()Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZosmfRequest
buildResponse, getHeaders, getUrl, setHeaders, setUrl
-
-
-
-
Constructor Detail
-
GetTextZosmfRequest
public GetTextZosmfRequest(ZosConnection connection)
GetTextZosmfRequest constructor- Parameters:
connection- for connection information, see ZosConnection object
-
-
Method Detail
-
executeRequest
public Response executeRequest() throws ZosmfRequestException
Perform the http rest request- Specified by:
executeRequestin classZosmfRequest- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
setBody
public void setBody(Object body)
Method to set the body information for the http request which is not used for this request.- Specified by:
setBodyin classZosmfRequest- Parameters:
body- object value
-
setStandardHeaders
public void setStandardHeaders()
Set the standard headers for the http request- Specified by:
setStandardHeadersin classZosmfRequest
-
-