Class OnapMrResponse
java.lang.Object
io.continual.onap.services.mrCommon.OnapMrResponse
- Direct Known Subclasses:
OnapMrFetchResponse
A response from the ONAP Message Router HTTP API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the HTTP status codeGet the HTTP status textbooleanIs this response successful?
-
Constructor Details
-
OnapMrResponse
Construct a base response- Parameters:
statusCode- the HTTP status codemsg- 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
Get the HTTP status text- Returns:
- the HTTP status text
-