Package com.google.gerrit.server.config
Class DefaultUrlFormatter
- java.lang.Object
-
- com.google.gerrit.server.config.DefaultUrlFormatter
-
- All Implemented Interfaces:
UrlFormatter
public class DefaultUrlFormatter extends Object implements UrlFormatter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultUrlFormatter.DefaultUrlFormatterModule
-
Constructor Summary
Constructors Constructor Description DefaultUrlFormatter(com.google.inject.Provider<String> canonicalWebUrlProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getWebUrl()
The canonical base URL where this Gerrit installation can be reached.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.server.config.UrlFormatter
getChangeViewUrl, getCommentsTabView, getDocUrl, getFindingsTabView, getInlineCommentView, getPluginDocUrl, getRestUrl, getSettingsUrl, getSettingsUrl
-
-
-
-
Constructor Detail
-
DefaultUrlFormatter
@Inject public DefaultUrlFormatter(com.google.inject.Provider<String> canonicalWebUrlProvider)
-
-
Method Detail
-
getWebUrl
public Optional<String> getWebUrl()
Description copied from interface:UrlFormatter
The canonical base URL where this Gerrit installation can be reached.For the default implementations below to work, it must end in "/".
- Specified by:
getWebUrl
in interfaceUrlFormatter
-
-