| 16 | private final ArrayList<BiFunction<IHttpRequestResponse, Boolean, ApiType>> apiTypeConstructors = new ArrayList<>(); |
| 17 | |
| 18 | public ApiScanner() { |
| 19 | this.apiTypeConstructors.add(ApiTypeActuator::newInstance); |
| 20 | this.apiTypeConstructors.add(ApiTypeSwagger::newInstance); |
| 21 | this.apiTypeConstructors.add(ApiTypeGraphQL::newInstance); |
| 22 | this.apiTypeConstructors.add(ApiTypeSoap::newInstance); |
| 23 | } |
| 24 | |
| 25 | public ArrayList<ApiType> detect(IHttpRequestResponse baseRequestResponse, boolean isPassive) { |
| 26 | ArrayList<ApiType> apiTypes = new ArrayList<>(); |