Examples of WebContainer


Examples of com.sun.enterprise.config.serverbeans.WebContainer

    public SessionManager getInstanceSessionManager() {
        if (configBean == null) {
            return null;
        }
       
        WebContainer webContainerBean
            = configBean.getWebContainer();
        if (webContainerBean == null) {
            return null;
        }
       
        SessionConfig sessionConfigBean = webContainerBean.getSessionConfig();
        if (sessionConfigBean == null) {
            return null;
        }
       
        return sessionConfigBean.getSessionManager();
View Full Code Here

Examples of com.sun.enterprise.web.WebContainer

     *Does the work to start Java Web Start services for an app client.
     *@param the appclientOrigin for which to begin JWS services
     */
    private void startJWSServices(AppclientContentOrigin origin) {
       
        WebContainer container = WebContainer.getInstance();
        if (container != null) { // Make sure that webcontainer is up.

            /*
             *Ask the web container to route requests for the app client's context-root to
             *our ad hoc servlet using the appropriate target path for this origin.
             */
            String targetPathString = origin.getTargetPath();
            WebPath targetPath = new WebPath(targetPathString);
            JWSAdHocServletInfo info = new JWSAdHocServletInfo(targetPath.path(), targetPath.contextRoot());

            String virtualContextRoot = origin.getVirtualPath();
            WebPath virtualPath = new WebPath(virtualContextRoot);
            _logger.info("Registering ad hoc servlet: " + virtualPath);
            container.registerAdHocPath(virtualPath.path(),
                                        virtualPath.contextRoot(),
                                        origin.getTopLevelRegistrationName(),
                                        info);
            origin.adhocPathRegistered();
        }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

            WebManager[] managers = PortletManager.getCurrentServer(actionRequest).getWebManagers();
            if (managers != null) {
                WebManager manager = managers[0]//todo: handle multiple
                WebContainer[] containers = (WebContainer[]) manager.getContainers();
                if (containers != null) {
                    WebContainer container = containers[0]//todo: handle multiple
                    String server = getWebServerType(container.getClass());
                    if (actionRequest.getParameter("stats") != null) {
                        Boolean stats = actionRequest.getParameter("stats").equals("true") ? Boolean.TRUE : Boolean.FALSE;
                        if(server.equals(WEB_SERVER_JETTY)) {
                            setProperty(container, "statsOn", stats);
                        }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

            WebManager[] managers = PortletManager.getCurrentServer(renderRequest).getWebManagers();
            if (managers != null) {
                WebManager manager = managers[0]//todo: handle multiple
                WebContainer[] containers = (WebContainer[]) manager.getContainers();
                if (containers != null) {
                    WebContainer container = containers[0]//todo: handle multiple
                    if(container.isStatisticsProvider()) {
                        boolean populateStats = false;
                        renderRequest.setAttribute("statsSupported", Boolean.TRUE)// indicate that statistics are supported for this container

                        if (container instanceof LazyStatisticsProvider) {
                            renderRequest.setAttribute("statsLazy", Boolean.TRUE);   // indicate that enable/disable should be shown for this container
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

                WebManager manager = managers[i];
                AbstractName managerName = PortletManager.getNameFor(renderRequest, manager);
                WebContainer[] containers = (WebContainer[]) manager.getContainers();
                if (containers != null) {
                    for (int j = 0; j < containers.length; j++) {
                        WebContainer container = containers[j];
                        AbstractName containerName = PortletManager.getNameFor(renderRequest, container);
                        String combined = managerName+"%"+containerName;
                        if(containers.length == 1) {
                            products.put(manager.getProductName(), combined);
                        } else {
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

        String mode = actionRequest.getParameter(PARM_MODE);
        String managerURI = actionRequest.getParameter(PARM_MANAGER_URI);
        String containerURI = actionRequest.getParameter(PARM_CONTAINER_URI);
        if(managerURI != null) actionResponse.setRenderParameter(PARM_MANAGER_URI, managerURI);
        if(containerURI != null) actionResponse.setRenderParameter(PARM_CONTAINER_URI, containerURI);
        WebContainer webContainer  = null;
        String server = null;
        if(containerURI != null) {
            webContainer = PortletManager.getWebContainer(actionRequest, new AbstractName(URI.create(containerURI)));
            server = getWebServerType(webContainer.getClass());
        } else {
            server = "unknown";
        }
        actionResponse.setRenderParameter(PARM_SERVER, server);
        if(mode.equals("new")) {
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

            String managerURI = renderRequest.getParameter(PARM_MANAGER_URI);
            String containerURI = renderRequest.getParameter(PARM_CONTAINER_URI);
            if(managerURI != null) renderRequest.setAttribute(PARM_MANAGER_URI, managerURI);
            if(containerURI != null) renderRequest.setAttribute(PARM_CONTAINER_URI, containerURI);

            WebContainer container = PortletManager.getWebContainer(renderRequest, new AbstractName(URI.create(containerURI)));
            String server = getWebServerType(container.getClass());
            renderRequest.setAttribute(PARM_SERVER, server);

            if(mode.equals("new")) {
                String connectorType = renderRequest.getParameter(PARM_CONNECTOR_TYPE);
                WebManager webManager = PortletManager.getWebManager(renderRequest, new AbstractName(URI.create(managerURI)));
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

            AbstractName webManagerName = PortletManager.getNameFor(renderRequest, manager);
           
            WebContainer[] containers = (WebContainer[]) manager.getContainers();
            for (int j = 0; j < containers.length; j++) {
                List<ConnectorInfo> beans = new ArrayList<ConnectorInfo>();
                WebContainer container = containers[j];
                AbstractName containerName = PortletManager.getNameFor(renderRequest, container);
                String id;
                if(containers.length == 1) {
                    id = manager.getProductName();
                } else {
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

   
    // get the special keystore properties from the request and set them on the connector
    // TODO: need a more generic way to handle this
    private void setKeystoreProperties(PortletRequest request, AbstractName connectorName) throws PortletException {
        String containerURI = request.getParameter(PARM_CONTAINER_URI);
        WebContainer container = PortletManager.getWebContainer(request, new AbstractName(URI.create(containerURI)));
        String server = getWebServerType(container.getClass());
        NetworkConnector connector = PortletManager.getNetworkConnector(request, connectorName);

        // return if not a secure connector
        if (!(connector instanceof SecureConnector)) {
            return;
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebContainer

        if(managerURI != null) actionResponse.setRenderParameter("managerURI", managerURI);
        if(containerURI != null) actionResponse.setRenderParameter("containerURI", containerURI);

        String server;
        if(containerURI != null) {
            WebContainer container = PortletManager.getWebContainer(actionRequest, new AbstractName(URI.create(containerURI)));
            server = getWebServerType(container.getClass());
        } else {
            server = "unknown";
        }
        actionResponse.setRenderParameter("server", server);
        if(mode.equals("new")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.