It's all about the answers!

Ask a question

Getting access to HttpRequest object in Jazz service


Vibha Sinha (1643610) | asked Oct 14 '09, 3:48 p.m.
I have written a service in Jazz by extending the class AbstractService.
I need to get hold of the HttpRequest object in the service code to access a cookie that is being passed.

What is the correct way to access the HttpRequest object ?
I found the following API, which seems deprecated

TeamServiceContext.getCurrent().getHttpServletRequest();

Thanks
- Vibha

One answer



permanent link
os waldl (4675) | answered Oct 21 '09, 11:39 p.m.
hi Vibha, as far as i know, REST handlers are working with the HttpRequest and HttpResponse instead of the HttpServletRequest and HttpServletResponse, Hopes that this page can help:https://jazz.net/wiki/bin/view/Main/ServerSDKQnA

I have written a service in Jazz by extending the class AbstractService.
I need to get hold of the HttpRequest object in the service code to access a cookie that is being passed.

What is the correct way to access the HttpRequest object ?
I found the following API, which seems deprecated

TeamServiceContext.getCurrent().getHttpServletRequest();

Thanks
- Vibha

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.