@Test public void testCreateHandlers() throws Exception { JFastCGIPlugin plugin = new JFastCGIPlugin(); plugin.setConfiguration(conf); Map<String, Map<String, String>> configMap = plugin.createConfigMap(conf); Map<String, FastCGIHandler> handlers = plugin.createHandlers(configMap); assertThat(handlers).isNotNull().hasSize(5); }
Map<String, FastCGIHandler> createHandlers(Map<String, Map<String, String>> configMap) { Map<String, FastCGIHandler> result = new HashMap<String, FastCGIHandler>(); for (String endpointName : configMap.keySet()) { result.put(endpointName, FastCGIHandlerFactory.create(configMap.get(endpointName))); } return result; }
JFastCGIPlugin extends PlayPlugin { Map<String, FastCGIHandler> createHandlers(Map<String, Map<String, String>> configMap) { Map<String, FastCGIHandler> result = new HashMap<String, FastCGIHandler>(); for (String endpointName : configMap.keySet()) { result.put(endpointName, FastCGIHandlerFactory.create(configMap.get(endpointName))); } return result; } }
JFastCGIPlugin extends PlayPlugin { Map<String, FastCGIHandler> createHandlers(Map<String, Map<String, String>> configMap) { Map<String, FastCGIHandler> result = new HashMap<String, FastCGIHandler>(); for (String endpointName : configMap.keySet()) { result.put(endpointName, FastCGIHandlerFactory.create(configMap.get(endpointName))); } return result; }  }
JFastCGIPlugin extends PlayPlugin { Map<String, FastCGIHandler> createHandlers(Map<String, Map<String, String>> configMap) { Map<String, FastCGIHandler> result = new HashMap<String, FastCGIHandler>(); for (String endpointName : configMap.keySet()) { result.put(endpointName, FastCGIHandlerFactory.create(configMap.get(endpointName))); } return result; }  @Override void onApplicationStart(); @Override void onApplicationStop(); void setConfiguration(Properties properties); }
JFastCGIPlugin extends PlayPlugin { Map<String, FastCGIHandler> createHandlers(Map<String, Map<String, String>> configMap) { Map<String, FastCGIHandler> result = new HashMap<String, FastCGIHandler>(); for (String endpointName : configMap.keySet()) { result.put(endpointName, FastCGIHandlerFactory.create(configMap.get(endpointName))); } return result; }  @Override void onApplicationStart(); @Override void onApplicationStop(); void setConfiguration(Properties properties);  }