Class HttpScmProtocol

java.lang.Object
sonia.scm.repository.spi.HttpScmProtocol
All Implemented Interfaces:
ScmProtocol

public abstract class HttpScmProtocol extends Object implements ScmProtocol
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpScmProtocol(Repository repository, String basePath)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Priority for frontend evaluation order
    The type of the concrete protocol, eg.
    The URL to access the repository providing this protocol.
    final void
    serve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletConfig config)
     
    protected abstract void
    serve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Repository repository, jakarta.servlet.ServletConfig config)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface sonia.scm.repository.api.ScmProtocol

    isAnonymousEnabled
  • Constructor Details

    • HttpScmProtocol

      public HttpScmProtocol(Repository repository, String basePath)
  • Method Details

    • getType

      public String getType()
      Description copied from interface: ScmProtocol
      The type of the concrete protocol, eg. "http" or "ssh".
      Specified by:
      getType in interface ScmProtocol
    • getUrl

      public String getUrl()
      Description copied from interface: ScmProtocol
      The URL to access the repository providing this protocol.
      Specified by:
      getUrl in interface ScmProtocol
    • getPriority

      public int getPriority()
      Description copied from interface: ScmProtocol
      Priority for frontend evaluation order
      Specified by:
      getPriority in interface ScmProtocol
      Returns:
      priority number
    • serve

      public final void serve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException
    • serve

      protected abstract void serve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Repository repository, jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException