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
1
vote
1 answer

Simple use of Netty with RestEasy

I am completely new to RestEasy and Netty. I just want to run a very simple test to see how netty actually works. So I am using this code: ResteasyDeployment deployment = new…
Hossein
  • 40,161
  • 57
  • 141
  • 175
1
vote
1 answer

RestEasy: WARN NoClassDefFoundError DocumentProvider

I'm using the RestEasy Client Framework and have a WARN with the following code: RegisterBuiltin.register(ResteasyProviderFactory.getInstance()); // [WARN] org.jboss.resteasy.logging.impl.Log4jLogger-103: NoClassDefFoundError: // Unable to load…
Thor
  • 6,607
  • 13
  • 62
  • 96
1
vote
1 answer

Is there an easy way to pass a collection of objects via JSON using RestEasy?

I'm currently playing around with RestEasy and Angular.js. I'm trying to return a collection or array of objects with all the attributes in the json. But when I perform the following method below, it only returns a JSON result of file names in…
HelloWorld
  • 4,251
  • 8
  • 36
  • 60
1
vote
1 answer

Resteasy mapping the ClientResponse to a business object(pojo)

I am new to Resteasy, I am calling a service and getting the response successfully. I am able to print the response as well (which is the expected response). ClientResponse response= clientRequest.post(String.class); …
Gadenkan
  • 1,691
  • 2
  • 17
  • 29
1
vote
1 answer

How to use EasyRec in my webPage

I am very new to this EasyRec recommendation Application. I deployed Easyrec war file in my System and login with my credentails, i created my own telnet with product url, now i want to add product ids in Easyrec as items ids, but i am far away of…
Navyah
  • 1,660
  • 10
  • 33
  • 58
1
vote
1 answer

RESTEasy: Adding a method that can be invoked without authentication

I have an application which exposes a RESTful API using RESTEasy. The user needs to authenticate using HTTP-Basic before any method can be invoked. However, I want to add a method to the RESTful API which any user can invoke without authenticating.…
1
vote
1 answer

How to decorate the json response with Resteasy

I am implementing a restfull service with Resteasy that will be consumed by a Extjs client, and i want to decorate the json object retrieved in the http response with some more attributes without using a wrapper class with additional attributes in…
1
vote
3 answers

Explain RestEasy providers, resources and singletons in relation to classes vs instances?

I'm building a JAX-RS app that consists of a stockroom and a workplace. The stockroom holds a set of Java classes that can be instantiated (via AJAX) to create named instances of those classes in the workplace. So far I'm able to reference the…
Bradjcox
  • 1,509
  • 1
  • 18
  • 30
1
vote
0 answers

Unzip uploaded file failes because of multipart information

I have a litte trouble with unzipping a zip file when I upload it as multipart with jersey client. To upload the file I use this code: FormDataMultiPart form = new FormDataMultiPart().field("file", file, …
TerenceJackson
  • 1,776
  • 15
  • 24
1
vote
1 answer

Using REST how to bind a value as a parameter

I want to implement REST calls in a web application. I took a look at the different available frameworks to achieve that. It seems JBoss Resteasy provides what I need: @GET @Path("book/{id}/comments") public Collection
Grolubao
  • 94
  • 1
  • 5
1
vote
1 answer

JBoss RESTEasy Client and Servlet

My RESTEasy service does have a method using cookie parameters: public interface SimpleService { public String test(@CookieParam("param") String param); } Now I am trying to use my SimpleService with RESTEasy client framework and it's proxy…
anderswelt
  • 1,482
  • 1
  • 12
  • 23
0
votes
1 answer

Java scheduled trigger - able to check eTag response?

I'm creating my first Java Spring application at the moment. Part of it needs to request xml data from another url on a scheduled period; which I have managed to implement fine. Though obviously I only want to update data if there is a change to the…
Rich
  • 1
  • 1
0
votes
1 answer

Get RestEasy / Jackson to return longs wrapped in quotation marks

Javascript can't handle my longs, so I want RestEasy to wrap them with quotation marks to turn them into strings. My DTO is : public class DTO { Long id; } and I want this to be transferred as {"id":"2394872352498"} Unfortunately, right now (by…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
0
votes
1 answer

How to write a Restful client using the same Interface defined for the server

I am writing a Restful service using Scala. On the server side, it has a interface: trait ICustomerService { @GET @Path("/{id}") @Produces(Array("application/xml")) def getCustomer(@PathParam("id") id: Int): StreamingOutput } The service…
Kevin
  • 5,972
  • 17
  • 63
  • 87
0
votes
1 answer

ClassNotFoundException in RestEasy simple configuration

I am using resteasy and have the following configuration in my web.xml. It keeps throwing [[/EJBWebClient]] Exception sending context initialized event to listener instance of class…
Sripaul
  • 2,227
  • 9
  • 36
  • 60