Class ResponseEnvelope

java.lang.Object
io.github.dsheirer.rrapi.response.ResponseEnvelope

public class ResponseEnvelope extends Object
Base response envelope
  • Constructor Details

    • ResponseEnvelope

      public ResponseEnvelope()
      Constructs an instance
  • Method Details

    • getResponseBody

      public ResponseBody getResponseBody()
      Response body/payload
      Returns:
      body
    • setResponseBody

      public void setResponseBody(ResponseBody responseBody)
      Sets the response body
      Parameters:
      responseBody - to set
    • getEncodingStyle

      public String getEncodingStyle()
      Encoding style
      Returns:
      style
    • setEncodingStyle

      public void setEncodingStyle(String style)
      Sets the encoding style
      Parameters:
      style - to set
    • toXmlString

      public String toXmlString() throws com.fasterxml.jackson.core.JsonProcessingException
      XML as string
      Returns:
      string xml
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if there is an error