Class AbstractSventon

All Implemented Interfaces:
ExtensionPoint, Describable<RepositoryBrowser<?>>, Serializable
Direct Known Subclasses:
Sventon, Sventon2

public abstract class AbstractSventon extends SubversionRepositoryBrowser
Common part of Sventon and Sventon2 https://github.com/sventonsvn/sventon
Author:
Kohsuke Kawaguchi, Maciej Nux
See Also:
  • Field Details

    • url

      public final URL url
      The URL of the Sventon 2.x repository. This is normally like http://somehost.com/svn/ Normalized to have '/' at the tail.
    • repositoryInstance

      protected final String repositoryInstance
      Repository instance. Cannot be empty
    • URL_CHARSET

      protected static final String URL_CHARSET
      The charset to use when encoding paths in an URI (specified in RFC 3986).
      See Also:
  • Constructor Details

  • Method Details

    • getRepositoryInstance

      public String getRepositoryInstance()
    • preValidateUrl

      protected static URI preValidateUrl(String value) throws AbstractSventon.InvalidUrlException
      Does basic pre-validation and uniformization of a Sventon browser URL.
      Parameters:
      value - the URL string to validate (not null)
      Returns:
      the validated URL
      Throws:
      AbstractSventon.InvalidUrlException - if the URL is malformed or uses an unsupported protocol