public static boolean setDefaultCustomResponse ( String pathValue , String requestType , String customData ) { try { JSONObject profile = getDefaultProfile ( ) ; String profileName = profile . getString ( "name" ) ; PathValueClient client = new PathValueClient ( profileName , false ) ; return client . setCustomResponse ( pathValue , requestType , customData ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return false ; }
Sets a custom response on an endpoint using default profile and client