private JSONArray getApplicablePathNames ( String requestUrl , Integer requestType ) throws Exception { RequestInformation requestInfo = requestInformation . get ( ) ; List < EndpointOverride > applicablePaths ; JSONArray pathNames = new JSONArray ( ) ; // Get all paths that match the request applicablePaths = PathOverrideService . getInstance ( ) . getSelectedPaths ( Constants . OVERRIDE_TYPE_REQUEST , requestInfo . client , requestInfo . profile , requestUrl + "?" + requestInfo . originalRequestInfo . getQueryString ( ) , requestType , true ) ; // Extract just the path name from each path for ( EndpointOverride path : applicablePaths ) { JSONObject pathName = new JSONObject ( ) ; pathName . put ( "name" , path . getPathName ( ) ) ; pathNames . put ( pathName ) ; } return pathNames ; }
Get the names of the paths that would apply to the request