Set up - CXF, Spring, JAX-RS

I have some RESTfull services that return various data formats (xml, json). 
I would like to add some additional data to the response header.  What is
the best approach to doing this?

String context file has the following ...
<jaxrs:server id="servicesREST" address="/rest">
  <jaxrs:serviceBeans>
    <ref bean="servicesSEI" />
  </jaxrs:serviceBeans>
</jaxrs:server>

My test method in the impl

    @GET
    @Produces("application/xml")
    @Path("/upper/{string}")
    public String toUpper(@PathParam("string") String string) {
        return "<test>" + string.toUpperCase() + "</test>" ;

    }


Appreciate your help.

Thanks,

Mieke



-- 
View this message in context: 
http://www.nabble.com/Best-way-to-append-logic-to-response-header-tp24080075p24080075.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to