What Request Data Does ColdFusion Builder Post To Extension Handlers?

Posted November 19, 2009 at 2:12 PM

Tags: ColdFusion

Last night, I started playing around with ColdFusion Builder extensions, creating an extension that could encrypt and decrypt CFM and CFC files. The main reason ColdFusion Builder extensions are so attractive as a means to extend the Eclipse platform is that they are powered by actual ColdFusion files (our bread and butter). When you invoke a ColdFusion Builder extension, the IDE gathers data about your request and then posts it as an HTTP form post to your CFML-based handlers. Inside these handlers, you can then do whatever you want, ColdFusion-style, and return an XML result (back to the IDE).

As with any HTTP request, it is important to know what kind of data is available in order to get a handle on what functionality might be leveraged. To explore the ColdFusion Builder extension request context, I decided to CFDump out the CGI and HTTP Request objects to a log file:

CGI


 
 
 

 
ColdFusion Builder Posts CGI Information To Extension Handlers.  
 
 
 

GetHTTPRequestData()


 
 
 

 
ColdFusion Builder Posts HTTP Request Information To Extension Handlers.  
 
 
 

As you can see, not much of anything is posted to the action handlers; not even cookies.

Mostly, this post was just for my understanding and for my own future reference.

Post Comment  |  Ask Ben  |  Other Searches  |  Print Page




Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

Nov 19, 2009 at 2:19 PM // reply »
235 Comments

The lack of cookies becomes critical when you build multi-step extensions. I've taken to using urlSessionFormat() for all my links.


Nov 19, 2009 at 2:21 PM // reply »
7,572 Comments

@Raymond,

Ahh, good point! It's been so long since I've passed tokens via a URL, I forgot you could even do that. Awesome tip!


Nov 19, 2009 at 3:49 PM // reply »
14 Comments

I _think_ each extension also has an application scope you can use to store persistent data as you navigate from step to step (I could be mistaken; it's been awhile since I've played with extensions and I don't have my notes with me).


Nov 19, 2009 at 3:52 PM // reply »
235 Comments

It does. For solo dev it would be fine to use, but you would need to ensure that step 1 clears the previous data. Not sure I'd feel comfortable using it - but I reserve the right to change my mind later. ;)


Nov 19, 2009 at 5:17 PM // reply »
7,572 Comments

@Brian,

I assume you right (and @Ray confirms). Really, these extensions are just running as ColdFusion applications, so they should have all of the amenities available.


Post Comment  |  Ask Ben

Recent Blog Comments
Mar 22, 2010 at 3:08 AM
Ask Ben: Selecting XML Attributes Given Other XML Attributes
Thanks for the response. I finally discovered that I was getting this error because I had cfsetting enablecfoutputonly="yes" in Application.cfc, and was neither setting it to false elsewhere nor brac ... read »
Mar 21, 2010 at 8:57 PM
The Bourne Ultimatum Starring Matt Damon And Julia Stiles
late to the party, but my observation is this: rewatch carefully for the platonic nature of the relationship between nicki and jason. she never flirts with him. he never comes on to her. they alway ... read »
Mar 21, 2010 at 7:40 PM
Is Simulating User-Input Events With jQuery Ever A Good Idea?
A couple of things. One you embed the initial state of of more-info in the CSS. IMHO, that behavior should be in jQuery: moreInfo.hide(); It shows that the behavior your toggling and closing is mor ... read »
Mar 21, 2010 at 3:59 PM
Exploring ColdFusion Component Runtime Class Properties And Serialization
@Elliott, according to Ben's experiment, serializeJSON() doesn't access the private data by default - it doesn't even access the getHair() method - so trying to clone a Girl.cfc via serializeJSON/des ... read »
Mar 21, 2010 at 3:49 PM
Ask Ben: Javascript String Replace Method
I'm confused a bit by what you are asking, but if had this sentence: The color, red, is in the style statement; style: red;. and wanted to remove all or change all of the commas, colons, and semi-c ... read »
Mar 21, 2010 at 3:13 PM
Ask Ben: Javascript String Replace Method
I am trying to make a java program to count the number of times that these punctuation marks occur in a body of text: , : ; . ! - ' " ? / \ I am using this piece to ferret out the commas: numcommas ... read »
Mar 21, 2010 at 11:13 AM
A New Wrist Pain
@chiropractor suwanee, Spoken like someone trying to sell something. Other than for minor, temporary relief from some back pain, chiropractic treatment is nothing but placebo effect and quackery. ... read »
Mar 21, 2010 at 6:32 AM
ColdFusion CFPOP - My First Look
Apologies... The field name in the db for C. is "BounceCode" It stores the code / message which is returned in the email. Sorry for the confusion. ... read »