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

REST service for intranet and internet scenarios

I am developing a web application which uses REST services. The requirement is that REST service has to be exposed to public Consumed by web application The web application & REST service are two different war files. But will be deployed in same…
jaks
  • 4,407
  • 9
  • 53
  • 68
1
vote
0 answers

Spring AOP and RestEasy ExceptionMapper conflict

I have a ExceptionMapper that I have written for one of my REST resource. I also have a Spring AOP aspect defined for the same resource. Now the problem is ExceptionMapper is not invoked if a REST resource throws an exception. I know this is because…
CodePredator
  • 415
  • 2
  • 6
  • 14
1
vote
0 answers

Assure object identity in jaxb unmarshalling

The setting is as follows. I use MOXy 2.4.0 as jaxb provider in JBoss 6.1.0.Final. RESTEasy is used as JAX-RS provider. When an entity is unmarshalled, that references the same entity (same id's) multiple times, different instances of that entity…
1
vote
0 answers

Resteasy - Login from C#

I have a Resteasy service that I need to call from a C# application; what's the best way of securing the content I want to get from the service? I was looking for a tutorial cause I'm not familiar with web services in Java, but I couldn't find…
brutus8890
  • 51
  • 4
1
vote
1 answer

RESTEasy Asynchronous Job Service + Spring MVC?

I am using the RESTEasy integration with Spring MVC as described here in section "39.2. Spring MVC Integration" http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html/RESTEasy_Spring_Integration.html I'd like to experiment with RESTEasy's…
pastafarian
  • 1,010
  • 3
  • 16
  • 30
1
vote
0 answers

Etag generation with RestEasy

My question is quite simple : is there a way to generate an ETag on a GET request using Java/RestEasy ? In my mind, I'm searching for a simple-elegant annotation in the way of @Cache{param0=val0, param1=val1} Someone know how to do that ? Any…
Godjam
  • 21
  • 4
1
vote
1 answer

The ServletServerCache And the ClassNotFoundException mystery

I try to add a cache system on a JBoss server, as described in the Resteasy documentation : Resteasy Caching Features, on part 29.3. (Local Server-Side Response Cache) : The next thing you have to do is to add a ServletContextListener,…
Godjam
  • 21
  • 4
1
vote
1 answer

Resteasy PreProcessInterceptor for logging request attributes (not parameters)

We're using JBoss and Resteasy to implement a web service, and one requirement is that we log parameters and attributes passed to the web service before processing starts. the PreProcessInterceptor is ideal for this. I have it working and logging…
Redboots
  • 115
  • 3
  • 11
1
vote
2 answers

JaxB unmarshal custom xml

I'm currently attempting to unmarshal some existing XML into a few classes I have created by hand. Problem is, I always get an error that tells me, JaxB expects a weather element but finds a weather element. (?) javax.xml.bind.UnmarshalException:…
annih
  • 395
  • 2
  • 6
  • 21
1
vote
1 answer

MultiThreadedHttpConnectionManager can not Inject into service

I'm now play around with resteasy to build a rest service, but with the default connectionManager(SimpleHttpConnectionManager), I can only sustain one connection in a long run transactional method. So I try to initialize the bean with…
1
vote
1 answer

RESTEasy - how to set Representation for Proxy Class

I set up a Client Proxy class with RESTEasy: ResourceIF resource = ProxyFactory.create(resourceIF.class, PATH, clientExecutor); When I invoke ClientResponse res = (ClientResponse) resource.getObject(); for which my interface looks like this: …
Robin Wieruch
  • 14,900
  • 10
  • 82
  • 107
1
vote
1 answer

REST - Get Resource URI out of Response (NOT ClientResponse)

How to get a resource URI path/location out of the Response.class? When I invoke my restful service with Apache CXF client API like this: Response res = resource.post(object); I get back the JAX-RS Response type. CXF doesnt an own implementation…
Robin Wieruch
  • 14,900
  • 10
  • 82
  • 107
1
vote
1 answer

How to create/write to file in class namespace under web-inf/class

I concocted the following to cache an Object to a class resource location. static private void toSerializedCache(Class cls, T t, String cachecrlstr) { try { URL crl = cls.getResource(cachecrlstr); File crf = new…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
1
vote
1 answer

RESTEasy - How to Set Basic Authentication to ClientRequest

I am using RESTEasy (implementation of JAX-RS). I can't find a way to set basic, preemptive, authentication to ClientRequest. ClientRequest request = new ClientRequest(""); // -- here I want to add basic-preemptive authentication…
Oz Molaim
  • 2,016
  • 4
  • 20
  • 29
1
vote
3 answers

How can I get resteasy MultipartFormDataInput to decode strings using UTF-8?

I'm using resteasy 2.3.4-Final and having UTF-8 problems in calls that accept multipart/form-data. The consumers of my API are iOS and Android devices. Any string params that are sent, don't contain a charset so resteasy seems to be decoding the…
Adrian Rodriguez
  • 3,232
  • 2
  • 24
  • 34