cancel
Showing results for 
Search instead for 
Did you mean: 

Setting response header when using DeclarativeWebScript

subwiz
Champ in-the-making
Champ in-the-making
We have in our existing project WebScripts written extending DeclarativeWebScript class (and overriding executeImpl(…) method). I see that in DeclarativeWebScript class execute() method has definition like this:

public final void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {…}

Since this method is final, I am not able to override this method and get the WebScriptResponse object for setting response header. Is there some way I can set response header without making major changes in the code?
1 REPLY 1

patil
Champ on-the-rise
Champ on-the-rise
try extending AbstractWebScript, instead of DeclarativeWebScript.


Thanks,
Patil
Cignex Technologies
Bangalore