Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Adi Ishi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!