+

Search Tips | Advanced Search


WLResponse Class Reference

Inherits from NSObject
Declared in WLResponse.h

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
                        	
                        
                        	
                        		


                        Properties


                        error

                        error in case of fail response

                          @property (nonatomic) NSError *error
                          
                              
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          	
                          


                          Declared In

                          WLResponse.h


                          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


                                          status

                                          Retrieves the HTTP status from the response.

                                            @property (nonatomic) NSInteger status
                                            
                                                
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            	
                                            


                                            Declared In

                                            WLResponse.h


                                            userInfoDict

                                            user info

                                              @property (nonatomic, strong) NSDictionary *userInfoDict
                                              
                                                  
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              	
                                              


                                              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


                                                  © Copyright IBM Corp. 2017