Mapping WebscriptRequest to HttpServletRequest

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2014 03:29 AM
Hi,
I tried below code to map WebscriptRequest to HttpServletRequest but it didnt work.
Anybody having idea, how do I cast it to get proper object of HttpServletRequest?
I want to get client IP using HttpServletRequest in my alfresco side webscript.
I tried below code to map WebscriptRequest to HttpServletRequest but it didnt work.
HttpServletRequest httpReq = ((WebScriptServletRequest) request).getHttpServletRequest();
Anybody having idea, how do I cast it to get proper object of HttpServletRequest?
I want to get client IP using HttpServletRequest in my alfresco side webscript.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2014 04:20 AM
HttpServletRequest httpRequest = WebScriptServletRuntime.getHttpServletRequest(request)HttpServletResponse httpResp = WebScriptServletRuntime.getHttpServletResponse(res);
