Hi Chris,

OK. That sounds like a plan, will do.

Rishi

On Mar 10, 2011, at 8:44 PM, Mattmann, Chris A (388J) wrote:

> Hey Rishi,
> 
> I like your ideas below. Feel free to create a JIRA issue to track them and 
> we can work out a solution for WebGrid that bakes in those config properties 
> for hostname, etc.
> 
> Glad you found a workaround in the interim...
> 
> Cheers,
> Chris
> 
> On Mar 10, 2011, at 6:17 PM, Verma, Rishi (317I) wrote:
> 
>> Hi Chris,
>> 
>> Thanks a lot for your help and advice.
>> 
>> Seeking a configurable route, I decided to just use my handler's 
>> configuration entry within the webgrid XML config file to store the data I 
>> need. I added some properties specifying hostname, webgrid context name, 
>> return type desired etc in that file. This information is easily passed to 
>> my OFSNGetHandler via the 'configure' method, so it works great.
>> 
>> Hostname and grid context-name information may be pretty useful in general, 
>> so maybe we could make a new category of "pre-loaded" properties for 
>> OFSNHandlerConfig? Ie. create automatic property entries for hostname etc. 
>> before it is passed as a Properties object to each handler.
>> http://svn.apache.org/repos/asf/oodt/trunk/product/src/main/java/org/apache/oodt/product/handlers/ofsn/OFSNHandlerConfig.java
>> 
>> For right now though, using the configuration file works just fine.
>> 
>> Thanks!
>> Rishi
>> 
>> 
>> On Mar 7, 2011, at 10:34 AM, Mattmann, Chris A (388J) wrote:
>> 
>>> 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
>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>> 
>> 
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 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/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 

Reply via email to