Hi,
I'm trying to do a client post using something like:
client
.target(url)
.async()
.post(Entity.entity(myObject, MediaType.APPLICATION_JSON),
MyClass.class));
But I want to be able to also specify an InvocationCallback to see the
server's response, but seeing the API signatures, I see that there is no
way of doing that, I only have the following options:
post(entity)
post(entity, class)
post(entity, callback)
There is not one that specifies something like post(entity, class,
callback) and this is a problem, because if I don't specify the class, I
get a 400 error, and if I specify only entity and class, how can I specify
a callback to handle something like an error?
Thanks,
Raul