• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How to convert HttpServletResponse to javax.ws.rs.core.Response to set the status

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm working on a logging framework. The logging framework is written using cxf and javax.ws.rs.core.Response, and I wrote an interceptor using spring mvc. I'm trying to send the  HttpServletResponse to  javax.ws.rs.core.Response, since HttpServletResponse doesn't have a getStatus() method, how can I set the status to javax.ws.rs.core.Response.

Here is my interceptor
 
reply
    Bookmark Topic Watch Topic
  • New Topic