return bundleURLs;
}
@Override
public void contextInitialized(final ServletContextEvent sce) {
final ConnectorServer _server = ConnectorServer.newInstance();
try {
_server.setPort(Integer.parseInt(
sce.getServletContext().getInitParameter("testconnectorserver.port")));
_server.setBundleURLs(getBundleURLs(sce.getServletContext()));
_server.setKeyHash(SecurityUtil.computeBase64SHA1Hash(
sce.getServletContext().getInitParameter("testconnectorserver.key").toCharArray()));
_server.start();
LOG.info("ConnId connector server listening on port " + _server.getPort());
} catch (Exception e) {
LOG.error("Could not start ConnId connector server", e);
}
sce.getServletContext().setAttribute(SERVER, _server);