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 Summary
Constructors Constructor Description OnapMrResponse(int statusCode, String msg)Construct a base response
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatusCode()Get the HTTP status codeStringgetStatusText()Get the HTTP status textbooleanisSuccess()Is this response successful?
-
-
-
Constructor Detail
-
OnapMrResponse
public OnapMrResponse(int statusCode, String msg)Construct a base response- Parameters:
statusCode- the HTTP status codemsg- 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
-
-