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
()
| 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. |
no test coverage detected