Package org.rhq.plugins.apache.util.HttpdAddressUtility

Examples of org.rhq.plugins.apache.util.HttpdAddressUtility.Address


            String resourceKey = createResourceKey(vhost.serverName, vhost.hosts);
            String resourceName = resourceKey;

            Configuration pluginConfiguration = context.getDefaultPluginConfiguration();

            Address address =
                serverComponent.getAddressUtility().getVirtualHostSampleAddress(tree, firstAddress, vhost.serverName,
                    false);
            if (address != null) {
                String scheme = address.scheme;
                String hostToPing = address.host;
                int portToPing = address.port;
                if (address.isPortWildcard() || !address.isPortDefined()) {
                    Address serverAddress =
                        serverComponent.getAddressUtility().getMainServerSampleAddress(tree, hostToPing, 0);
                    if (serverAddress != null) {
                        portToPing = serverAddress.port;
                    } else {
                        portToPing = Address.PORT_WILDCARD_VALUE;
                    }
                }
                if (address.isHostDefault() || address.isHostWildcard()) {
                    Address serverAddress =
                        serverComponent.getAddressUtility().getMainServerSampleAddress(tree, null, portToPing);

                    if (serverAddress != null) {
                        hostToPing = serverAddress.host;
                    } else {
View Full Code Here


     * @return
     *
     * @throws Exception
     */
    private static String getUrl(ApacheDirectiveTree serverConfig, String version) throws Exception {
        Address addr = HttpdAddressUtility.get(version).getMainServerSampleAddress(serverConfig, null, 0);
        return addr == null ? null : addr.toString();
    }
View Full Code Here

TOP

Related Classes of org.rhq.plugins.apache.util.HttpdAddressUtility.Address

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.