You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/09/24 07:09:57 UTC

svn commit: r1000710 [38/44] - in /incubator/oodt/site/components/maven: apidocs/org/apache/oodt/grid/ apidocs/org/apache/oodt/grid/class-use/ apidocs/org/apache/oodt/profile/handlers/cas/ apidocs/org/apache/oodt/profile/handlers/cas/class-use/ apidocs...

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/QueryServlet.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/QueryServlet.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/QueryServlet.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/QueryServlet.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,262 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>QueryServlet xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/oodt/grid/QueryServlet.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a>   <em class="jxr_javadoccomment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a>   <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a>   <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a>   <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a>   <em class="jxr_javadoccomment"> * the License.  You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a>   <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a>   <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>  
+<a name="18" href="#18" id="18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.oodt.grid;
+<a name="19" href="#19" id="19">19</a>  
+<a name="20" href="#20" id="20">20</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a name="21" href="#21" id="21">21</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
+<a name="22" href="#22" id="22">22</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
+<a name="23" href="#23" id="23">23</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="24" href="#24" id="24">24</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="25" href="#25" id="25">25</a>  <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="26" href="#26" id="26">26</a>  <strong class="jxr_keyword">import</strong> javax.servlet.ServletException;
+<a name="27" href="#27" id="27">27</a>  <strong class="jxr_keyword">import</strong> javax.servlet.http.HttpServletRequest;
+<a name="28" href="#28" id="28">28</a>  <strong class="jxr_keyword">import</strong> javax.servlet.http.HttpServletResponse;
+<a name="29" href="#29" id="29">29</a>  <strong class="jxr_keyword">import</strong> org.xml.sax.SAXException;
+<a name="30" href="#30" id="30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.XMLQuery;
+<a name="31" href="#31" id="31">31</a>  
+<a name="32" href="#32" id="32">32</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="33" href="#33" id="33">33</a>  <em class="jxr_javadoccomment"> * Query servlet provides common query functionality for profile queries and product</em>
+<a name="34" href="#34" id="34">34</a>  <em class="jxr_javadoccomment"> * queries.  It treats GETs as POSTs, retrieves the complete XMLQuery (if the</em>
+<a name="35" href="#35" id="35">35</a>  <em class="jxr_javadoccomment"> * &lt;code&gt;xmlq&lt;/code&gt; request parameter appears) or constructs a new XMLQuery (using the</em>
+<a name="36" href="#36" id="36">36</a>  <em class="jxr_javadoccomment"> * &lt;code&gt;q&lt;/code&gt; request parameter, which contains just a query expression), updates</em>
+<a name="37" href="#37" id="37">37</a>  <em class="jxr_javadoccomment"> * system properties for the handlers, instantiates any new handlers, and then runs the</em>
+<a name="38" href="#38" id="38">38</a>  <em class="jxr_javadoccomment"> * query.</em>
+<a name="39" href="#39" id="39">39</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="40" href="#40" id="40">40</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="41" href="#41" id="41">41</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/QueryServlet.html">QueryServlet</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/oodt/grid/GridServlet.html">GridServlet</a> {
+<a name="42" href="#42" id="42">42</a>  	<em class="jxr_javadoccomment">/**</em>
+<a name="43" href="#43" id="43">43</a>  <em class="jxr_javadoccomment">	 * Get a list of {@link Server}s that will provide handlers to handle the query.</em>
+<a name="44" href="#44" id="44">44</a>  <em class="jxr_javadoccomment">	 * Subclasses implement this by returning a list of either {@link ProductServer}s</em>
+<a name="45" href="#45" id="45">45</a>  <em class="jxr_javadoccomment">	 * or {@link ProfileServer}s.</em>
+<a name="46" href="#46" id="46">46</a>  <em class="jxr_javadoccomment">	 *</em>
+<a name="47" href="#47" id="47">47</a>  <em class="jxr_javadoccomment">	 * @param config a &lt;code&gt;Configuration&lt;/code&gt; value.</em>
+<a name="48" href="#48" id="48">48</a>  <em class="jxr_javadoccomment">	 * @return a &lt;code&gt;List&lt;/code&gt; value of {@link Server}s of some kind.</em>
+<a name="49" href="#49" id="49">49</a>  <em class="jxr_javadoccomment">	 */</em>
+<a name="50" href="#50" id="50">50</a>  	<strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">abstract</strong> List getServers(<a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> config);
+<a name="51" href="#51" id="51">51</a>  
+<a name="52" href="#52" id="52">52</a>  	<em class="jxr_javadoccomment">/**</em>
+<a name="53" href="#53" id="53">53</a>  <em class="jxr_javadoccomment">	 * Handle the query.  Subclasses implement this by parsing the query and returning</em>
+<a name="54" href="#54" id="54">54</a>  <em class="jxr_javadoccomment">	 * some results.</em>
+<a name="55" href="#55" id="55">55</a>  <em class="jxr_javadoccomment">	 *</em>
+<a name="56" href="#56" id="56">56</a>  <em class="jxr_javadoccomment">	 * @param query The query to handle.</em>
+<a name="57" href="#57" id="57">57</a>  <em class="jxr_javadoccomment">	 * @param handlers A list of either product &lt;code&gt;QueryHandler&lt;/code&gt;s or profile &lt;code&gt;ProfileHandler&lt;/code&gt;s.</em>
+<a name="58" href="#58" id="58">58</a>  <em class="jxr_javadoccomment">	 * @param req a &lt;code&gt;HttpServletRequest&lt;/code&gt; value.</em>
+<a name="59" href="#59" id="59">59</a>  <em class="jxr_javadoccomment">	 * @param res a &lt;code&gt;HttpServletResponse&lt;/code&gt; value.</em>
+<a name="60" href="#60" id="60">60</a>  <em class="jxr_javadoccomment">	 * @throws IOException if an I/O error occurs.</em>
+<a name="61" href="#61" id="61">61</a>  <em class="jxr_javadoccomment">	 * @throws ServletException if a servlet error occurs.</em>
+<a name="62" href="#62" id="62">62</a>  <em class="jxr_javadoccomment">	 */</em>
+<a name="63" href="#63" id="63">63</a>  	<strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> handleQuery(<a href="../../../../org/apache/oodt/xmlquery/XMLQuery.html">XMLQuery</a> query, List handlers, HttpServletRequest req, HttpServletResponse res)
+<a name="64" href="#64" id="64">64</a>  		<strong class="jxr_keyword">throws</strong> IOException, ServletException;
+<a name="65" href="#65" id="65">65</a>  
+<a name="66" href="#66" id="66">66</a>  	<em class="jxr_javadoccomment">/**</em>
+<a name="67" href="#67" id="67">67</a>  <em class="jxr_javadoccomment">	 * Treat GETs as POSTs.</em>
+<a name="68" href="#68" id="68">68</a>  <em class="jxr_javadoccomment">	 *</em>
+<a name="69" href="#69" id="69">69</a>  <em class="jxr_javadoccomment">	 * @param req a &lt;code&gt;HttpServletRequest&lt;/code&gt; value.</em>
+<a name="70" href="#70" id="70">70</a>  <em class="jxr_javadoccomment">	 * @param res a &lt;code&gt;HttpServletResponse&lt;/code&gt; value.</em>
+<a name="71" href="#71" id="71">71</a>  <em class="jxr_javadoccomment">	 * @throws IOException if an error occurs.</em>
+<a name="72" href="#72" id="72">72</a>  <em class="jxr_javadoccomment">	 * @throws ServletException if an error occurs.</em>
+<a name="73" href="#73" id="73">73</a>  <em class="jxr_javadoccomment">	 */</em>
+<a name="74" href="#74" id="74">74</a>  	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> doGet(HttpServletRequest req, HttpServletResponse res) <strong class="jxr_keyword">throws</strong> IOException, ServletException {
+<a name="75" href="#75" id="75">75</a>  		doPost(req, res);
+<a name="76" href="#76" id="76">76</a>  	}
+<a name="77" href="#77" id="77">77</a>  
+<a name="78" href="#78" id="78">78</a>  	<em class="jxr_javadoccomment">/**</em>
+<a name="79" href="#79" id="79">79</a>  <em class="jxr_javadoccomment">	 * Handle the query.</em>
+<a name="80" href="#80" id="80">80</a>  <em class="jxr_javadoccomment">	 *</em>
+<a name="81" href="#81" id="81">81</a>  <em class="jxr_javadoccomment">	 * @param req a &lt;code&gt;HttpServletRequest&lt;/code&gt; value.</em>
+<a name="82" href="#82" id="82">82</a>  <em class="jxr_javadoccomment">	 * @param res a &lt;code&gt;HttpServletResponse&lt;/code&gt; value.</em>
+<a name="83" href="#83" id="83">83</a>  <em class="jxr_javadoccomment">	 * @throws IOException if an error occurs.</em>
+<a name="84" href="#84" id="84">84</a>  <em class="jxr_javadoccomment">	 * @throws ServletException if an error occurs.</em>
+<a name="85" href="#85" id="85">85</a>  <em class="jxr_javadoccomment">	 */</em>
+<a name="86" href="#86" id="86">86</a>  	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> doPost(HttpServletRequest req, HttpServletResponse res) <strong class="jxr_keyword">throws</strong> IOException, ServletException {
+<a name="87" href="#87" id="87">87</a>  		<strong class="jxr_keyword">try</strong> {
+<a name="88" href="#88" id="88">88</a>  			XMLQuery query = getQuery(req, res);			       <em class="jxr_comment">// Get the query</em>
+<a name="89" href="#89" id="89">89</a>  			<strong class="jxr_keyword">if</strong> (query == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong>;				       <em class="jxr_comment">// No query? My favorite case, right here!</em>
+<a name="90" href="#90" id="90">90</a>  
+<a name="91" href="#91" id="91">91</a>  			Configuration config = getConfiguration();		       <em class="jxr_comment">// Get the current configuration.</em>
+<a name="92" href="#92" id="92">92</a>  			updateProperties(config);				       <em class="jxr_comment">// Using it, update the system properties</em>
+<a name="93" href="#93" id="93">93</a>  			updateHandlers(getServers(config));			       <em class="jxr_comment">// And any servers.</em>
+<a name="94" href="#94" id="94">94</a>  
+<a name="95" href="#95" id="95">95</a>  			List handlerObjects = <strong class="jxr_keyword">new</strong> ArrayList(handlers.size());	       <em class="jxr_comment">// Start with no handlers.</em>
+<a name="96" href="#96" id="96">96</a>  			<strong class="jxr_keyword">for</strong> (Iterator i = handlers.iterator(); i.hasNext();) {	       <em class="jxr_comment">// For each server</em>
+<a name="97" href="#97" id="97">97</a>  				InstantiedHandler ih = (InstantiedHandler) i.next();   <em class="jxr_comment">// Get its handler</em>
+<a name="98" href="#98" id="98">98</a>  				handlerObjects.add(ih.getHandler());		       <em class="jxr_comment">// Add its handler</em>
+<a name="99" href="#99" id="99">99</a>  			}
+<a name="100" href="#100" id="100">100</a> 			handleQuery(query, handlerObjects, req, res);		       <em class="jxr_comment">// Handlers: handle query, please</em>
+<a name="101" href="#101" id="101">101</a> 		} <strong class="jxr_keyword">catch</strong> (RuntimeException ex) {
+<a name="102" href="#102" id="102">102</a> 			<strong class="jxr_keyword">throw</strong> ex;
+<a name="103" href="#103" id="103">103</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ex) {
+<a name="104" href="#104" id="104">104</a> 			<strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ServletException(ex);
+<a name="105" href="#105" id="105">105</a> 		}
+<a name="106" href="#106" id="106">106</a> 	}
+<a name="107" href="#107" id="107">107</a> 
+<a name="108" href="#108" id="108">108</a> 	<em class="jxr_javadoccomment">/**</em>
+<a name="109" href="#109" id="109">109</a> <em class="jxr_javadoccomment">	 * Get the query from an HTTP request.  The request must have either a</em>
+<a name="110" href="#110" id="110">110</a> <em class="jxr_javadoccomment">	 * &lt;code&gt;xmlq&lt;/code&gt; parameter (which is given priority) or a &lt;code&gt;q&lt;/code&gt;</em>
+<a name="111" href="#111" id="111">111</a> <em class="jxr_javadoccomment">	 * parameter.  We expect &lt;code&gt;xmlq&lt;/code&gt; to contain the XML text format of an</em>
+<a name="112" href="#112" id="112">112</a> <em class="jxr_javadoccomment">	 * XMLQuery object.  &lt;code&gt;q&lt;/code&gt; can contain just the query expression, from</em>
+<a name="113" href="#113" id="113">113</a> <em class="jxr_javadoccomment">	 * which we'll construct a fresh &lt;code&gt;XMLQuery&lt;/code&gt; with reasonable defaults.</em>
+<a name="114" href="#114" id="114">114</a> <em class="jxr_javadoccomment">	 * If the user specifies the &lt;code&gt;q&lt;/code&gt; paramater, we'll treat it as a parsed</em>
+<a name="115" href="#115" id="115">115</a> <em class="jxr_javadoccomment">	 * query, letting the XMLQuery class parse it and build its various expression</em>
+<a name="116" href="#116" id="116">116</a> <em class="jxr_javadoccomment">	 * stacks according to the DIS syntax.  The user can specify the &lt;code&gt;unp&lt;/code&gt;</em>
+<a name="117" href="#117" id="117">117</a> <em class="jxr_javadoccomment">	 * parameter to control this behavior, though.  Set to the string</em>
+<a name="118" href="#118" id="118">118</a> <em class="jxr_javadoccomment">	 * &lt;code&gt;true&lt;/code&gt; and we'll treat the query as &lt;em&gt;unparsed&lt;/em&gt;, and the</em>
+<a name="119" href="#119" id="119">119</a> <em class="jxr_javadoccomment">	 * XMLQuery class should leave it alone.  Otherwise, an other value (or</em>
+<a name="120" href="#120" id="120">120</a> <em class="jxr_javadoccomment">	 * unspecified) will be interpreted as &lt;code&gt;false&lt;/code&gt;, meaning the query will</em>
+<a name="121" href="#121" id="121">121</a> <em class="jxr_javadoccomment">	 * be parsed.</em>
+<a name="122" href="#122" id="122">122</a> <em class="jxr_javadoccomment">	 *</em>
+<a name="123" href="#123" id="123">123</a> <em class="jxr_javadoccomment">	 * @param req a &lt;code&gt;HttpServletRequest&lt;/code&gt; value.</em>
+<a name="124" href="#124" id="124">124</a> <em class="jxr_javadoccomment">	 * @param res a &lt;code&gt;HttpServletResponse&lt;/code&gt; value.</em>
+<a name="125" href="#125" id="125">125</a> <em class="jxr_javadoccomment">	 * @return a &lt;code&gt;XMLQuery&lt;/code&gt; value.</em>
+<a name="126" href="#126" id="126">126</a> <em class="jxr_javadoccomment">	 * @throws IOException if an error occurs.</em>
+<a name="127" href="#127" id="127">127</a> <em class="jxr_javadoccomment">	 */</em>
+<a name="128" href="#128" id="128">128</a> 	<strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/oodt/xmlquery/XMLQuery.html">XMLQuery</a> getQuery(HttpServletRequest req, HttpServletResponse res) <strong class="jxr_keyword">throws</strong> IOException {
+<a name="129" href="#129" id="129">129</a> 		String xmlq = req.getParameter(<span class="jxr_string">"xmlq"</span>);				       <em class="jxr_comment">// Grab any xmlq</em>
+<a name="130" href="#130" id="130">130</a> 		String q = req.getParameter(<span class="jxr_string">"q"</span>);				       <em class="jxr_comment">// Grab any q</em>
+<a name="131" href="#131" id="131">131</a> 		String unp = req.getParameter(<span class="jxr_string">"unp"</span>);				       <em class="jxr_comment">// And grab any unp (pronounced "unp")</em>
+<a name="132" href="#132" id="132">132</a> 		<strong class="jxr_keyword">if</strong> (xmlq == <strong class="jxr_keyword">null</strong>) xmlq = <span class="jxr_string">""</span>;					       <em class="jxr_comment">// No xmlq?  Use epsilon</em>
+<a name="133" href="#133" id="133">133</a> 		<strong class="jxr_keyword">if</strong> (q == <strong class="jxr_keyword">null</strong>) q = <span class="jxr_string">""</span>;						       <em class="jxr_comment">// No q?  Use lambda</em>
+<a name="134" href="#134" id="134">134</a> 		<strong class="jxr_keyword">if</strong> (unp == <strong class="jxr_keyword">null</strong>) unp = <span class="jxr_string">""</span>;					       <em class="jxr_comment">// Use some other greek letter for empty str</em>
+<a name="135" href="#135" id="135">135</a> 		String[] mimes = req.getParameterValues(<span class="jxr_string">"mime"</span>);		       <em class="jxr_comment">// Grab any mimes</em>
+<a name="136" href="#136" id="136">136</a> 		<strong class="jxr_keyword">if</strong> (mimes == <strong class="jxr_keyword">null</strong>) mimes = EMPTY_STRING_ARRAY;			       <em class="jxr_comment">// None?  Use empty array</em>
+<a name="137" href="#137" id="137">137</a> 
+<a name="138" href="#138" id="138">138</a> 		<strong class="jxr_keyword">if</strong> (xmlq.length() &gt; 0) <strong class="jxr_keyword">try</strong> {					       <em class="jxr_comment">// Was there an xmlq?</em>
+<a name="139" href="#139" id="139">139</a> 			<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/xmlquery/XMLQuery.html">XMLQuery</a>(xmlq);				       <em class="jxr_comment">// Use it in its entirety, ignoring the rest</em>
+<a name="140" href="#140" id="140">140</a> 		} <strong class="jxr_keyword">catch</strong> (SAXException ex) {					       <em class="jxr_comment">// Can't parse it?</em>
+<a name="141" href="#141" id="141">141</a> 			res.sendError(HttpServletResponse.SC_BAD_REQUEST,	       <em class="jxr_comment">// Then that's a bad ...</em>
+<a name="142" href="#142" id="142">142</a> 				<span class="jxr_string">"cannot parse xmlq: "</span> + ex.getMessage());	       <em class="jxr_comment">// ... request, which I hate</em>
+<a name="143" href="#143" id="143">143</a> 			<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;						       <em class="jxr_comment">// so flag it with a null</em>
+<a name="144" href="#144" id="144">144</a> 		} <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (q.length() &gt; 0) {					       <em class="jxr_comment">// Was there a q?</em>
+<a name="145" href="#145" id="145">145</a> 			<strong class="jxr_keyword">boolean</strong> unparsed = <span class="jxr_string">"true"</span>.equals(unp);			       <em class="jxr_comment">// If so, was there also an unp?</em>
+<a name="146" href="#146" id="146">146</a> 			<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/xmlquery/XMLQuery.html">XMLQuery</a>(q, <span class="jxr_string">"wgq"</span>, <span class="jxr_string">"Web Grid Query"</span>,		       <em class="jxr_comment">// Use it to make an XMLQuery</em>
+<a name="147" href="#147" id="147">147</a> 				<span class="jxr_string">"Query from Web-Grid"</span>, <em class="jxr_comment">/*<em class="jxr_comment">ddID*/</em><strong class="jxr_keyword">null</strong>,                   <em class="jxr_comment">// And all of these extra</em></em>
+<a name="148" href="#148" id="148">148</a> 				<em class="jxr_comment">/*<em class="jxr_comment">resultModeId*/</em><strong class="jxr_keyword">null</strong>, /*propType*/<strong class="jxr_keyword">null</strong>,                <em class="jxr_comment">// parameters really annoy</em></em>
+<a name="149" href="#149" id="149">149</a> 				<em class="jxr_comment">/*<em class="jxr_comment">propLevels*/</em><strong class="jxr_keyword">null</strong>, /*maxResults*/Integer.MAX_VALUE,   <em class="jxr_comment">// the poop out of me</em></em>
+<a name="150" href="#150" id="150">150</a> 				Arrays.asList(mimes), !unparsed);                      <em class="jxr_comment">// It's just a query for /sbin/fsck sake!</em>
+<a name="151" href="#151" id="151">151</a> 		}
+<a name="152" href="#152" id="152">152</a> 
+<a name="153" href="#153" id="153">153</a> 		res.sendError(HttpServletResponse.SC_BAD_REQUEST, <span class="jxr_string">"xmlq or q parameters required"</span>);
+<a name="154" href="#154" id="154">154</a> 		<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="155" href="#155" id="155">155</a> 	}
+<a name="156" href="#156" id="156">156</a> 
+<a name="157" href="#157" id="157">157</a> 	<em class="jxr_javadoccomment">/**</em>
+<a name="158" href="#158" id="158">158</a> <em class="jxr_javadoccomment">	 * Update the query handlers instantiated.</em>
+<a name="159" href="#159" id="159">159</a> <em class="jxr_javadoccomment">	 *</em>
+<a name="160" href="#160" id="160">160</a> <em class="jxr_javadoccomment">	 * @param servers a &lt;code&gt;List&lt;/code&gt; of {@link Server}s.</em>
+<a name="161" href="#161" id="161">161</a> <em class="jxr_javadoccomment">	 * @throws ClassNotFoundException if a class can't be found.</em>
+<a name="162" href="#162" id="162">162</a> <em class="jxr_javadoccomment">	 * @throws InstantiationException if a class can't be instantiated.</em>
+<a name="163" href="#163" id="163">163</a> <em class="jxr_javadoccomment">	 * @throws IllegalAccessException if a constructor isn't public.</em>
+<a name="164" href="#164" id="164">164</a> <em class="jxr_javadoccomment">	 */</em>
+<a name="165" href="#165" id="165">165</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> updateHandlers(List servers) <strong class="jxr_keyword">throws</strong> ClassNotFoundException, InstantiationException,
+<a name="166" href="#166" id="166">166</a> 		IllegalAccessException {
+<a name="167" href="#167" id="167">167</a> 		eachServer:
+<a name="168" href="#168" id="168">168</a> 		<strong class="jxr_keyword">for</strong> (Iterator i = servers.iterator(); i.hasNext();) {		       <em class="jxr_comment">// For each server</em>
+<a name="169" href="#169" id="169">169</a> 			Server server = (Server) i.next();			       <em class="jxr_comment">// Grab the server</em>
+<a name="170" href="#170" id="170">170</a> 			<strong class="jxr_keyword">for</strong> (Iterator j = handlers.iterator(); j.hasNext();) {	       <em class="jxr_comment">// For each handler</em>
+<a name="171" href="#171" id="171">171</a> 				InstantiedHandler handler = (InstantiedHandler) j.next(); <em class="jxr_comment">// Grab the handler</em>
+<a name="172" href="#172" id="172">172</a> 				<strong class="jxr_keyword">if</strong> (handler.getServer().equals(server))		       <em class="jxr_comment">// Have we already instantiated?</em>
+<a name="173" href="#173" id="173">173</a> 					<strong class="jxr_keyword">continue</strong> eachServer;			       <em class="jxr_comment">// Yes, try the next server</em>
+<a name="174" href="#174" id="174">174</a> 			}
+<a name="175" href="#175" id="175">175</a> 			InstantiedHandler handler				       <em class="jxr_comment">// No.  Create ...</em>
+<a name="176" href="#176" id="176">176</a> 				= <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/grid/QueryServlet.html">InstantiedHandler</a>(server, server.createHandler()); <em class="jxr_comment">// ... a fresh handler</em>
+<a name="177" href="#177" id="177">177</a> 			handlers.add(handler);					       <em class="jxr_comment">// Save it</em>
+<a name="178" href="#178" id="178">178</a> 		}
+<a name="179" href="#179" id="179">179</a> 
+<a name="180" href="#180" id="180">180</a> 		<strong class="jxr_keyword">for</strong> (Iterator i = handlers.iterator(); i.hasNext();) {		       <em class="jxr_comment">// Now, for each handler</em>
+<a name="181" href="#181" id="181">181</a> 			InstantiedHandler handler = (InstantiedHandler) i.next();      <em class="jxr_comment">// Grab the handler</em>
+<a name="182" href="#182" id="182">182</a> 			<strong class="jxr_keyword">if</strong> (!servers.contains(handler.getServer()))		       <em class="jxr_comment">// Does its server still exist?</em>
+<a name="183" href="#183" id="183">183</a> 				i.remove();					       <em class="jxr_comment">// If not, remove the handler</em>
+<a name="184" href="#184" id="184">184</a> 		}
+<a name="185" href="#185" id="185">185</a> 	}
+<a name="186" href="#186" id="186">186</a> 
+<a name="187" href="#187" id="187">187</a> 	<em class="jxr_javadoccomment">/**</em>
+<a name="188" href="#188" id="188">188</a> <em class="jxr_javadoccomment">	 * Update system properties used by query handlers, if any have changed.</em>
+<a name="189" href="#189" id="189">189</a> <em class="jxr_javadoccomment">	 *</em>
+<a name="190" href="#190" id="190">190</a> <em class="jxr_javadoccomment">	 * @param config a &lt;code&gt;Configuration&lt;/code&gt; value.</em>
+<a name="191" href="#191" id="191">191</a> <em class="jxr_javadoccomment">	 */</em>
+<a name="192" href="#192" id="192">192</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> updateProperties(<a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> config) {
+<a name="193" href="#193" id="193">193</a> 		<strong class="jxr_keyword">if</strong> (properties != <strong class="jxr_keyword">null</strong>) {					       <em class="jxr_comment">// Any old properties?</em>
+<a name="194" href="#194" id="194">194</a> 			<strong class="jxr_keyword">if</strong> (properties.equals(config.getProperties())) <strong class="jxr_keyword">return</strong>;	       <em class="jxr_comment">// Yes, any changes?  No?  Then done.</em>
+<a name="195" href="#195" id="195">195</a> 			<strong class="jxr_keyword">for</strong> (Iterator i = properties.keySet().iterator(); i.hasNext();)	<em class="jxr_comment">// Yes, then grab each old setting</em>
+<a name="196" href="#196" id="196">196</a> 				System.getProperties().remove(i.next());	       <em class="jxr_comment">// and remove it.</em>
+<a name="197" href="#197" id="197">197</a> 		}
+<a name="198" href="#198" id="198">198</a> 		properties = (Properties) config.getProperties().clone();	       <em class="jxr_comment">// Now copy the new settings</em>
+<a name="199" href="#199" id="199">199</a> 		System.getProperties().putAll(properties);			       <em class="jxr_comment">// And set them!</em>
+<a name="200" href="#200" id="200">200</a> 	}
+<a name="201" href="#201" id="201">201</a> 
+<a name="202" href="#202" id="202">202</a> 	<em class="jxr_javadoccomment">/**</em>
+<a name="203" href="#203" id="203">203</a> <em class="jxr_javadoccomment">	 * Instantiated query handlers.</em>
+<a name="204" href="#204" id="204">204</a> <em class="jxr_javadoccomment">	 *</em>
+<a name="205" href="#205" id="205">205</a> <em class="jxr_javadoccomment">	 * These are either &lt;code&gt;ProfileHandler&lt;/code&gt;s or product &lt;code&gt;QueryHandler&lt;/code&gt;s.</em>
+<a name="206" href="#206" id="206">206</a> <em class="jxr_javadoccomment">	 */</em>
+<a name="207" href="#207" id="207">207</a> 	<strong class="jxr_keyword">protected</strong> List handlers = <strong class="jxr_keyword">new</strong> ArrayList();
+<a name="208" href="#208" id="208">208</a> 
+<a name="209" href="#209" id="209">209</a> 	<em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Current settings of system properties. */</em>
+<a name="210" href="#210" id="210">210</a> 	<strong class="jxr_keyword">private</strong> Properties properties;
+<a name="211" href="#211" id="211">211</a> 
+<a name="212" href="#212" id="212">212</a> 	<em class="jxr_javadoccomment">/**</em>
+<a name="213" href="#213" id="213">213</a> <em class="jxr_javadoccomment">	 * An instantiated handler.  This is a &lt;code&gt;ProfileHandler&lt;/code&gt; or a product</em>
+<a name="214" href="#214" id="214">214</a> <em class="jxr_javadoccomment">	 * &lt;code&gt;QueryHandler&lt;/code&gt; along with the {@link Server} that defined it.</em>
+<a name="215" href="#215" id="215">215</a> <em class="jxr_javadoccomment">	 */</em>
+<a name="216" href="#216" id="216">216</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/QueryServlet.html">InstantiedHandler</a> {
+<a name="217" href="#217" id="217">217</a> 		<em class="jxr_javadoccomment">/**</em>
+<a name="218" href="#218" id="218">218</a> <em class="jxr_javadoccomment">		 * Creates a new &lt;code&gt;InstantiedHandler&lt;/code&gt; instance.</em>
+<a name="219" href="#219" id="219">219</a> <em class="jxr_javadoccomment">		 *</em>
+<a name="220" href="#220" id="220">220</a> <em class="jxr_javadoccomment">		 * @param server a &lt;code&gt;Server&lt;/code&gt;.</em>
+<a name="221" href="#221" id="221">221</a> <em class="jxr_javadoccomment">		 * @param handler a &lt;code&gt;ProfileHandler&lt;/code&gt; or a product &lt;code&gt;QueryHandler&lt;/code&gt;.</em>
+<a name="222" href="#222" id="222">222</a> <em class="jxr_javadoccomment">		 */</em>
+<a name="223" href="#223" id="223">223</a> 		InstantiedHandler(<a href="../../../../org/apache/oodt/grid/Server.html">Server</a> server, Object handler) {
+<a name="224" href="#224" id="224">224</a> 			<strong class="jxr_keyword">this</strong>.server = server;
+<a name="225" href="#225" id="225">225</a> 			<strong class="jxr_keyword">this</strong>.handler = handler;
+<a name="226" href="#226" id="226">226</a> 		}
+<a name="227" href="#227" id="227">227</a> 
+<a name="228" href="#228" id="228">228</a> 		<em class="jxr_javadoccomment">/**</em>
+<a name="229" href="#229" id="229">229</a> <em class="jxr_javadoccomment">		 * Get the server that defined this handler.</em>
+<a name="230" href="#230" id="230">230</a> <em class="jxr_javadoccomment">		 *</em>
+<a name="231" href="#231" id="231">231</a> <em class="jxr_javadoccomment">		 * @return a &lt;code&gt;Server&lt;/code&gt; value.</em>
+<a name="232" href="#232" id="232">232</a> <em class="jxr_javadoccomment">		 */</em>
+<a name="233" href="#233" id="233">233</a> 		<strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> getServer() {
+<a name="234" href="#234" id="234">234</a> 			<strong class="jxr_keyword">return</strong> server;
+<a name="235" href="#235" id="235">235</a> 		}
+<a name="236" href="#236" id="236">236</a> 
+<a name="237" href="#237" id="237">237</a> 		<em class="jxr_javadoccomment">/**</em>
+<a name="238" href="#238" id="238">238</a> <em class="jxr_javadoccomment">		 * Get the handler.</em>
+<a name="239" href="#239" id="239">239</a> <em class="jxr_javadoccomment">		 *</em>
+<a name="240" href="#240" id="240">240</a> <em class="jxr_javadoccomment">		 * @return a &lt;code&gt;ProfileHandler&lt;/code&gt; or a product &lt;code&gt;QueryHandler&lt;/code&gt;.</em>
+<a name="241" href="#241" id="241">241</a> <em class="jxr_javadoccomment">		 */</em>
+<a name="242" href="#242" id="242">242</a> 		<strong class="jxr_keyword">public</strong> Object getHandler() {
+<a name="243" href="#243" id="243">243</a> 			<strong class="jxr_keyword">return</strong> handler;
+<a name="244" href="#244" id="244">244</a> 		}
+<a name="245" href="#245" id="245">245</a> 
+<a name="246" href="#246" id="246">246</a> 		<em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> that defines the handler. */</em>
+<a name="247" href="#247" id="247">247</a> 		<strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> server;
+<a name="248" href="#248" id="248">248</a> 
+<a name="249" href="#249" id="249">249</a> 		<em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> A &lt;code&gt;ProfileHandler&lt;/code&gt; or a product &lt;code&gt;QueryHandler&lt;/code&gt; */</em>
+<a name="250" href="#250" id="250">250</a> 		<strong class="jxr_keyword">private</strong> Object handler;
+<a name="251" href="#251" id="251">251</a> 	}
+<a name="252" href="#252" id="252">252</a> 
+<a name="253" href="#253" id="253">253</a> 	<em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> So we don't create a bunch of empty string arrays, here's the only one we'll ever need. */</em>
+<a name="254" href="#254" id="254">254</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String[] EMPTY_STRING_ARRAY = <strong class="jxr_keyword">new</strong> String[0];
+<a name="255" href="#255" id="255">255</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Server.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Server.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Server.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Server.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,177 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Server xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/oodt/grid/Server.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a>   <em class="jxr_javadoccomment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a>   <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a>   <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a>   <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a>   <em class="jxr_javadoccomment"> * the License.  You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a>   <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a>   <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>  
+<a name="18" href="#18" id="18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.oodt.grid;
+<a name="19" href="#19" id="19">19</a>  
+<a name="20" href="#20" id="20">20</a>  <strong class="jxr_keyword">import</strong> java.io.Serializable;
+<a name="21" href="#21" id="21">21</a>  <strong class="jxr_keyword">import</strong> java.net.URL;
+<a name="22" href="#22" id="22">22</a>  <strong class="jxr_keyword">import</strong> java.net.URLClassLoader;
+<a name="23" href="#23" id="23">23</a>  <strong class="jxr_keyword">import</strong> org.w3c.dom.Document;
+<a name="24" href="#24" id="24">24</a>  <strong class="jxr_keyword">import</strong> org.w3c.dom.Element;
+<a name="25" href="#25" id="25">25</a>  <strong class="jxr_keyword">import</strong> org.w3c.dom.Node;
+<a name="26" href="#26" id="26">26</a>  <strong class="jxr_keyword">import</strong> org.xml.sax.SAXException;
+<a name="27" href="#27" id="27">27</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="28" href="#28" id="28">28</a>  
+<a name="29" href="#29" id="29">29</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="30" href="#30" id="30">30</a>  <em class="jxr_javadoccomment"> * An abstract server defines the code base and class name of a query handler.</em>
+<a name="31" href="#31" id="31">31</a>  <em class="jxr_javadoccomment"> * </em>
+<a name="32" href="#32" id="32">32</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="33" href="#33" id="33">33</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> implements Serializable {
+<a name="34" href="#34" id="34">34</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="35" href="#35" id="35">35</a>  <em class="jxr_javadoccomment">   * Creates a new &lt;code&gt;Server&lt;/code&gt; instance.</em>
+<a name="36" href="#36" id="36">36</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="37" href="#37" id="37">37</a>  <em class="jxr_javadoccomment">   * @param configuration</em>
+<a name="38" href="#38" id="38">38</a>  <em class="jxr_javadoccomment">   *          System configuration.</em>
+<a name="39" href="#39" id="39">39</a>  <em class="jxr_javadoccomment">   * @param className</em>
+<a name="40" href="#40" id="40">40</a>  <em class="jxr_javadoccomment">   *          Class name of the query handler.</em>
+<a name="41" href="#41" id="41">41</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="42" href="#42" id="42">42</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a>(<a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> configuration, String className) {
+<a name="43" href="#43" id="43">43</a>      <strong class="jxr_keyword">this</strong>.configuration = configuration;
+<a name="44" href="#44" id="44">44</a>      <strong class="jxr_keyword">this</strong>.className = className;
+<a name="45" href="#45" id="45">45</a>    }
+<a name="46" href="#46" id="46">46</a>  
+<a name="47" href="#47" id="47">47</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="48" href="#48" id="48">48</a>  <em class="jxr_javadoccomment">   * Render this server into XML.</em>
+<a name="49" href="#49" id="49">49</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="50" href="#50" id="50">50</a>  <em class="jxr_javadoccomment">   * @param owner</em>
+<a name="51" href="#51" id="51">51</a>  <em class="jxr_javadoccomment">   *          Owning document.</em>
+<a name="52" href="#52" id="52">52</a>  <em class="jxr_javadoccomment">   * @return This server, as XML.</em>
+<a name="53" href="#53" id="53">53</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="54" href="#54" id="54">54</a>    <strong class="jxr_keyword">public</strong> Node toXML(Document owner) {
+<a name="55" href="#55" id="55">55</a>      Element elem = owner.createElement(<span class="jxr_string">"server"</span>);
+<a name="56" href="#56" id="56">56</a>      elem.setAttribute(<span class="jxr_string">"className"</span>, className);
+<a name="57" href="#57" id="57">57</a>      elem.setAttribute(<span class="jxr_string">"type"</span>, getType());
+<a name="58" href="#58" id="58">58</a>      <strong class="jxr_keyword">return</strong> elem;
+<a name="59" href="#59" id="59">59</a>    }
+<a name="60" href="#60" id="60">60</a>  
+<a name="61" href="#61" id="61">61</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="62" href="#62" id="62">62</a>  <em class="jxr_javadoccomment">   * Get the class name of the query handler.</em>
+<a name="63" href="#63" id="63">63</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="64" href="#64" id="64">64</a>  <em class="jxr_javadoccomment">   * @return Class name of the query handler.</em>
+<a name="65" href="#65" id="65">65</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="66" href="#66" id="66">66</a>    <strong class="jxr_keyword">public</strong> String getClassName() {
+<a name="67" href="#67" id="67">67</a>      <strong class="jxr_keyword">return</strong> className;
+<a name="68" href="#68" id="68">68</a>    }
+<a name="69" href="#69" id="69">69</a>  
+<a name="70" href="#70" id="70">70</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="71" href="#71" id="71">71</a>  <em class="jxr_javadoccomment">   * Create the handler.</em>
+<a name="72" href="#72" id="72">72</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="73" href="#73" id="73">73</a>  <em class="jxr_javadoccomment">   * @return an instantiated handlre.</em>
+<a name="74" href="#74" id="74">74</a>  <em class="jxr_javadoccomment">   * @throws ClassNotFoundException</em>
+<a name="75" href="#75" id="75">75</a>  <em class="jxr_javadoccomment">   *           if the handler class can't be found.</em>
+<a name="76" href="#76" id="76">76</a>  <em class="jxr_javadoccomment">   * @throws InstantiationException</em>
+<a name="77" href="#77" id="77">77</a>  <em class="jxr_javadoccomment">   *           if the handler object can't be created.</em>
+<a name="78" href="#78" id="78">78</a>  <em class="jxr_javadoccomment">   * @throws IllegalAccessException</em>
+<a name="79" href="#79" id="79">79</a>  <em class="jxr_javadoccomment">   *           if the handler class doesn't provide a public no-args</em>
+<a name="80" href="#80" id="80">80</a>  <em class="jxr_javadoccomment">   *           constructor.</em>
+<a name="81" href="#81" id="81">81</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="82" href="#82" id="82">82</a>    <strong class="jxr_keyword">public</strong> Object createHandler() <strong class="jxr_keyword">throws</strong> ClassNotFoundException,
+<a name="83" href="#83" id="83">83</a>        InstantiationException, IllegalAccessException {
+<a name="84" href="#84" id="84">84</a>      List urlList = configuration.getCodeBases();
+<a name="85" href="#85" id="85">85</a>      Class clazz;
+<a name="86" href="#86" id="86">86</a>      <strong class="jxr_keyword">if</strong> (urlList.isEmpty())
+<a name="87" href="#87" id="87">87</a>        clazz = Class.forName(className);
+<a name="88" href="#88" id="88">88</a>      <strong class="jxr_keyword">else</strong> {
+<a name="89" href="#89" id="89">89</a>        URL[] urls = (URL[]) urlList.toArray(EMPTY_URL_ARRAY);
+<a name="90" href="#90" id="90">90</a>        URLClassLoader loader = <strong class="jxr_keyword">new</strong> URLClassLoader(urls, getClass()
+<a name="91" href="#91" id="91">91</a>            .getClassLoader());
+<a name="92" href="#92" id="92">92</a>        clazz = loader.loadClass(className);
+<a name="93" href="#93" id="93">93</a>      }
+<a name="94" href="#94" id="94">94</a>      <strong class="jxr_keyword">return</strong> clazz.newInstance();
+<a name="95" href="#95" id="95">95</a>    }
+<a name="96" href="#96" id="96">96</a>  
+<a name="97" href="#97" id="97">97</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="98" href="#98" id="98">98</a>  <em class="jxr_javadoccomment">   * Set the class name of the handler.</em>
+<a name="99" href="#99" id="99">99</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="100" href="#100" id="100">100</a> <em class="jxr_javadoccomment">   * @param className</em>
+<a name="101" href="#101" id="101">101</a> <em class="jxr_javadoccomment">   *          Class name of the handler.</em>
+<a name="102" href="#102" id="102">102</a> <em class="jxr_javadoccomment">   */</em>
+<a name="103" href="#103" id="103">103</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setClassName(String className) {
+<a name="104" href="#104" id="104">104</a>     <strong class="jxr_keyword">this</strong>.className = className;
+<a name="105" href="#105" id="105">105</a>   }
+<a name="106" href="#106" id="106">106</a> 
+<a name="107" href="#107" id="107">107</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="108" href="#108" id="108">108</a> <em class="jxr_javadoccomment">   * Return the type of the handler.</em>
+<a name="109" href="#109" id="109">109</a> <em class="jxr_javadoccomment">   * </em>
+<a name="110" href="#110" id="110">110</a> <em class="jxr_javadoccomment">   * @return Either &lt;code&gt;product&lt;/code&gt; or &lt;code&gt;profile&lt;/code&gt;.</em>
+<a name="111" href="#111" id="111">111</a> <em class="jxr_javadoccomment">   */</em>
+<a name="112" href="#112" id="112">112</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">abstract</strong> String getType();
+<a name="113" href="#113" id="113">113</a> 
+<a name="114" href="#114" id="114">114</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode() {
+<a name="115" href="#115" id="115">115</a>     <strong class="jxr_keyword">return</strong> configuration.hashCode() ^ className.hashCode();
+<a name="116" href="#116" id="116">116</a>   }
+<a name="117" href="#117" id="117">117</a> 
+<a name="118" href="#118" id="118">118</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object obj) {
+<a name="119" href="#119" id="119">119</a>     <strong class="jxr_keyword">if</strong> (obj == <strong class="jxr_keyword">this</strong>)
+<a name="120" href="#120" id="120">120</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="121" href="#121" id="121">121</a>     <strong class="jxr_keyword">if</strong> (obj instanceof Server) {
+<a name="122" href="#122" id="122">122</a>       <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> rhs = (Server) obj;
+<a name="123" href="#123" id="123">123</a>       <strong class="jxr_keyword">return</strong> configuration.equals(configuration)
+<a name="124" href="#124" id="124">124</a>           &amp;&amp; className.equals(rhs.className);
+<a name="125" href="#125" id="125">125</a>     }
+<a name="126" href="#126" id="126">126</a>     <strong class="jxr_keyword">return</strong> false;
+<a name="127" href="#127" id="127">127</a>   }
+<a name="128" href="#128" id="128">128</a> 
+<a name="129" href="#129" id="129">129</a>   <strong class="jxr_keyword">public</strong> String toString() {
+<a name="130" href="#130" id="130">130</a>     <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Server[className="</span> + className + <span class="jxr_string">"]"</span>;
+<a name="131" href="#131" id="131">131</a>   }
+<a name="132" href="#132" id="132">132</a> 
+<a name="133" href="#133" id="133">133</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="134" href="#134" id="134">134</a> <em class="jxr_javadoccomment">   * Create a server from an XML element.</em>
+<a name="135" href="#135" id="135">135</a> <em class="jxr_javadoccomment">   * </em>
+<a name="136" href="#136" id="136">136</a> <em class="jxr_javadoccomment">   * @param elem</em>
+<a name="137" href="#137" id="137">137</a> <em class="jxr_javadoccomment">   *          XML element, presumed to be a &amp;lt;server&amp;gt; element.</em>
+<a name="138" href="#138" id="138">138</a> <em class="jxr_javadoccomment">   * @return a &lt;code&gt;Server&lt;/code&gt; subclass.</em>
+<a name="139" href="#139" id="139">139</a> <em class="jxr_javadoccomment">   * @throws SAXException</em>
+<a name="140" href="#140" id="140">140</a> <em class="jxr_javadoccomment">   *           if the element can't be properly parsed.</em>
+<a name="141" href="#141" id="141">141</a> <em class="jxr_javadoccomment">   */</em>
+<a name="142" href="#142" id="142">142</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/oodt/grid/Server.html">Server</a> create(<a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> configuration, Element elem)
+<a name="143" href="#143" id="143">143</a>       <strong class="jxr_keyword">throws</strong> SAXException {
+<a name="144" href="#144" id="144">144</a>     String type = elem.getAttribute(<span class="jxr_string">"type"</span>);
+<a name="145" href="#145" id="145">145</a>     <strong class="jxr_keyword">if</strong> (type == <strong class="jxr_keyword">null</strong>)
+<a name="146" href="#146" id="146">146</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> SAXException(<span class="jxr_string">"type attribute missing from &lt;"</span>
+<a name="147" href="#147" id="147">147</a>           + elem.getNodeName() + <span class="jxr_string">"&gt;"</span>);
+<a name="148" href="#148" id="148">148</a> 
+<a name="149" href="#149" id="149">149</a>     String className = elem.getAttribute(<span class="jxr_string">"className"</span>);
+<a name="150" href="#150" id="150">150</a>     <strong class="jxr_keyword">if</strong> (className == <strong class="jxr_keyword">null</strong>)
+<a name="151" href="#151" id="151">151</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> SAXException(<span class="jxr_string">"className attribute missing from &lt;"</span>
+<a name="152" href="#152" id="152">152</a>           + elem.getNodeName() + <span class="jxr_string">"&gt;"</span>);
+<a name="153" href="#153" id="153">153</a> 
+<a name="154" href="#154" id="154">154</a>     <em class="jxr_comment">// Replace with a factory some day...</em>
+<a name="155" href="#155" id="155">155</a>     <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"product"</span>.equals(type))
+<a name="156" href="#156" id="156">156</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/grid/ProductServer.html">ProductServer</a>(configuration, className);
+<a name="157" href="#157" id="157">157</a>     <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"profile"</span>.equals(type))
+<a name="158" href="#158" id="158">158</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/grid/ProfileServer.html">ProfileServer</a>(configuration, className);
+<a name="159" href="#159" id="159">159</a>     <strong class="jxr_keyword">else</strong>
+<a name="160" href="#160" id="160">160</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> SAXException(<span class="jxr_string">"unknown server type `"</span> + type + <span class="jxr_string">"'"</span>);
+<a name="161" href="#161" id="161">161</a>   }
+<a name="162" href="#162" id="162">162</a> 
+<a name="163" href="#163" id="163">163</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Configuration. */</em>
+<a name="164" href="#164" id="164">164</a>   <strong class="jxr_keyword">protected</strong> <a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> configuration;
+<a name="165" href="#165" id="165">165</a> 
+<a name="166" href="#166" id="166">166</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Class name of the handler class. */</em>
+<a name="167" href="#167" id="167">167</a>   <strong class="jxr_keyword">protected</strong> String className;
+<a name="168" href="#168" id="168">168</a> 
+<a name="169" href="#169" id="169">169</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> URL[] EMPTY_URL_ARRAY = <strong class="jxr_keyword">new</strong> URL[0];
+<a name="170" href="#170" id="170">170</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Utility.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Utility.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Utility.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/Utility.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,89 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Utility xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/oodt/grid/Utility.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a>   <em class="jxr_javadoccomment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a>   <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a>   <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a>   <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a>   <em class="jxr_javadoccomment"> * the License.  You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a>   <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a>   <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>  
+<a name="18" href="#18" id="18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.oodt.grid;
+<a name="19" href="#19" id="19">19</a>  
+<a name="20" href="#20" id="20">20</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="21" href="#21" id="21">21</a>  <em class="jxr_javadoccomment"> * Utility methods for web grid.</em>
+<a name="22" href="#22" id="22">22</a>  <em class="jxr_javadoccomment"> * </em>
+<a name="23" href="#23" id="23">23</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="24" href="#24" id="24">24</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/Utility.html">Utility</a> {
+<a name="25" href="#25" id="25">25</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="26" href="#26" id="26">26</a>  <em class="jxr_javadoccomment">   * Provide XHTML-safe escaping for a string. Basically, this is the same as</em>
+<a name="27" href="#27" id="27">27</a>  <em class="jxr_javadoccomment">   * XML-escaping, but since some user agents don't recognize</em>
+<a name="28" href="#28" id="28">28</a>  <em class="jxr_javadoccomment">   * &lt;code&gt;&amp;amp;apos;&lt;/code&gt;, we use &lt;code&gt;&amp;amp;#39;&lt;/code&gt; instead.</em>
+<a name="29" href="#29" id="29">29</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="30" href="#30" id="30">30</a>  <em class="jxr_javadoccomment">   * @param str</em>
+<a name="31" href="#31" id="31">31</a>  <em class="jxr_javadoccomment">   *          String to escape.</em>
+<a name="32" href="#32" id="32">32</a>  <em class="jxr_javadoccomment">   * @return &lt;var&gt;str&lt;/var&gt; escaped.</em>
+<a name="33" href="#33" id="33">33</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="34" href="#34" id="34">34</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> String esc(String str) {
+<a name="35" href="#35" id="35">35</a>      StringBuffer s = <strong class="jxr_keyword">new</strong> StringBuffer(str.length()); <em class="jxr_comment">// Assume at least the same</em>
+<a name="36" href="#36" id="36">36</a>      <em class="jxr_comment">// length</em>
+<a name="37" href="#37" id="37">37</a>      <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; str.length(); ++i) { <em class="jxr_comment">// For each character</em>
+<a name="38" href="#38" id="38">38</a>        <strong class="jxr_keyword">char</strong> c = str.charAt(i); <em class="jxr_comment">// Grab the character</em>
+<a name="39" href="#39" id="39">39</a>        <strong class="jxr_keyword">switch</strong> (c) { <em class="jxr_comment">// Now consider what it is ...</em>
+<a name="40" href="#40" id="40">40</a>        <strong class="jxr_keyword">case</strong> '&lt;': <em class="jxr_comment">// A less than?</em>
+<a name="41" href="#41" id="41">41</a>          s.append(<span class="jxr_string">"&amp;lt;"</span>); <em class="jxr_comment">// Well, that's &amp;lt;</em>
+<a name="42" href="#42" id="42">42</a>          <strong class="jxr_keyword">break</strong>;
+<a name="43" href="#43" id="43">43</a>        <strong class="jxr_keyword">case</strong> '&gt;': <em class="jxr_comment">// A greater than?</em>
+<a name="44" href="#44" id="44">44</a>          s.append(<span class="jxr_string">"&amp;gt;"</span>); <em class="jxr_comment">// That's &amp;gt;</em>
+<a name="45" href="#45" id="45">45</a>          <strong class="jxr_keyword">break</strong>;
+<a name="46" href="#46" id="46">46</a>        <strong class="jxr_keyword">case</strong> '&amp;': <em class="jxr_comment">// An ampersand?</em>
+<a name="47" href="#47" id="47">47</a>          s.append(<span class="jxr_string">"&amp;amp;"</span>); <em class="jxr_comment">// We all know what that is</em>
+<a name="48" href="#48" id="48">48</a>          <strong class="jxr_keyword">break</strong>;
+<a name="49" href="#49" id="49">49</a>        <strong class="jxr_keyword">case</strong> '\'': <em class="jxr_comment">// A tick?</em>
+<a name="50" href="#50" id="50">50</a>          s.append(<span class="jxr_string">"&amp;#39;"</span>); <em class="jxr_comment">// Not &amp;apos; ! TRICKY!</em>
+<a name="51" href="#51" id="51">51</a>          <strong class="jxr_keyword">break</strong>;
+<a name="52" href="#52" id="52">52</a>        <strong class="jxr_keyword">case</strong> '\"': <em class="jxr_comment">// A quote?</em>
+<a name="53" href="#53" id="53">53</a>          s.append(<span class="jxr_string">"&amp;quot;"</span>); <em class="jxr_comment">// Yadda, yadda, yadda</em>
+<a name="54" href="#54" id="54">54</a>          <strong class="jxr_keyword">break</strong>;
+<a name="55" href="#55" id="55">55</a>        <strong class="jxr_keyword">default</strong>: <em class="jxr_comment">// Anything else may pass</em>
+<a name="56" href="#56" id="56">56</a>          s.append(c); <em class="jxr_comment">// ... through unchanged</em>
+<a name="57" href="#57" id="57">57</a>          <strong class="jxr_keyword">break</strong>;
+<a name="58" href="#58" id="58">58</a>        }
+<a name="59" href="#59" id="59">59</a>      }
+<a name="60" href="#60" id="60">60</a>      <strong class="jxr_keyword">return</strong> s.toString(); <em class="jxr_comment">// Donenacious.</em>
+<a name="61" href="#61" id="61">61</a>    }
+<a name="62" href="#62" id="62">62</a>  
+<a name="63" href="#63" id="63">63</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="64" href="#64" id="64">64</a>  <em class="jxr_javadoccomment">   * Tell if a host name refers to the localhost. This checks the standard IPv6</em>
+<a name="65" href="#65" id="65">65</a>  <em class="jxr_javadoccomment">   * address, IPv4 address, and host name for localhost.</em>
+<a name="66" href="#66" id="66">66</a>  <em class="jxr_javadoccomment">   * </em>
+<a name="67" href="#67" id="67">67</a>  <em class="jxr_javadoccomment">   * @param host</em>
+<a name="68" href="#68" id="68">68</a>  <em class="jxr_javadoccomment">   *          Host name to check.</em>
+<a name="69" href="#69" id="69">69</a>  <em class="jxr_javadoccomment">   * @return True if &lt;var&gt;host&lt;/var&gt; names the localhost.</em>
+<a name="70" href="#70" id="70">70</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="71" href="#71" id="71">71</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> isLocalhost(String host) {
+<a name="72" href="#72" id="72">72</a>      <strong class="jxr_keyword">return</strong> <span class="jxr_string">"0:0:0:0:0:0:0:1"</span>.equals(host) || <span class="jxr_string">"127.0.0.1"</span>.equals(host)
+<a name="73" href="#73" id="73">73</a>          || <span class="jxr_string">"localhost"</span>.equals(host);
+<a name="74" href="#74" id="74">74</a>    }
+<a name="75" href="#75" id="75">75</a>  
+<a name="76" href="#76" id="76">76</a>    <em class="jxr_javadoccomment">/**</em>
+<a name="77" href="#77" id="77">77</a>  <em class="jxr_javadoccomment">   * Do not call.</em>
+<a name="78" href="#78" id="78">78</a>  <em class="jxr_javadoccomment">   */</em>
+<a name="79" href="#79" id="79">79</a>    <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/oodt/grid/Utility.html">Utility</a>() {
+<a name="80" href="#80" id="80">80</a>      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalStateException(<span class="jxr_string">"This is a \u00abutility\u00bb class"</span>);
+<a name="81" href="#81" id="81">81</a>    }
+<a name="82" href="#82" id="82">82</a>  }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,56 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.grid</title><link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /></head><body>&#13;
+&#13;
+		<h3>&#13;
+        	<a href="package-summary.html" target="classFrame">org.apache.oodt.grid</a>&#13;
+      	</h3>&#13;
+&#13;
+      	<h3>Classes</h3>&#13;
+&#13;
+      	<ul><li>&#13;
+            	<a href="AuthenticationRequiredException.html" target="classFrame">AuthenticationRequiredException</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ConfigBean.html" target="classFrame">ConfigBean</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ConfigServlet.html" target="classFrame">ConfigServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="Configuration.html" target="classFrame">Configuration</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="GridServlet.html" target="classFrame">GridServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="QueryServlet.html" target="classFrame">InstantiedHandler</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="LoginServlet.html" target="classFrame">LoginServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ProductQueryServlet.html" target="classFrame">ProductQueryServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ProductQueryServlet.html" target="classFrame">ProductRetriever</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ProductServer.html" target="classFrame">ProductServer</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ProfileQueryServlet.html" target="classFrame">ProfileQueryServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="ProfileServer.html" target="classFrame">ProfileServer</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="QueryServlet.html" target="classFrame">QueryServlet</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="Server.html" target="classFrame">Server</a>&#13;
+          	</li>&#13;
+          	          	<li>&#13;
+            	<a href="Utility.html" target="classFrame">Utility</a>&#13;
+          	</li>&#13;
+          	      	</ul></body></html>
\ No newline at end of file

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,83 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.grid</title><link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /></head><body>&#13;
+		      	<div class="overview">&#13;
+        	<ul><li>&#13;
+            		<a href="../../../../overview-summary.html">Overview</a>&#13;
+          		</li>&#13;
+          		<li class="selected">Package</li>&#13;
+        	</ul></div>&#13;
+      	<div class="framenoframe">&#13;
+        	<ul><li>&#13;
+            		<a href="../../../../index.html" target="_top">FRAMES</a>&#13;
+          		</li>&#13;
+          		<li>&#13;
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>&#13;
+          		</li>&#13;
+        	</ul></div>&#13;
+		&#13;
+		      	<h2>Package org.apache.oodt.grid</h2>&#13;
+&#13;
+		<table class="summary"><thead><tr><th>Class Summary</th>&#13;
+          		</tr></thead><tbody><tr><td>&#13;
+                		<a href="AuthenticationRequiredException.html" target="classFrame">AuthenticationRequiredException</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ConfigBean.html" target="classFrame">ConfigBean</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ConfigServlet.html" target="classFrame">ConfigServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="Configuration.html" target="classFrame">Configuration</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="GridServlet.html" target="classFrame">GridServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="QueryServlet.html" target="classFrame">InstantiedHandler</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="LoginServlet.html" target="classFrame">LoginServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ProductQueryServlet.html" target="classFrame">ProductQueryServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ProductQueryServlet.html" target="classFrame">ProductRetriever</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ProductServer.html" target="classFrame">ProductServer</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ProfileQueryServlet.html" target="classFrame">ProfileQueryServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="ProfileServer.html" target="classFrame">ProfileServer</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="QueryServlet.html" target="classFrame">QueryServlet</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="Server.html" target="classFrame">Server</a>&#13;
+              		</td>&#13;
+            	</tr><tr><td>&#13;
+                		<a href="Utility.html" target="classFrame">Utility</a>&#13;
+              		</td>&#13;
+            	</tr></tbody></table><div class="overview">&#13;
+        	<ul><li>&#13;
+            		<a href="../../../../overview-summary.html">Overview</a>&#13;
+          		</li>&#13;
+          		<li class="selected">Package</li>&#13;
+        	</ul></div>&#13;
+      	<div class="framenoframe">&#13;
+        	<ul><li>&#13;
+            		<a href="../../../../index.html" target="_top">FRAMES</a>&#13;
+          		</li>&#13;
+          		<li>&#13;
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>&#13;
+          		</li>&#13;
+        	</ul></div>&#13;
+				<hr />&#13;
+		Copyright © 1999-2010 Apache Incubator. All Rights Reserved.&#13;
+	</body></html>
\ No newline at end of file

Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/DatabaseTable.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/DatabaseTable.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/DatabaseTable.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/DatabaseTable.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,125 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DatabaseTable xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/xmlps/mapping/DatabaseTable.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a>   <em class="jxr_javadoccomment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a>   <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a>   <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a>   <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a>   <em class="jxr_javadoccomment"> * the License.  You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a>   <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a>   <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>  
+<a name="18" href="#18" id="18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping;
+<a name="19" href="#19" id="19">19</a>  
+<a name="20" href="#20" id="20">20</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="21" href="#21" id="21">21</a>  <em class="jxr_javadoccomment"> * </em>
+<a name="22" href="#22" id="22">22</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a name="23" href="#23" id="23">23</a>  <em class="jxr_javadoccomment"> * Description of a local site's database table that will be used as a model to</em>
+<a name="24" href="#24" id="24">24</a>  <em class="jxr_javadoccomment"> * query against and select data from.</em>
+<a name="25" href="#25" id="25">25</a>  <em class="jxr_javadoccomment"> * &lt;/p&gt;.</em>
+<a name="26" href="#26" id="26">26</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="27" href="#27" id="27">27</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a> {
+<a name="28" href="#28" id="28">28</a>  
+<a name="29" href="#29" id="29">29</a>      <strong class="jxr_keyword">private</strong> String name;
+<a name="30" href="#30" id="30">30</a>  
+<a name="31" href="#31" id="31">31</a>      <strong class="jxr_keyword">private</strong> String joinFieldName;
+<a name="32" href="#32" id="32">32</a>  
+<a name="33" href="#33" id="33">33</a>      <strong class="jxr_keyword">private</strong> String defaultTableJoinFieldName;
+<a name="34" href="#34" id="34">34</a>  
+<a name="35" href="#35" id="35">35</a>      <strong class="jxr_keyword">private</strong> String defaultTableJoin;
+<a name="36" href="#36" id="36">36</a>  
+<a name="37" href="#37" id="37">37</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="38" href="#38" id="38">38</a>  <em class="jxr_javadoccomment">     * @param name</em>
+<a name="39" href="#39" id="39">39</a>  <em class="jxr_javadoccomment">     * @param joinFieldName</em>
+<a name="40" href="#40" id="40">40</a>  <em class="jxr_javadoccomment">     * @param defaultTableJoinFieldName</em>
+<a name="41" href="#41" id="41">41</a>  <em class="jxr_javadoccomment">     * @param defaultTableJoin</em>
+<a name="42" href="#42" id="42">42</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="43" href="#43" id="43">43</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a>(String name, String joinFieldName,
+<a name="44" href="#44" id="44">44</a>              String defaultTableJoinFieldName, String defaultTableJoin) {
+<a name="45" href="#45" id="45">45</a>          <strong class="jxr_keyword">super</strong>();
+<a name="46" href="#46" id="46">46</a>          <strong class="jxr_keyword">this</strong>.name = name;
+<a name="47" href="#47" id="47">47</a>          <strong class="jxr_keyword">this</strong>.joinFieldName = joinFieldName;
+<a name="48" href="#48" id="48">48</a>          <strong class="jxr_keyword">this</strong>.defaultTableJoinFieldName = defaultTableJoinFieldName;
+<a name="49" href="#49" id="49">49</a>          <strong class="jxr_keyword">this</strong>.defaultTableJoin = defaultTableJoin;
+<a name="50" href="#50" id="50">50</a>      }
+<a name="51" href="#51" id="51">51</a>  
+<a name="52" href="#52" id="52">52</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="53" href="#53" id="53">53</a>  <em class="jxr_javadoccomment">     * </em>
+<a name="54" href="#54" id="54">54</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="55" href="#55" id="55">55</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a>() {
+<a name="56" href="#56" id="56">56</a>      }
+<a name="57" href="#57" id="57">57</a>  
+<a name="58" href="#58" id="58">58</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="59" href="#59" id="59">59</a>  <em class="jxr_javadoccomment">     * @return the joinFieldName</em>
+<a name="60" href="#60" id="60">60</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="61" href="#61" id="61">61</a>      <strong class="jxr_keyword">public</strong> String getJoinFieldName() {
+<a name="62" href="#62" id="62">62</a>          <strong class="jxr_keyword">return</strong> joinFieldName;
+<a name="63" href="#63" id="63">63</a>      }
+<a name="64" href="#64" id="64">64</a>  
+<a name="65" href="#65" id="65">65</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="66" href="#66" id="66">66</a>  <em class="jxr_javadoccomment">     * @param joinFieldName</em>
+<a name="67" href="#67" id="67">67</a>  <em class="jxr_javadoccomment">     *            the joinFieldName to set</em>
+<a name="68" href="#68" id="68">68</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="69" href="#69" id="69">69</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setJoinFieldName(String joinFieldName) {
+<a name="70" href="#70" id="70">70</a>          <strong class="jxr_keyword">this</strong>.joinFieldName = joinFieldName;
+<a name="71" href="#71" id="71">71</a>      }
+<a name="72" href="#72" id="72">72</a>  
+<a name="73" href="#73" id="73">73</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="74" href="#74" id="74">74</a>  <em class="jxr_javadoccomment">     * @return the name</em>
+<a name="75" href="#75" id="75">75</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="76" href="#76" id="76">76</a>      <strong class="jxr_keyword">public</strong> String getName() {
+<a name="77" href="#77" id="77">77</a>          <strong class="jxr_keyword">return</strong> name;
+<a name="78" href="#78" id="78">78</a>      }
+<a name="79" href="#79" id="79">79</a>  
+<a name="80" href="#80" id="80">80</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="81" href="#81" id="81">81</a>  <em class="jxr_javadoccomment">     * @param name</em>
+<a name="82" href="#82" id="82">82</a>  <em class="jxr_javadoccomment">     *            the name to set</em>
+<a name="83" href="#83" id="83">83</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="84" href="#84" id="84">84</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setName(String name) {
+<a name="85" href="#85" id="85">85</a>          <strong class="jxr_keyword">this</strong>.name = name;
+<a name="86" href="#86" id="86">86</a>      }
+<a name="87" href="#87" id="87">87</a>  
+<a name="88" href="#88" id="88">88</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="89" href="#89" id="89">89</a>  <em class="jxr_javadoccomment">     * @return the defaultTableJoinFieldName</em>
+<a name="90" href="#90" id="90">90</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="91" href="#91" id="91">91</a>      <strong class="jxr_keyword">public</strong> String getDefaultTableJoinFieldName() {
+<a name="92" href="#92" id="92">92</a>          <strong class="jxr_keyword">return</strong> defaultTableJoinFieldName;
+<a name="93" href="#93" id="93">93</a>      }
+<a name="94" href="#94" id="94">94</a>  
+<a name="95" href="#95" id="95">95</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="96" href="#96" id="96">96</a>  <em class="jxr_javadoccomment">     * @param defaultTableJoinFieldName</em>
+<a name="97" href="#97" id="97">97</a>  <em class="jxr_javadoccomment">     *            the defaultTableJoinFieldName to set</em>
+<a name="98" href="#98" id="98">98</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="99" href="#99" id="99">99</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDefaultTableJoinFieldName(String defaultTableJoinFieldName) {
+<a name="100" href="#100" id="100">100</a>         <strong class="jxr_keyword">this</strong>.defaultTableJoinFieldName = defaultTableJoinFieldName;
+<a name="101" href="#101" id="101">101</a>     }
+<a name="102" href="#102" id="102">102</a> 
+<a name="103" href="#103" id="103">103</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="104" href="#104" id="104">104</a> <em class="jxr_javadoccomment">     * @return the defaultTableJoin</em>
+<a name="105" href="#105" id="105">105</a> <em class="jxr_javadoccomment">     */</em>
+<a name="106" href="#106" id="106">106</a>     <strong class="jxr_keyword">public</strong> String getDefaultTableJoin() {
+<a name="107" href="#107" id="107">107</a>         <strong class="jxr_keyword">return</strong> defaultTableJoin;
+<a name="108" href="#108" id="108">108</a>     }
+<a name="109" href="#109" id="109">109</a> 
+<a name="110" href="#110" id="110">110</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="111" href="#111" id="111">111</a> <em class="jxr_javadoccomment">     * @param defaultTableJoin</em>
+<a name="112" href="#112" id="112">112</a> <em class="jxr_javadoccomment">     *            the defaultTableJoin to set</em>
+<a name="113" href="#113" id="113">113</a> <em class="jxr_javadoccomment">     */</em>
+<a name="114" href="#114" id="114">114</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDefaultTableJoin(String defaultTableJoin) {
+<a name="115" href="#115" id="115">115</a>         <strong class="jxr_keyword">this</strong>.defaultTableJoin = defaultTableJoin;
+<a name="116" href="#116" id="116">116</a>     }
+<a name="117" href="#117" id="117">117</a> 
+<a name="118" href="#118" id="118">118</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file