Back to project page owncloud-gallery.
The source code is released under:
GNU General Public License
If you think the Android project owncloud-gallery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package library; /*from w w w . j a v a2s. com*/ import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; public class OwncloudHelper { public static Future<VerifyHostnameResult> VerifyHostname(String Hostname) { Callable<VerifyHostnameResult> call = new VerifyHostnameCallable( Hostname, Properties.getAppInt("http.timeout"), false); ExecutorService executorService = Executors.newSingleThreadExecutor(); return executorService.submit(call); } public static Future<VerifyHostnameResult> VerifyHostname(String Hostname, boolean acceptAllCertificates) { Callable<VerifyHostnameResult> call = new VerifyHostnameCallable( Hostname, Properties.getAppInt("http.timeout"), acceptAllCertificates); ExecutorService executorService = Executors.newSingleThreadExecutor(); return executorService.submit(call); } }