public boolean setMethodArguments ( String pathName , String methodName , Integer ordinal , Object ... arguments ) { try { BasicNameValuePair [ ] params = new BasicNameValuePair [ arguments . length + 2 ] ; int x = 0 ; for ( Object argument : arguments ) { params [ x ] = new BasicNameValuePair ( "arguments[]" , argument . toString ( ) ) ; x ++ ; } params [ x ] = new BasicNameValuePair ( "profileIdentifier" , this . _profileName ) ; params [ x + 1 ] = new BasicNameValuePair ( "ordinal" , ordinal . toString ( ) ) ; JSONObject response = new JSONObject ( doPost ( BASE_PATH + uriEncode ( pathName ) + "/" + methodName , params ) ) ; return true ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return false ; }
Set the method arguments for an enabled method override