Package com.atlassian.bitbucket.scm
Interface ScmUrlFormatter
public interface ScmUrlFormatter
Formats an appropriate URL for a given
repository
.
URL formatters are associated with specific SCM request handlers, which are associated with specific protocols:
- HTTP:
HttpScmRequestHandler
- SSH:
SshScmRequestHandler
SCM
, should produce a request
which the associated request handler will be able to process.-
Method Summary
-
Method Details
-
format
- Parameters:
request
- a request describing the repository and base URL to use when formatting- Returns:
- the formatted URL, which may never be
null
- Throws:
URISyntaxException
- if URL formatting fails
-