Class OnapMrResponse

  • Direct Known Subclasses:
    OnapMrFetchResponse

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

      • OnapMrResponse

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

      • 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