Package sonia.scm.repository.spi
Class HttpScmProtocol
java.lang.Object
sonia.scm.repository.spi.HttpScmProtocol
- All Implemented Interfaces:
ScmProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Priority for frontend evaluation ordergetType()
The type of the concrete protocol, eg.getUrl()
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
-
-
Method Details
-
getType
Description copied from interface:ScmProtocol
The type of the concrete protocol, eg. "http" or "ssh".- Specified by:
getType
in interfaceScmProtocol
-
getUrl
Description copied from interface:ScmProtocol
The URL to access the repository providing this protocol.- Specified by:
getUrl
in interfaceScmProtocol
-
getPriority
public int getPriority()Description copied from interface:ScmProtocol
Priority for frontend evaluation order- Specified by:
getPriority
in interfaceScmProtocol
- 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
-