public interface

HttpScmRequestHandler

com.atlassian.stash.scm.http.HttpScmRequestHandler

Class Overview

Plugin point for providing handlers for HTTP requests for SCM hosting operations.

Summary

Public Methods
@Nullable HttpScmRequest create(HttpServletRequest request, HttpServletResponse response)
Returns an HttpScmRequest if this factory can service the supplied request, or null if it can't.

Public Methods

@Nullable public HttpScmRequest create (HttpServletRequest request, HttpServletResponse response)

Returns an HttpScmRequest if this factory can service the supplied request, or null if it can't. Returning null means that the request will be passed on to the HttpScmRequestHandler provided by the HttpScmRequestHandlerModuleDescriptor with the next heaviest weight.

Parameters
request an HttpServletRequest targeting /scm/* (e.g. an HTTP request from the git client binary)
response the HttpServletResponse
Returns
  • an HttpScmRequest if this factory can service the request, or null otherwise.