Hi Rishi,

> I trying to get access to the query (HTTP REST call) that prompts a grid 
> product handler to be invoked. Actually, I specifically need the URL's 
> hostname address, but am not sure where this resides within the scope of the 
> 'product' software package. I've written a grid product handler by 
> implementing the OFSNGetHandler class, but this class does not seem to have 
> the proper scope to view the URL call string. 

Yep by the time you are in OFSNHandler, you're no longer in 
ServletVille--you're in OODT Product Server Query Handler ville. 

> 
> The package structure in question: 
> http://svn.apache.org/repos/asf/oodt/trunk/product/src/main/java/org/apache/oodt/product/handlers/ofsn/
> 
> Typically I would think I could get the URL string from an HTTP Get request 
> handler, but I can't find such a handler in the above package scope.

Yep, GetHandler in OFSN terminology is not an HTTP GET handler. 

My suggestion would be to take a look at the web-grid package:

> http://svn.apache.org/repos/asf/oodt/trunk/grid

And take a look at its ProductQueryServlet class, which is where your 
OFSNHandler is running in the context of:

http://svn.apache.org/repos/asf/oodt/trunk/grid/src/main/java/org/apache/oodt/grid/ProductQueryServlet.java

If you wanted to do something generic, you could make getHostname() as a method 
that somehow gets flowed down in all QueryHandlers. Let's think about this...

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
Twitter: @chrismattmann
Facebook: http://facebook.com/chris.mattmann
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to