ORAResponse Class Reference

Public Member Functions

  ORAResponse (final int responseCode, final String message, final String body)
  ORAResponse (int mResponseCode, Exception exception, String mBody, String requestTAG)
int  getResponseCode ()
String  getMessage ()
String  getBody ()
Exception  getException ()
String  getRequestTAG ()

Detailed Description

This is the central class to construct a response object.

Constructor & Destructor Documentation

◆ ORAResponse() [1/2]

ORAResponse ( final int  responseCode,
final String  message,
final String  body 
)

Constructor

Parameters
responseCode response code
message response message
body response body

◆ ORAResponse() [2/2]

ORAResponse ( int  mResponseCode,
Exception  exception,
String  mBody,
String  requestTAG 
)

Constructor

Parameters
mResponseCode response code
exception response message
mBody response body
requestTAG tag

Member Function Documentation

◆ getBody()

String getBody ( )
Returns
Returns response body

◆ getException()

Exception getException ( )
Returns
Returns exception. Otherwise returns NULL

◆ getMessage()

String getMessage ( )
Returns
Returns response message

◆ getRequestTAG()

String getRequestTAG ( )
Returns
Returns response tag if corresponding request has the tag. NUll otherwise

◆ getResponseCode()

int getResponseCode ( )
Returns
Returns http response code of corresponding request or error code
The documentation for this class was generated from the following file:
  • ORAResponse.java