public int getSecurePort() {
        if (listenHTTPS) {
            ServerConnector connector;
            if (listenHTTP) {
                connector = (ServerConnector) server.getConnectors()[1];
            } else {
                connector = (ServerConnector) server.getConnectors()[0];
            }
            return connector.getLocalPort();
        }

        return -1;
    }
S3Proxy translates S3 HTTP operations into jclouds provider-agnostic
operations.  This allows applications using the S3 API to interface with any
provider that jclouds supports, e.g., EMC Atmos, Microsoft Azure,
OpenStack Swift.
src/main/java/org/gaul/s3proxy/S3Proxy.java