Back to project page android-appwidget-cirrus.
The source code is released under:
MIT License
If you think the Android project android-appwidget-cirrus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright 2014 Wayne D Grant (www.waynedgrant.com) Licensed under the MIT License */ /* w w w .j a v a 2s . c o m*/ package com.waynedgrant.cirrus.clientraw; public class ClientRawUrl { private String url; public ClientRawUrl(String url) { this.url = url; } public String getUrl() { String correctedUrl = url; if (!url.endsWith("/clientraw.txt")) { if (!url.endsWith("/")) { correctedUrl += "/"; } if (!url.endsWith("clientraw.txt")) { correctedUrl += "clientraw.txt"; } } if (!url.contains("://")) { correctedUrl = "http://" + correctedUrl; } return correctedUrl; } }