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
226
votes
17 answers

Java 8 LocalDate Jackson format

For java.util.Date when I do @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd/MM/yyyy") private Date dateOfBirth; then in JSON request when I send { {"dateOfBirth":"01/01/2000"} } it works. How should I do this for Java 8's…
JAB
  • 3,546
  • 9
  • 36
  • 39
171
votes
14 answers

Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

I'm trying to POST a List of custom objects. My JSON in request body is this: { "collection": [ { "name": "Test order1", "detail": "ahk ks" }, { "name": "Test order2", …
isah
  • 5,221
  • 3
  • 26
  • 36
100
votes
1 answer

REST - HTTP Post Multipart with JSON

I need to receive an HTTP Post Multipart which contains only 2 parameters: A JSON string A binary file Which is the correct way to set the body? I'm going to test the HTTP call using Chrome REST console, so I'm wondering if the correct solution is…
thermz
  • 2,386
  • 3
  • 20
  • 28
75
votes
4 answers

How to choose between Jersey, Apache Wink and JBoss RESTEasy?

I just heard about Apache Wink, and I was wondering what differences it had compared to Jersey or JBoss RESTEasy. What can be done in one that the other two can't? We've been using Jersey for some of our internal projects mostly for it's…
Nick Klauer
  • 5,893
  • 5
  • 42
  • 68
59
votes
2 answers

RESTEasy or Jersey?

I have a requirement for RESTFul webservices. It is up to my team to decide whether to go with Jersey or Restlet or RESTEasy or anything else. after omitting other frameworks, we are not able to choose between RESTEasy and Jersey. Since both of them…
Tioma
  • 2,120
  • 9
  • 35
  • 52
50
votes
3 answers

Best way to handle JAX-RS REST API URI versioning

I did my search first in stackoverflow & I was not able to find out any answers related to my question. All I can find was questions related to REST uri design. My question in on the backend side. Suppose we have two different version of REST…
Deepesh M
  • 833
  • 1
  • 10
  • 18
49
votes
3 answers

Logging request and response in one place with JAX-RS

I have a RESTEasy web server with lot of methods. I want implement logback to track all requests and responses, but I don't want add log.info() to every methods. Maybe there's way to catch requests and responses in one place and log it. Maybe…
Edgaras Karka
  • 7,400
  • 15
  • 61
  • 115
46
votes
3 answers

PersistenceContext EntityManager injection NullPointerException

I have a war containing the…
rich
  • 18,987
  • 11
  • 75
  • 101
45
votes
4 answers

Optional @PathParam in Jax-RS

I have a service where the last part of the path is optional, the user can both enter /mypath/ and /mypath/param1/. I tried to use a regular expression to filter the last part of the path: @Path("/mypath{param1: (/param1)?}") I'm using RestEasy as…
Fábio
  • 3,291
  • 5
  • 36
  • 49
40
votes
6 answers

Propagating ThreadLocal to a new Thread fetched from a ExecutorService

I'm running a process in a separate thread with a timeout, using an ExecutorService and a Future (example code here) (the thread "spawning" takes place in a AOP Aspect). Now, the main thread is a Resteasy request. Resteasy uses one ore more…
Luciano Fiandesio
  • 10,037
  • 10
  • 48
  • 56
33
votes
3 answers

What is the proper replacement of the Resteasy 3.X PreProcessInterceptor?

I'm building rest service using an authentication/authorization mechanism as described in this tutorial: http://howtodoinjava.com/2013/06/26/jax-rs-resteasy-basic-authentication-and-authorization-tutorial/ Basically it uses the PreProcessInterceptor…
Gilberto Torrezan
  • 5,113
  • 4
  • 31
  • 50
29
votes
6 answers

Accessing Jackson Object Mapper in RestEasy

I've been asked to beautify default Jackson JSON coming out of a RestEasy endpoint. I did some research on Jackson and wrote some standalone code to be able to suppress nulls, customize data formats etc. Now the challenge is injecting this code in…
codegeek
  • 551
  • 1
  • 4
  • 7
28
votes
2 answers

What's a JAX-RS implementation?

I have been trying to figure out how to use JAX-RS for quite some time. I started from the very basic concepts and then to gradually understand the annotation styled programming, the meaning of @Path, @Get, @Post, etc. To my understanding, as to…
lixiang
  • 1,941
  • 3
  • 20
  • 25
28
votes
3 answers

What to use instead of org.jboss.resteasy.client.ClientRequest?

I just found that org.jboss.resteasy.client.ClientRequest is deprecated, invalidating everything I could find on Google about how to use the RESTEasy client. The Javadoc gives no indication as to what to use instead. Google is likewise silent. I…
Torque
  • 3,319
  • 2
  • 27
  • 39
27
votes
5 answers

RESTFul Service Framework for AppEngine

I am working on a project that involves mobile and web clients with Google's AppEngine PAAS. I would like to use RESTFul webservices with my AppEngine app. I have looked over Stackoverflow for references to RESTFul service frameworks that can be…
Saad Farooq
  • 13,172
  • 10
  • 68
  • 94
1
2 3
99 100