Methods Summary |
---|
public java.lang.String | getAuthInfo(){@hide}
return mAuthInfo;
|
public java.lang.String | getHost(){@hide}
return mHost;
|
public java.lang.String | getPath(){@hide}
return mPath;
|
public int | getPort(){@hide}
return mPort;
|
public java.lang.String | getScheme(){@hide}
return mScheme;
|
public void | setAuthInfo(java.lang.String authInfo){@hide}
mAuthInfo = authInfo;
|
public void | setHost(java.lang.String host){@hide}
mHost = host;
|
public void | setPath(java.lang.String path){@hide}
mPath = path;
|
public void | setPort(int port){@hide}
mPort = port;
|
public void | setScheme(java.lang.String scheme){@hide}
mScheme = scheme;
|
public java.lang.String | toString()
String port = "";
if ((mPort != 443 && mScheme.equals("https")) ||
(mPort != 80 && mScheme.equals("http"))) {
port = ":" + Integer.toString(mPort);
}
String authInfo = "";
if (mAuthInfo.length() > 0) {
authInfo = mAuthInfo + "@";
}
return mScheme + "://" + authInfo + mHost + port + mPath;
|