Package org.identityconnectors.framework.server

Examples of org.identityconnectors.framework.server.ConnectorServer


        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);
View Full Code Here


        sce.getServletContext().setAttribute(SERVER, _server);
    }

    @Override
    public void contextDestroyed(final ServletContextEvent sce) {
        final ConnectorServer _server = (ConnectorServer) sce.getServletContext().getAttribute(SERVER);
        if (_server != null && _server.isStarted()) {
            _server.stop();
        }
        ThreadClassLoaderManager.clearInstance();
    }
View Full Code Here

        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);
View Full Code Here

        sce.getServletContext().setAttribute(SERVER, _server);
    }

    @Override
    public void contextDestroyed(final ServletContextEvent sce) {
        final ConnectorServer _server = (ConnectorServer) sce.getServletContext().getAttribute(SERVER);
        if (_server != null && _server.isStarted()) {
            _server.stop();
        }
        ThreadClassLoaderManager.clearInstance();
    }
View Full Code Here

TOP

Related Classes of org.identityconnectors.framework.server.ConnectorServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.