Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30294

Affect headers in javax.ws.rs.core.Response

Newsgroups comp.lang.java.programmer
Date 2014-11-06 07:02 -0800
Message-ID <4237d50b-39d3-4ea3-a693-eeddb5ec3e41@googlegroups.com> (permalink)
Subject Affect headers in javax.ws.rs.core.Response
From RVic <rvince99@hotmail.com>

Show all headers | View raw


I have an application that gets called as a Restful service, which makes a call out to a dll, and passes back the value returned from the third-party dll running on a remote server(the dll returns a javax.ws.rs.core.Response object, my Java application which calls it, must also return this type of object, so it just passes it along).

However, I need to amend some values in the headers of this object, removing some (like X-Powered-by :" ASP.NET" ) and to amend the Content-Type header. I see there are methods to access the headers for javax.ws.rs.core.Response, but none to amend them (change or delete)..

Any ideas how I might accomplish this? Thank you.

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Affect headers in  javax.ws.rs.core.Response RVic <rvince99@hotmail.com> - 2014-11-06 07:02 -0800
  Re: Affect headers in  javax.ws.rs.core.Response Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-11-07 06:52 +0000
    Re: Affect headers in  javax.ws.rs.core.Response Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-11-07 07:16 +0000

csiph-web