Interface IRseapiResponse


public interface IRseapiResponse
Represents the response from a RSE API server request
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the content from the RSE API request as an object
    com.google.gson.JsonArray
    Return the text content from the RSE API request JSON array object
    com.google.gson.JsonObject
    Return the text content from the RSE API request as a JSON object
    Return the URL for this RSE API request
    int
    Return the HTTP status code from the RSE API request
    Return the HTTP status code and status text from the RSE API request
    Return the text content from the RSE API request as text
  • Method Details

    • getTextContent

      String getTextContent() throws RseapiException
      Return the text content from the RSE API request as text

      Content-Type: text/plain

      Returns:
      the content
      Throws:
      RseapiException
    • getJsonContent

      com.google.gson.JsonObject getJsonContent() throws RseapiException
      Return the text content from the RSE API request as a JSON object

      Content-Type: application/json

      Returns:
      the content
      Throws:
      RseapiException
    • getJsonArrayContent

      com.google.gson.JsonArray getJsonArrayContent() throws RseapiException
      Return the text content from the RSE API request JSON array object

      Content-Type: application/json

      Returns:
      the content
      Throws:
      RseapiException
    • getContent

      Object getContent() throws RseapiException
      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