Class DefaultUrlFormatter

java.lang.Object
com.google.gerrit.server.config.DefaultUrlFormatter
All Implemented Interfaces:
UrlFormatter

public class DefaultUrlFormatter extends Object implements UrlFormatter
  • Constructor Details

    • DefaultUrlFormatter

      @Inject public DefaultUrlFormatter(com.google.inject.Provider<String> canonicalWebUrlProvider)
  • Method Details

    • 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 interface UrlFormatter