Package org.glassfish.admin.amx.intf.config.grizzly

Examples of org.glassfish.admin.amx.intf.config.grizzly.Protocol


        return (int) (long) getAdminListener().resolveLong("Port");
    }

    private String get_asadmin()
    {
        final Protocol protocol = networkConfig().getProtocols().getProtocol().get(ADMIN_LISTENER_NAME);
        return protocol.getHttp().resolveAttribute("DefaultVirtualServer");
    }
View Full Code Here


        return protocol.getHttp().resolveAttribute("DefaultVirtualServer");
    }

    public String getRESTBaseURL()
    {
        final Protocol protocol = networkConfig().getProtocols().getProtocol().get(ADMIN_LISTENER_NAME);
        final String scheme = protocol.resolveBoolean("SecurityEnabled") ? "https" : "http";
        final String host = "localhost";

        return scheme + "://" + host + ":" + getRESTPort() + "/" + get_asadmin() + "/";
    }
View Full Code Here

TOP

Related Classes of org.glassfish.admin.amx.intf.config.grizzly.Protocol

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.