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