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
-
status
property -
error
property -
invocationResult
property -
invocationContext
property -
responseText
property -
headers
property -
responseData
property -
userInfoDict
property -
responseJSON
property -
– getResponseJson
Properties
headers
Retrieves the headers from the response.
@property (nonatomic, strong) NSDictionary *headers
Declared In
WLResponse.h
invocationContext
Invocation context object passed when calling invokeProcedure
.
@property (nonatomic, strong) NSObject *invocationContext
Declared In
WLResponse.h
invocationResult
Response data from the server.
@property (nonatomic, strong) WLProcedureInvocationResult *invocationResult
Declared In
WLResponse.h
responseData
Original response data from the server.
@property (readonly) NSData *responseData
Declared In
WLResponse.h
responseJSON
Returns the value NSDictionary
in case the response is a JSON response, otherwise it returns the value nil.
@property (readonly) NSDictionary *responseJSON
Declared In
WLResponse.h
responseText
Original response text from the server.
@property (nonatomic, strong) NSString *responseText
Declared In
WLResponse.h
Instance 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 *)getResponseJson
Parameters
- NSDictionary
Root of the JSON object
Declared In
WLResponse.h