Added Entities#stripScheme(String)
This commit is contained in:
parent
133b1bfa77
commit
6fd64a1730
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@ import com.google.common.base.Strings;
|
||||||
import com.moandjiezana.tent.client.users.Profile;
|
import com.moandjiezana.tent.client.users.Profile;
|
||||||
|
|
||||||
public class Entities {
|
public class Entities {
|
||||||
|
|
||||||
|
public static String stripScheme(String entity) {
|
||||||
|
return entity.replace("http://", "").replace("https://", "");
|
||||||
|
}
|
||||||
|
|
||||||
public static String getForUrl(String entity) {
|
public static String getForUrl(String entity) {
|
||||||
String prefix = entity.startsWith("http://") ? "h:" : "";
|
String prefix = entity.startsWith("http://") ? "h:" : "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue