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