Interface IZosmfResponse


public interface IZosmfResponse
Represents the response from a zOSMF server request
  • Method Summary

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

    • getTextContent

      String getTextContent() throws ZosmfException
      Return the text content from the zOSMF request as text

      Content-Type: text/plain

      Returns:
      the content
      Throws:
      ZosmfException
    • getJsonContent

      com.google.gson.JsonObject getJsonContent() throws ZosmfException
      Return the text content from the zOSMF request as a JSON object

      Content-Type: application/json

      Returns:
      the content
      Throws:
      ZosmfException
    • getJsonArrayContent

      com.google.gson.JsonArray getJsonArrayContent() throws ZosmfException
      Return the text content from the zOSMF request JSON array object

      Content-Type: application/json

      Returns:
      the content
      Throws:
      ZosmfException
    • getContent

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