MCPcopy Create free account
hub / github.com/M66B/FairEmail / getURLName

Method getURLName

app/src/main/java/javax/mail/Service.java:503–511  ·  view source on GitHub ↗

Return a URLName representing this service. The returned URLName does not include the password field. Subclasses should only override this method if their URLName does not follow the standard format. The implementation in the Service class returns (usually a copy of) the u

()

Source from the content-addressed store, hash-verified

501 * @see URLName
502 */
503 public URLName getURLName() {
504 URLName url = this.url; // snapshot
505 if (url != null && (url.getPassword() != null || url.getFile() != null))
506 return new URLName(url.getProtocol(), url.getHost(),
507 url.getPort(), null /* no file */,
508 url.getUsername(), null /* no password */);
509 else
510 return url;
511 }
512
513 /**
514 * Set the URLName representing this service.

Callers 2

connectMethod · 0.95
toStringMethod · 0.95

Calls 6

getPasswordMethod · 0.95
getFileMethod · 0.95
getProtocolMethod · 0.95
getHostMethod · 0.95
getPortMethod · 0.95
getUsernameMethod · 0.95

Tested by

no test coverage detected