Open natros opened 4 years ago
I would assume that Response int the sample above is from jakarta package and you want to avoid GWT compilation issue here.
is this because you want Response
support and you want to download a PDF using domino-rest?
afaik oracle forbids names that contains java or javax and jakarta is the replacement. instead of javax.ws.rs:jsr311-api, javax.ws.rs:javax.ws.rs-api I use jakarta.ws.rs:jakarta.ws.rs-api.
I want to avoid gwt compiling javax.ws.rs.core.Response
and I don't want to use domino-rest to download the pdf. The pdf is download with a link.
That's what I do with restygwt to share the rest api between the client and the server. For UserResource in the shared module I have a UserResourceImpl that implements UserResource
thanks.
Domino-rest generate the client for the JVM too, so if we dont generate from methods marked with @GwtIncompatible
we will break the generated client for all other targets that are not GWT, so if instead we mark the generated code as @GwtIncompatible
will that be sufficient?
I tried inserting the @GwtIncompatible
in UserResourceFactory
but the GWT compiler always complains about the missing javax.ws.rs.core.Response
. It seems to work well for interfaces but not implementation. I found a better solution that worked without any @GwtIncompatible
annotation. I just created an empty Response class inside the package javax.ws.rs.core
with a .gwt.xml
file.
Feel free to close this issue. Thanks.
Domino rest should not generate code for
@GwtIncompatible
, so I can excludejaxrs-super
and usejakarta.ws.rs:jakarta.ws.rs-api
that containsjavax.ws.rs.core.Response