Examples of WebConnector


Examples of org.apache.geronimo.management.geronimo.WebConnector

                    }
                    ContainerStatus result = new ContainerStatus(id, webManagerName, containerName);

                    WebConnector[] connectors = PortletManager.getWebConnectorsForContainer(renderRequest, webManagerName, containerName);
                    for (int k = 0; k < connectors.length; k++) {
                        WebConnector connector = connectors[k];
                        ConnectorInfo info = new ConnectorInfo();
                            String objectName = ((GeronimoManagedBean)connector).getObjectName();
                            info.setObjectName(objectName);
                            info.setDescription(PortletManager.getGBeanDescription(renderRequest, objectName));
                            try {
                                ObjectName realName = ObjectName.getInstance(objectName);
                                info.setDisplayName(realName.getKeyProperty("name"));
                            } catch (MalformedObjectNameException e) {
                                log.error("Bad object name for web connector", e);
                                info.setDisplayName(info.getDescription());
                            }
                            info.setState(((GeronimoManagedBean)connector).getState());
                            info.setPort(connector.getPort());
                        try {
                            info.setProtocol(connector.getProtocol());
                        } catch (IllegalStateException e) {
                            info.setProtocol("unknown");
                        }
                        beans.add(info);
                    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.WebConnector

    public URL getURLFor() {
        WebConnector[] connectors = (WebConnector[]) container.getConnectors();
        Map map = new HashMap();
        for (int i = 0; i < connectors.length; i++) {
            WebConnector connector = connectors[i];
            map.put(connector.getProtocol(), connector.getConnectUrl());
        }
        String urlPrefix;
        if((urlPrefix = (String) map.get("HTTP")) == null) {
            if((urlPrefix = (String) map.get("HTTPS")) == null) {
                urlPrefix = (String) map.get("AJP");
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.