MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getDefaultPort

Method getDefaultPort

CodenameOne/src/com/codename1/io/URL.java:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 public int getDefaultPort() {
76 if (u.toASCIIString().startsWith("https")) {
77 return 443;
78 }
79 return 80;
80 }
81
82 public String getProtocol() {
83 String s = u.toASCIIString();

Callers 2

parsesUrlComponentsMethod · 0.95
invoke25Method · 0.45

Calls 2

startsWithMethod · 0.65
toASCIIStringMethod · 0.45

Tested by 1

parsesUrlComponentsMethod · 0.76