Package zowe.client.sdk.rest
Class StreamGetRequest
- java.lang.Object
-
- zowe.client.sdk.rest.ZoweRequest
-
- zowe.client.sdk.rest.StreamGetRequest
-
public class StreamGetRequest extends ZoweRequest
Http get stream operation with Json content type- Version:
- 1.0
-
-
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 StreamGetRequest(ZOSConnection connection, String url)StreamGetRequest constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseexecuteRequest()Execute the formulated http requestvoidsetHeaders(Map<String,String> headers)Set any headers needed for the http requestvoidsetRequest(String url)Set the following incoming url with a new http requestvoidsetStandardHeaders()Set the standard headers for the http request-
Methods inherited from class zowe.client.sdk.rest.ZoweRequest
executeJsonRequest, executeStreamRequest, executeTextRequest, requestType, setup
-
-
-
-
Constructor Detail
-
StreamGetRequest
public StreamGetRequest(ZOSConnection connection, String url) throws Exception
StreamGetRequest constructor.- Parameters:
connection- connection information, see ZOSConnection objecturl- rest url value- Throws:
Exception- error setting constructor variables
-
-
Method Detail
-
executeRequest
public Response executeRequest() throws Exception
Execute the formulated http request- Specified by:
executeRequestin classZoweRequest- Returns:
- Response value
- Throws:
Exception- error executing request
-
setStandardHeaders
public void setStandardHeaders()
Set the standard headers for the http request- Specified by:
setStandardHeadersin classZoweRequest
-
setHeaders
public void setHeaders(Map<String,String> headers)
Set any headers needed for the http request- Specified by:
setHeadersin classZoweRequest- Parameters:
headers- headers to add to the request
-
setRequest
public void setRequest(String url) throws Exception
Set the following incoming url with a new http request- Specified by:
setRequestin classZoweRequest- Parameters:
url- rest url end point- Throws:
Exception- error setting the http request
-
-