Package zowe.client.sdk.rest
Class StreamPutRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZoweRequest
-
- zowe.client.sdk.rest.StreamPutRequest
-
public class StreamPutRequest extends ZoweRequest
Http put stream operation with binary 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 StreamPutRequest(ZosConnection connection)ZoweRequest constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseexecuteRequest()Perform the http rest requestvoidsetBody(Object body)Set the body byte array value for requestvoidsetStandardHeaders()Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZoweRequest
getJsonResponse, setHeaders, setUrl
-
-
-
-
Constructor Detail
-
StreamPutRequest
public StreamPutRequest(ZosConnection connection)
ZoweRequest 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:
executeRequestin classZoweRequest- Returns:
- Response object
- Throws:
kong.unirest.UnirestException- processing request error
-
setBody
public void setBody(Object body)
Set the body byte array value for request- Specified by:
setBodyin classZoweRequest- Parameters:
body- byte array value
-
setStandardHeaders
public void setStandardHeaders()
Set the standard headers for the http request- Specified by:
setStandardHeadersin classZoweRequest
-
-