Package dev.galasa.zosmf
Interface IZosmfResponse
public interface IZosmfResponse
Represents the response from a zOSMF server request
-
Method Summary
Modifier and TypeMethodDescriptionReturn the content from the zOSMF request as an objectcom.google.gson.JsonArray
Return the text content from the zOSMF request JSON array objectcom.google.gson.JsonObject
Return the text content from the zOSMF request as a JSON objectReturn the URL for this zOSMF requestint
Return the HTTP status code from the zOSMF requestReturn the HTTP status code and status text from the zOSMF requestReturn the text content from the zOSMF request as text
-
Method Details
-
getTextContent
Return the text content from the zOSMF request as textContent-Type: text/plain
- Returns:
- the content
- Throws:
ZosmfException
-
getJsonContent
Return the text content from the zOSMF request as a JSON objectContent-Type: application/json
- Returns:
- the content
- Throws:
ZosmfException
-
getJsonArrayContent
Return the text content from the zOSMF request JSON array objectContent-Type: application/json
- Returns:
- the content
- Throws:
ZosmfException
-
getContent
Return the content from the zOSMF request as an object- Returns:
- the content
- Throws:
ZosmfException
-
getStatusCode
int getStatusCode()Return the HTTP status code from the zOSMF request- Returns:
- the HTTP code
-
getStatusLine
String getStatusLine()Return the HTTP status code and status text from the zOSMF request- Returns:
-
getRequestUrl
URL getRequestUrl()Return the URL for this zOSMF request- Returns:
- the request URL
-