0

How to set request header using executions.getcurrent?

asked 2014-09-09 11:47:05 +0800

Sivaramya gravatar image Sivaramya
1

I have to set header for my request. final ServletRequest request = (ServletRequest) Executions.getCurrent().getNativeRequest();

How to add it?

Please advise.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-09-09 12:17:20 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Solution 1 :

You have to create a wrapper

Solution 2 :

Executions.getCurrent().addResponseHeader(name, value);

Greetz chill.

link publish delete flag offensive edit
0

answered 2014-10-22 08:36:38 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

HttpServletRequest request = (HttpServletRequest) Executions.getCurrent().getNativeRequest();

but there is no setHeaders() on it.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-09-09 11:47:05 +0800

Seen: 23 times

Last updated: Oct 22 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More