diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-04-25 13:59:52 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-06-04 21:54:25 -0700 |
commit | c32a62cd4abf5529c9e56a1c8140de76c107ff93 (patch) | |
tree | cf8450fe8261b0652130529a5288cde60aeb64cd /org.eclipse.jgit.http.test/tst/org | |
parent | 36a8c2106983d9070a2c67961f7945db76403776 (diff) | |
download | jgit-c32a62cd4abf5529c9e56a1c8140de76c107ff93.tar.gz jgit-c32a62cd4abf5529c9e56a1c8140de76c107ff93.zip |
Give info/refs services more control over response
Currently, SmartServiceInfoRefs always prints "# service=serviceName"
followed by a flush packet in response to an info/refs request, and then
hands it off to the specific service class. Printing of "#
service=serviceName" is mandated for protocol v0, but not v2.
Therefore, the existing code works for protocol v0, but whenever a
service that supports protocol v2 receives an info/refs request, it must
first determine which protocol version is to be used (depending on, for
example, the request and any relevant configuration variables), and then
decide if "# service=serviceName" needs to be printed.
Create a new method that v2-supporting service classes can override,
covering the printing of both "# service=serviceName" and everything
that the #advertise method prints. This will be used in a subsequent
commit in which UploadPackServlet (and the other classes it uses) is
updated to support protocol v2.
Change-Id: Ia026b06e96a6b15937514096babd024ef77df1ea
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst/org')
0 files changed, 0 insertions, 0 deletions