Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting access to HttpRequest object in Jazz service

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,948

Question asked: Oct 14 '09, 3:48 p.m.

Question was seen: 5,509 times

Last updated: Oct 14 '09, 3:48 p.m.

Confirmation Cancel Confirm