-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #40 to support rest client #41
Conversation
The classic-resteasy-client is failing with
I tried to add The reactive-rest-client is failing with
I'm not sure how to fix it. @geoand any hint? |
private void registerHandler(RuntimeType type, | ||
BuildProducer<MessageBodyReaderBuildItem> additionalReaders, | ||
BuildProducer<MessageBodyWriterBuildItem> additionalWriters) { | ||
additionalReaders.produce(new MessageBodyReaderBuildItem.Builder( | ||
ReactiveFurySerializer.class.getName(), Object.class.getName()) | ||
.setMediaTypeStrings(List.of("application/fury", "application/*+fury")) | ||
.setRuntimeType(type) | ||
.setBuiltin(true).build()); | ||
additionalWriters.produce(new MessageBodyWriterBuildItem.Builder( | ||
ReactiveFurySerializer.class.getName(), Object.class.getName()) | ||
.setMediaTypeStrings(List.of("application/fury", "application/*+fury")) | ||
.setRuntimeType(type) | ||
.setBuiltin(true).build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactiveFurySerializer
is a server part, so it won't work for the client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, but it still implements both MessageBodyReader
and MessageBodyWriter
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't see that
resteasyJaxrsProviderBuildItemBuildProducer | ||
.produce(new ResteasyJaxrsProviderBuildItem(FurySerializer.class.getName())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if this is enough for RESTEasy Classic. You probable also have to use META-INF/services/jakarta.ws.rs.ext.Providers
like RESTEasy does in the resteasy-json-binding-provider
module for example
I have to disable the native test on
testClient
currently and will open an issue to investigate it.