Package zowe.client.sdk.rest
Class PutJsonZosmfRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZosmfRequest
-
- zowe.client.sdk.rest.PutJsonZosmfRequest
-
public class PutJsonZosmfRequest extends ZosmfRequest
Http put operation with Json content type- Version:
- 3.0
- Author:
- Frank Giordano
-
-
Field Summary
-
Fields inherited from class zowe.client.sdk.rest.ZosmfRequest
connection, headers, url, X_CSRF_ZOSMF_HEADER_KEY, X_CSRF_ZOSMF_HEADER_VALUE
-
-
Constructor Summary
Constructors Constructor Description PutJsonZosmfRequest(ZosConnection connection)
PutJsonZosmfRequest constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
executeRequest()
/** Perform the http rest requestvoid
setBody(Object body)
Set the body information for the http requestvoid
setStandardHeaders()
Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZosmfRequest
buildResponse, setCookie, setHeaders, setUrl
-
-
-
-
Constructor Detail
-
PutJsonZosmfRequest
public PutJsonZosmfRequest(ZosConnection connection)
PutJsonZosmfRequest constructor- Parameters:
connection
- connection information, see ZosConnection object
-
-
Method Detail
-
executeRequest
public Response executeRequest() throws ZosmfRequestException
/** Perform the http rest request- Specified by:
executeRequest
in classZosmfRequest
- Returns:
- Response object
- Throws:
ZosmfRequestException
- request error state
-
setBody
public void setBody(Object body)
Set the body information for the http request- Specified by:
setBody
in classZosmfRequest
- Parameters:
body
- String value
-
setStandardHeaders
public void setStandardHeaders()
Set the standard headers for the http request- Specified by:
setStandardHeaders
in classZosmfRequest
-
-