how to marshal CDATA using restEasy?
by Mundkowsky, Robert
How can I use rest marshal an object that has one field that contains CDATA?
I have tried using XmlAdapter, but it seems to have no affect.
I am using "Red Hat JBoss Enterprise Application Platform - Version 6.4.0.GA".
@POST
@Path("/CheckScore")
@Produces({MediaType.APPLICATION_XML, MediaType.TEXT_XML})
public Response foo(@Context HttpServletRequest req, @Context ServletContext context){
...
return Response.ok(results).build();
}
Robert
________________________________
This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.
Thank you for your compliance.
________________________________
8 years
Re: [resteasy] about resteasy clientrequestfilter
by Ron Sigal
cc'ing to Resteasy list.
Hi Tao Wu,
There's no requirement for ClientRequestFilters to be thread safe,
although they may be. For example, CacheInterceptor in resteasy-client,
which holds a reference to a cache, isn't, but AcceptEncodingGZIPFilter
in resteasy-jaxrs, is.
But it sounds like you are using your own ClientRequestFilter to modify
some headers. In that case, you are responsible for making the filter
thread safe.
-Ron
On 11/16/2016 10:34 AM, Tao Wu wrote:
> hi:
>
> is the restclient filters are not thread safe,when the
> restclient is singlon.
>
> i used the clientrequestfilter post header paramters,but when in
> muliti thread env
>
> the header paramters not thread safe.is <http://safe.is> there some
> way to solve it.
>
> thanks very much.
>
>
--
My company's smarter than your company (unless you work for Red Hat)
8 years
Announce: release of jax-rs-pac4j 1.0.0
by Victor Noel
Hi,
The pac4j team (http://www.pac4j.org/) is happy to announce the release of
the first version of jax-rs-pac4j (Apache 2.0).
Pac4j is a Java security engine to protect web applications, it is
integrated with many frameworks and now with JAX-RS runtimes. It supports
most authentication mechanisms, such as OAuth (Facebook, Twitter,
Google...), SAML, CAS, LDAP, SQL, JWT, MongoDB, and others.
jax-rs-pac4j provides ways to protect your resources using annotations or
global filters to protect your application.
It has been tested with Jersey and Resteasy, both with servlet and
non-servlet containers.
It also supports injection at resources method level of the authenticated
profile, but in Jersey only (for now, we are looking for contributions on
this :).
You can find more details at https://github.com/pac4j/jax-rs-pac4j.
The maven artefacts are released on Maven central.
We hope the community we use it, we are very open to contributions and
issue reports to improve it (it is still young but used in some real
projects :).
Cheers,
Victor
8 years
Socket timeout per request
by Mark Moales
Hi,
Is there anyway to change the socket timeout per request besides creating a
new client for each request?
Thanks in advance,
Mark Moales
8 years, 1 month