Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363472 - Add Quick Fix support for IHTTP on service callback functions
Summary: Add Quick Fix support for IHTTP on service callback functions
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Xiao Bin Chen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 09:22 EST by Will Smythe CLA
Modified: 2017-02-23 14:14 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Smythe CLA 2011-11-10 09:22:18 EST
In some cases, developers need access to the 'low level' HTTP response object that comes back from a service request. In RBD, this could be accessed via ServiceLib.getCurrentCallbackResponse(), but in EDT, this is supported by adding an extra parameter (of type iHTTP) to the signature of the callback function ...

Example callback signature:
function xxxx( p1 int, p2 string)

Callback signature with iHTTP:
function xxxx( p1 int, p2 string, http IHttp in)

Same is true for the onException function:
function handleExceptions(exp AnyException, httpObj IHttp in)

The IDE should support the ability to create callback functions with IHTTP as a parameter via the Quick Fix (CTRL+1) mechanism (so, there should be 2 options).