Class OnapMrResponse

java.lang.Object
io.continual.onap.services.mrCommon.OnapMrResponse
Direct Known Subclasses:
OnapMrFetchResponse

public class OnapMrResponse extends Object
A response from the ONAP Message Router HTTP API.
  • Constructor Details

    • OnapMrResponse

      public OnapMrResponse(int statusCode, String msg)
      Construct a base response
      Parameters:
      statusCode - the HTTP status code
      msg - the HTTP status message
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Is this response successful?
      Returns:
      true if the response status code is in success range
    • getStatusCode

      public int getStatusCode()
      Get the HTTP status code
      Returns:
      the HTTP status code
    • getStatusText

      public String getStatusText()
      Get the HTTP status text
      Returns:
      the HTTP status text