Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363472

Summary: Add Quick Fix support for IHTTP on service callback functions
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: chenzhh, jvincens, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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