Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
parsesUrlComponents
Method · 0.95
invoke25
Method · 0.45
Calls
2
startsWith
Method · 0.65
toASCIIString
Method · 0.45
Tested by
1
parsesUrlComponents
Method · 0.76