public class DefaultUrlFormatter extends java.lang.Object implements UrlFormatter
Modifier and Type | Class and Description |
---|---|
static class |
DefaultUrlFormatter.Module |
Constructor and Description |
---|
DefaultUrlFormatter(com.google.inject.Provider<java.lang.String> canonicalWebUrlProvider) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getWebUrl()
The canonical base URL where this Gerrit installation can be reached.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChangeViewUrl, getDocUrl, getInlineCommentView, getPatchFileView, getRestUrl, getSettingsUrl, getSettingsUrl
@Inject public DefaultUrlFormatter(com.google.inject.Provider<java.lang.String> canonicalWebUrlProvider)
public java.util.Optional<java.lang.String> getWebUrl()
UrlFormatter
For the default implementations below to work, it must end in "/".
getWebUrl
in interface UrlFormatter