Package zowe.client.sdk.rest
Class TextPutRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZoweRequest
-
- zowe.client.sdk.rest.TextPutRequest
-
public class TextPutRequest extends ZoweRequest
Http put operation with text content type- Version:
- 1.0
- Author:
- Frank Giordano
-
-
Field Summary
-
Fields inherited from class zowe.client.sdk.rest.ZoweRequest
client, connection, httpResponse, localContext, X_CSRF_ZOSMF_HEADER_KEY, X_CSRF_ZOSMF_HEADER_VALUE
-
-
Constructor Summary
Constructors Constructor Description TextPutRequest(ZOSConnection connection)
TextPutRequest constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
executeRequest()
Execute the formulated http requestvoid
setHeaders(Map<String,String> headers)
Set any headers needed for the http requestvoid
setRequest(String url)
Initialize the http request object with an url valuevoid
setRequest(String url, String body)
Initialize the http request object with an url and body valuesvoid
setStandardHeaders()
Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZoweRequest
executeJsonRequest, executeStreamRequest, executeTextRequest, requestType, setup
-
-
-
-
Constructor Detail
-
TextPutRequest
public TextPutRequest(ZOSConnection connection)
TextPutRequest constructor.- Parameters:
connection
- connection information, see ZOSConnection object
-
-
Method Detail
-
executeRequest
public Response executeRequest() throws Exception
Execute the formulated http request- Specified by:
executeRequest
in classZoweRequest
- Returns:
- Response value
- Throws:
Exception
- error executing request
-
setStandardHeaders
public void setStandardHeaders()
Set the standard headers for the http request- Specified by:
setStandardHeaders
in classZoweRequest
-
setHeaders
public void setHeaders(Map<String,String> headers)
Set any headers needed for the http request- Specified by:
setHeaders
in classZoweRequest
- Parameters:
headers
- headers to add to the request
-
setRequest
public void setRequest(String url) throws Exception
Initialize the http request object with an url value- Specified by:
setRequest
in classZoweRequest
- Parameters:
url
- rest url end point- Throws:
Exception
- error setting the http request
-
setRequest
public void setRequest(String url, String body) throws Exception
Initialize the http request object with an url and body values- Specified by:
setRequest
in classZoweRequest
- Parameters:
url
- rest url end pointbody
- data to be sent with request- Throws:
Exception
- error setting the http request
-
-