WLResponse Class Reference
| Inherits from | NSObject |
| Declared in | WLResponse.h |
Overview
This class contains the result of a procedure invocation. IBM MobileFirst Platform passes this class as an argument to the
delegate methods of WLClient invokeProcedure methods.
Tasks
-
statusproperty -
errorproperty -
invocationResultproperty -
invocationContextproperty -
responseTextproperty -
headersproperty -
responseDataproperty -
userInfoDictproperty -
responseJSONproperty -
– getResponseJson
Properties
headers
Retrieves the headers from the response.
@property (nonatomic, strong) NSDictionary *headersDeclared In
WLResponse.hinvocationContext
Invocation context object passed when calling invokeProcedure.
@property (nonatomic, strong) NSObject *invocationContextDeclared In
WLResponse.hinvocationResult
Response data from the server.
@property (nonatomic, strong) WLProcedureInvocationResult *invocationResultDeclared In
WLResponse.hresponseData
Original response data from the server.
@property (readonly) NSData *responseDataDeclared In
WLResponse.hresponseJSON
Returns the value NSDictionary in case the response is a JSON response, otherwise it returns the value nil.
@property (readonly) NSDictionary *responseJSONDeclared In
WLResponse.hresponseText
Original response text from the server.
@property (nonatomic, strong) NSString *responseTextDeclared In
WLResponse.hInstance Methods
getResponseJson
Returns the value NSDictionary in case the response is a JSON response, otherwise it returns the value nil. (Deprecated: This method is deprecated. Use the responseJSON property instead.)
- (NSDictionary *)getResponseJsonParameters
- NSDictionary
Root of the JSON object
Declared In
WLResponse.h