407 |
host = context.host; |
host = context.host; |
408 |
port = context.port; |
port = context.port; |
409 |
file = context.file; |
file = context.file; |
410 |
|
userInfo = context.userInfo; |
411 |
if (file == null || file.length() == 0) |
if (file == null || file.length() == 0) |
412 |
file = "/"; |
file = "/"; |
413 |
authority = context.authority; |
authority = context.authority; |
422 |
host = context.host; |
host = context.host; |
423 |
port = context.port; |
port = context.port; |
424 |
file = context.file; |
file = context.file; |
425 |
|
userInfo = context.userInfo; |
426 |
if (file == null || file.length() == 0) |
if (file == null || file.length() == 0) |
427 |
file = "/"; |
file = "/"; |
428 |
authority = context.authority; |
authority = context.authority; |
624 |
*/ |
*/ |
625 |
public String getUserInfo() |
public String getUserInfo() |
626 |
{ |
{ |
627 |
|
if (userInfo != null) |
628 |
|
return userInfo; |
629 |
int at = (host == null) ? -1 : host.indexOf('@'); |
int at = (host == null) ? -1 : host.indexOf('@'); |
630 |
return at < 0 ? null : host.substring(0, at); |
return at < 0 ? null : host.substring(0, at); |
631 |
} |
} |