Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.base;
 
 import java.net.Proxy;
 import java.net.URL;
 
A special HttpConnection for use on Google App Engine. In order to activate this feature, set 'http.GoogleAppEngine = true' in the SDK config file.
	private static final Logger log = LogManager.getLogger(GoogleAppEngineHttpConnection.class);
	public void setupClientSSL(String certPathString certKey)
		if (certPath != null || certKey != null) {
			.warn("The PayPal SDK cannot be used with client SSL on Google App Engine; configure the SDK to use a PayPal API Signature instead");
		}
	}
			HttpConfiguration clientConfigurationthrows IOException {
		this. = clientConfiguration;
		URL url = new URL(this..getEndPointUrl());
		// Google App Engine does not support the
		// javax.net.ssl.HttpsURLConnection class.
		// However, one can use use URL.openConnection() with a https:// URL and
		// it will
		// return an HttpURLConnection that is capable of retrieving HTTPS data.
		// see
		// https://groups.google.com/forum/?fromgroups#!topic/google-appengine-java/ZEskGLwyE_0
		// Google App Engine does not require any proxy settings so we can skip
		// that configuration entirely.
		// Other Google issues that can be starred to add better support:
		// http://code.google.com/p/googleappengine/issues/detail?id=1036
	}
New to GrepCode? Check out our FAQ X