| 23 | private final ArrayList<BiFunction<IHttpRequestResponse, Boolean, ApiType>> apiTypeConstructors = new ArrayList(); |
| 24 | |
| 25 | public ApiScanner() { |
| 26 | this.apiTypeConstructors.add(ApiTypeActuator::newInstance); |
| 27 | this.apiTypeConstructors.add(ApiTypeSwagger::newInstance); |
| 28 | this.apiTypeConstructors.add(ApiTypeGraphQL::newInstance); |
| 29 | this.apiTypeConstructors.add(ApiTypeSoap::newInstance); |
| 30 | this.apiTypeConstructors.add(ApiTypeRest::newInstance); |
| 31 | } |
| 32 | |
| 33 | public ArrayList<ApiType> detect(final IHttpRequestResponse baseRequestResponse, final boolean isPassive) { |
| 34 | ExecutorService executor = Executors.newFixedThreadPool(this.apiTypeConstructors.size()); |