[Resteasy-users] exception mappers and intercepting them?

2014-04-23 Thread Tom Butt
We currently use exception mappers, but I ran across an odd case. We work as a proxy to other systems, so if we get back a poorly formed response, we have an exception mapper for JAXBUnmarshalException. The problem is, if somebody sends in (to us) a poorly formatted request, it also hits our m

Re: [Resteasy-users] exception mappers and intercepting them?

2014-04-24 Thread Tom Butt
I would catch the upstream and handle it within code. On 4/23/2014 3:36 PM, Tom Butt wrote: > We currently use exception mappers, but I ran across an odd case. We work as > a proxy to other systems, so if we get back a poorly formed response, we have > an exception mapper for JAXB

[Resteasy-users] media type and versioning

2014-07-15 Thread Tom Butt
I currently have a resource that consumes "application/xml", but I'm moving to custom media types for versioning. So, the issue happens in marshal/unmarshal as the root element is the same for both. I have a messagebodyreader/writer to handle the custom media types in place, and it works well.

Re: [Resteasy-users] media type and versioning

2014-07-15 Thread Tom Butt
g application/xml in my MessageBodyReader and pivoting in the "isReadable" method on the media type and the *type*. -Tom - Original Message - From: "John D. Ament" To: "Tom Butt" Cc: resteasy-users@lists.sourceforge.net Sent: Tuesday, July 15, 2014 10:37:

[Resteasy-users] client for multipart/form-data

2015-01-16 Thread Tom Butt
We use the ProxyFactory to create clients in resteasy and typically define interfaces as: @GET @Path("/{id}") @Produces("application/xml") ClientResponse getDataByTitle(@PathParam("id") String id, @QueryParam(value = "title") String name); or similar. I need to consume a multip

Re: [Resteasy-users] client for multipart/form-data

2015-01-16 Thread Tom Butt
tipartoutput.addFormData("file", inputStream, MEDIA_TYPE.APPLICATION_OCTET_STREAM_TYPE); when I add it to the data to send off. -Tom - Original Message - > From: "William Antônio Siqueira" > To: "Tom Butt" > Cc: resteasy-users@lists.sour

Re: [Resteasy-users] client for multipart/form-data

2015-01-20 Thread Tom Butt
s seems to be working as I hoped now. -Tom ----- Original Message - > From: "Tom Butt" > To: "william fatecsjc" > Cc: resteasy-users@lists.sourceforge.net > Sent: Friday, January 16, 2015 10:54:37 AM > Subject: Re: [Resteasy-users] client for multipart/form-d