(IHttpRequestResponse baseRequestResponse, boolean isPassive)
| 23 | } |
| 24 | |
| 25 | public ArrayList<ApiType> detect(IHttpRequestResponse baseRequestResponse, boolean isPassive) { |
| 26 | ArrayList<ApiType> apiTypes = new ArrayList<>(); |
| 27 | for (BiFunction<IHttpRequestResponse, Boolean, ApiType> apiTypeConstructor : apiTypeConstructors) { |
| 28 | try { |
| 29 | ApiType apiType = apiTypeConstructor.apply(baseRequestResponse, isPassive); |
| 30 | if (apiType.isFingerprintMatch()) { |
| 31 | apiTypes.add(apiType); |
| 32 | } |
| 33 | } catch (Exception e) { |
| 34 | BurpExtender.getStderr().println(CommonUtils.exceptionToString(e)); |
| 35 | } |
| 36 | } |
| 37 | return apiTypes; |
| 38 | } |
| 39 | } |
no test coverage detected