Examples of secureUrl()


Examples of com.google.appengine.api.images.ServingUrlOptions.secureUrl()

    @Test
    public void servingUrlWithSecureFlagTrue() throws Exception {
        assumeEnvironment(Environment.APPSPOT, Environment.CAPEDWARF);

        ServingUrlOptions servingUrlOptions = ServingUrlOptions.Builder.withBlobKey(blobKey);
        String url = imagesService.getServingUrl(servingUrlOptions.secureUrl(true));
        assertStartsWith("https://", url);

        url = imagesService.getServingUrl(servingUrlOptions.imageSize(32).crop(false).secureUrl(true));
        assertStartsWith("https://", url);
    }
View Full Code Here

Examples of com.google.appengine.api.images.ServingUrlOptions.secureUrl()

        ServingUrlOptions options = ServingUrlOptions.Builder.withBlobKey(blobKey);

        String url = imagesService.getServingUrl(options);
        assertStartsWith("http://", url);

        url = imagesService.getServingUrl(options.secureUrl(true));
        assertStartsWith("https://", url);
    }

    @Test
    public void deleteServingUrl() throws Exception {
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.