Allow ProtobufHttpMessageConverter extensions

Make ProtobufFormatDelegate protected and visible to subclasses.
Expose constructor that allows passing the delegate in.

See gh-35403
This commit is contained in:
rstoyanchev
2025-10-23 12:16:52 +01:00
parent 87607cccff
commit 754372a1f6
3 changed files with 53 additions and 32 deletions
@@ -107,7 +107,7 @@ class ProtobufHttpMessageConverterTests {
@Test
void writeJsonWithGoogleProtobuf() throws IOException {
this.converter = new ProtobufHttpMessageConverter(
new ProtobufHttpMessageConverter.ProtobufJavaUtilSupport(null, null),
new ProtobufHttpMessageConverter.ProtobufJavaUtilDelegate(null, null),
this.extensionRegistry);
MockHttpOutputMessage outputMessage = new MockHttpOutputMessage();
MediaType contentType = MediaType.APPLICATION_JSON;