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 TypeMethodDescriptionintPriority for frontend evaluation ordergetType()The type of the concrete protocol, eg.getUrl()The URL to access the repository providing this protocol.final voidserve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletConfig config) protected abstract voidserve(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, waitMethods inherited from interface sonia.scm.repository.api.ScmProtocol
isAnonymousEnabled
-
Constructor Details
-
HttpScmProtocol
-
-
Method Details
-
getType
Description copied from interface:ScmProtocolThe type of the concrete protocol, eg. "http" or "ssh".- Specified by:
getTypein interfaceScmProtocol
-
getUrl
Description copied from interface:ScmProtocolThe URL to access the repository providing this protocol.- Specified by:
getUrlin interfaceScmProtocol
-
getPriority
public int getPriority()Description copied from interface:ScmProtocolPriority for frontend evaluation order- Specified by:
getPriorityin 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.ServletExceptionIOException
-
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.ServletExceptionIOException
-