Questions tagged [resteasy]

A JBoss project that provides various frameworks to help build RESTful web services and Java applications

RESTEasy is a fully certified and portable implementation of the JAX-RS specification.

JAX-RS is a new JCP specification that provides a Java API for RESTful Web Services over the HTTP protocol.

Full details are available at the JBoss RESTEasy site.

2470 questions
0
votes
2 answers

Receive two types of data from a request payload with resteasy / jax-rs

I'm sending json-formatted data to my Java server via http requests. I've had great success in receiving the requests with functions like Boolean deleteUsers(List userIds) { // ... return true; } I'm using RESTEasy on a Java server,…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
0
votes
1 answer

How would I make custom atom links using RESTEasy?

I'm wondering if (and if so, how) it's possible to make RESTEasy return an object with custom atom links, such as links to next/previous page when paginating, particularly what I want to get is something akin to the following:
Vala
  • 5,628
  • 1
  • 29
  • 55
0
votes
1 answer

RESTEasy java.lang.LinkageError: LinkageError while defining class: org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher

I am trying to implement RESTEasy in my project, which is giving java.lang.LinkageError: LinkageError while defining class:org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher I am using websphere 6.1 and RESTEasy 2.1.0.GA The detail…
JavaResp
  • 2,253
  • 5
  • 24
  • 25
0
votes
0 answers

Why Resteasy bean validation doesn't work?

Here is my setup: org.springframework.boot spring-boot-starter-data-jdbc
Bufer
  • 85
  • 1
  • 8
0
votes
1 answer

Corrupted file content dowloading with resteasy microprifile rest client

Downloading a file with this client method: @GET @Path("/download") @Produces(APPLICATION_PDF) fun getDocument(): ByteArray I get bytes as [37, 80, 68, 70, 45, 49, 46, 55, 10, 37, -17, -65, -67, ... more] The PDF file is…
brisssou
  • 499
  • 6
  • 12
0
votes
1 answer

Keycloak Provider and JAX-RS Client?

I have the need to call a REST endpoint after a user account is created in Keycloak (specifically, Keycloak 22.x). To accomplish this, I have implemented a Keycloak EventListenerProvider that listens for the appropriate event. As a PoC I had my…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
0
votes
0 answers

Could not create converter for java.io.InputStream in Quarkus with Reasteasy-Reactive and JAX-RS

I have the following endpoint @POST @Path("/images") @Consumes("multipart/form-data") @Produces("application/json") fun upload(@FormParam(value = "file") fileInputStream: InputStream, @FormParam(value = "comment") comment: String): Response { …
PumpingSalad
  • 127
  • 1
  • 9
0
votes
1 answer

Keycloak: RESTEASY004655: Unable to invoke request: org.apache.http.conn.HttpHostConnectException:Connection refused

My application has a microservice architecture with eureka and I want to implement oauth2 with keycloak in my auth-service. I have created a Keycloak bean that connects to keycloak and creates realm and client. All services are deployed in docker.…
0
votes
0 answers

Mock SSE Endpoind with WireMock in Quarkus

I tried to use rest client reactive to access the WireMock SSE endpoint. @Test void getEvents() throws Throwable { var url = "/posts/events"; String dataStream = """ id:1 event:random data:{"id":"test post…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
0
votes
0 answers

How to convert Spring MultipartFile type to RestEasy MultipartFormDataInput type

Currently I have a RestEasy API that receives a parameter of type MultiPartFormDataInput in a POST request. However there is a new Spring Controller that we want to use that will leverage this previous RESTEasy Controller i.e. the RestEasy…
Georgi Velev
  • 166
  • 10
0
votes
2 answers

RESTful Endpoints Not Found on Wildfly

I am trying to configure RESTful endpoints on an existing Wildfly Java project that to this point has been running as a Kafka consumer / producer. My experience has previous been using Thorntail, but either way, I've always used RESTEasy's JAX-RS…
0
votes
0 answers

springboot RestApi file/image upload, consuming with RESTeasy

I am trying to consume a Springboot File upload api, that takes in a MultipartFile... via RESTeasy with packages resteasy-client:3.9.1.final && resteasy-multipart-provider:3.9.1.final. However i am failing to get the implementation right. Any…
Musa Baloyi
  • 428
  • 2
  • 4
  • 10
0
votes
1 answer

Why ContainerResponseFilter dosen't work with Camel Rest component?

I'm using Quarkus 2.13 with Camel 3.18. I have rest endpoint set, which is working as expected: restConfiguration() .component("platform-http") .skipBindingOnErrorCode(false) .bindingMode(RestBindingMode.json); I did write…
kingkong
  • 1,537
  • 6
  • 27
  • 48
0
votes
0 answers

JAX-RS / RESTEasy - process requests synchronously

I have a JAX-RS (RESTEasy) endpoint. Within the endpoint method I am checking a database timestamp column for a JPA entity and if the column is null then I save the current time, raise an alert and return success, if the column already has a time…
DaveB
  • 2,953
  • 7
  • 38
  • 60
0
votes
0 answers

How does RESTEasy Reactive normally behave when receiving large Responses from RestEasy Clients?

I'm in the middle of creating a set of APIs for my Frontend to consume using quarkus-resteasy-reactive and quarkus-rest-client-reactive. Whilst developing the Resource that would expose the Endpoints, I ran into an issue where the 3rd party Service…
Sean Tay
  • 23
  • 8
1 2 3
99
100