You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/11/03 16:02:39 UTC

svn commit: r832445 [3/4] - in /incubator/pivot/trunk: core/src/org/apache/pivot/beans/ core/src/org/apache/pivot/util/ demos/ demos/src/org/apache/pivot/demos/clock/ demos/src/org/apache/pivot/demos/decorator/ demos/src/org/apache/pivot/demos/dnd/ dem...

Modified: incubator/pivot/trunk/demos/www/stock_tracker.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/stock_tracker.jnlp?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/stock_tracker.jnlp (original)
+++ incubator/pivot/trunk/demos/www/stock_tracker.jnlp Tue Nov  3 15:02:31 2009
@@ -1,57 +1,57 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-
-<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
-
-<%@ include file="version.jsp" %>
-<%@ include file="jnlp_common.jsp" %>
-
-<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
-    <information>
-        <title>Pivot Stock Tracker Demo - Signed</title>
-        <vendor>Apache Pivot</vendor>
-        <homepage href="http://incubator.apache.org/pivot/"/>
-        <description>This sample application retrieves live (delayed by 15 minutes) stock quote data from Yahoo! Finance as a CSV file and presents it in a table view component (libraries are signed to allow it to communicate with the Yahoo web service).</description>
-        <icon href="logo.png"/>
-        <shortcut online="false">
-            <desktop/>
-        </shortcut>
-    </information>
-
-    <security>
-        <all-permissions/>
-    </security>
-
-    <resources>
-<%@ include file="jnlp_properties.jsp" %>
-
-        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
-
-        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.signed.jnlp" />
-
-        <jar href="lib/pivot-tutorials-<%= version %>.signed.jar" main="true" />
-    </resources>
-
-    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
-        <argument>org.apache.pivot.tutorials.stocktracker.StockTracker</argument>
-    </application-desc>
-    
-    <update check="background" />
-</jnlp>
+<?xml version="1.0" encoding="UTF-8" ?>
+<%
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Stock Tracker Demo - Signed</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <description>This sample application retrieves live (delayed by 15 minutes) stock quote data from Yahoo! Finance as a CSV file and presents it in a table view component (libraries are signed to allow it to communicate with the Yahoo web service).</description>
+        <icon href="logo.png"/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <security>
+        <all-permissions/>
+    </security>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.signed.jnlp" />
+
+        <jar href="lib/pivot-tutorials-<%= version %>.signed.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.tutorials.stocktracker.StockTracker</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>

Propchange: incubator/pivot/trunk/demos/www/stock_tracker.jnlp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/demos/www/stock_tracker.jnlp
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp (original)
+++ incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp Tue Nov  3 15:02:31 2009
@@ -1,57 +1,57 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-
-<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
-
-<%@ include file="version.jsp" %>
-<%@ include file="jnlp_common.jsp" %>
-
-<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
-    <information>
-        <title>Pivot Stock Tracker Demo with French Locale - Signed</title>
-        <vendor>Apache Pivot</vendor>
-        <homepage href="http://incubator.apache.org/pivot/"/>
-        <description>This sample application retrieves live (delayed by 15 minutes) stock quote data from Yahoo! Finance as a CSV file and presents it in a table view component (libraries are signed to allow it to communicate with the Yahoo web service).</description>
-        <icon href="logo.png"/>
-        <shortcut online="false">
-            <desktop/>
-        </shortcut>
-    </information>
-
-    <security>
-        <all-permissions/>
-    </security>
-
-    <resources>
-<%@ include file="jnlp_properties.jsp" %>
-        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
-
-        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.signed.jnlp" />
-
-        <jar href="lib/pivot-tutorials-<%= version %>.signed.jar" main="true" />
-    </resources>
-
-    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
-        <argument>org.apache.pivot.tutorials.stocktracker.StockTracker</argument>
-        <argument>--language=fr</argument>
-    </application-desc>
-    
-    <update check="background" />
-</jnlp>
+<?xml version="1.0" encoding="UTF-8" ?>
+<%
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Stock Tracker Demo with French Locale - Signed</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <description>This sample application retrieves live (delayed by 15 minutes) stock quote data from Yahoo! Finance as a CSV file and presents it in a table view component (libraries are signed to allow it to communicate with the Yahoo web service).</description>
+        <icon href="logo.png"/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <security>
+        <all-permissions/>
+    </security>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.signed.jnlp" />
+
+        <jar href="lib/pivot-tutorials-<%= version %>.signed.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.tutorials.stocktracker.StockTracker</argument>
+        <argument>--language=fr</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>

Propchange: incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/demos/www/stock_tracker_fr.jnlp
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/pivot/trunk/demos/www/table_row_editor.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/table_row_editor.jnlp?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/table_row_editor.jnlp (original)
+++ incubator/pivot/trunk/demos/www/table_row_editor.jnlp Tue Nov  3 15:02:31 2009
@@ -1,53 +1,53 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-
-<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
-
-<%@ include file="version.jsp" %>
-<%@ include file="jnlp_common.jsp" %>
-
-<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
-    <information>
-        <title>Pivot Table Row Editor Demo</title>
-        <vendor>Apache Pivot</vendor>
-        <homepage href="http://incubator.apache.org/pivot/"/>
-        <description>This sample application demonstrates the use of a flip transition to bring up a table view row editor.</description>
-        <icon kind="shortcut" href="logo.png" />
-        <offline-allowed/>
-        <shortcut online="false">
-            <desktop/>
-        </shortcut>
-    </information>
-
-    <resources>
-<%@ include file="jnlp_properties.jsp" %>
-        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
-
-        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.jnlp" />
-
-        <jar href="lib/pivot-demos-<%= version %>.jar" main="true" />
-    </resources>
-
-    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
-        <argument>org.apache.pivot.demos.roweditor.RowEditorDemo</argument>
-    </application-desc>
-    
-    <update check="background" />
-</jnlp>
+<?xml version="1.0" encoding="UTF-8" ?>
+<%
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Table Row Editor Demo</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <description>This sample application demonstrates the use of a flip transition to bring up a table view row editor.</description>
+        <icon kind="shortcut" href="logo.png" />
+        <offline-allowed/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.jnlp" />
+
+        <jar href="lib/pivot-demos-<%= version %>.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.demos.roweditor.RowEditorDemo</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>

Propchange: incubator/pivot/trunk/demos/www/table_row_editor.jnlp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/demos/www/table_row_editor.jnlp
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/pivot/trunk/demos/www/web_start.jsp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/web_start.jsp?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/web_start.jsp (original)
+++ incubator/pivot/trunk/demos/www/web_start.jsp Tue Nov  3 15:02:31 2009
@@ -1,300 +1,300 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to you under the Apache License,
-Version 2.0 (the "License"); you may not use this file except in
-compliance with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-
-<html>
-<head>
-<title>Pivot Demos - Web Start</title>
-<link rel="stylesheet" href="demo.css" />
-<link rel="icon" href="favicon.png" type="image/png" />
-<link rel="shortcut icon" href="favicon.png" type="image/png" />
-<style>
-body {
-    font-family:Verdana;
-    font-size:11px;
-}
-
-p.caption {
-    font-style:italic;
-    padding-top:0px;
-}
-
-p.command {
-    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
-    background-color:#E7E5DC;
-    padding-top:12px;
-    padding-left:24px;
-    padding-bottom:12px;
-    padding-right:24px;
-}
-
-pre.snippet {
-    padding:6px;
-    border:#E7E5DC solid 1px;
-    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
-    font-size:1em;
-}
-
-tt {
-    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
-}
-
-table {
-    font-size:11px;
-}
-
-img {
-    vertical-align: middle;
-}
-</style>
-<script src="http://java.com/js/deployJava.js"></script>
-<%@ include file="jnlp_common.jsp" %>
-</head>
-<body>
-<h2>Demos</h2>
-<p>This page contains a collection of Pivot demos, running with Java Web Start. All demos require Java 6 or greater.</p>
-<br/>
-
-<h3 align="center"><a href="index.html">Return to Pivot Demos Home Page</a></h3>
-<br/>
-
-<h3>"Kitchen Sink"</h3>
-<p>Demonstrates a number of commonly used Pivot components.</p>
-<p><img src="kitchen_sink.png"></p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>kitchen_sink.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;,&nbsp;
-Signed:&nbsp;
-<script>
-var url = "<%= codebase %>kitchen_sink.signed.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;,&nbsp;
-Signed with Custom Colors:&nbsp;
-<script>
-var url = "<%= codebase %>kitchen_sink.custom_colors.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Component Explorer</h3>
-<p>An application that allows interaction with the properties, styles, and
-events offered by each stock Pivot component.</p>
-<p><img src="component_explorer.png"></p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>component_explorer.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Stock Tracker</h3>
-<p>An example of a simple but practical "real world" application built using
-Pivot. Monitors stock quotes provided by <a href="http://finance.yahoo.com/">Yahoo!
-Finance</a>.</p>
-<p><img src="stock_tracker.png"></p>
-<br/>
-<div>
-Signed:&nbsp;
-<script>
-var url = "<%= codebase %>stock_tracker.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;,&nbsp;
-Signed with French Locale (fr):&nbsp;
-<script>
-var url = "<%= codebase %>stock_tracker_fr.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>iTunes Search</h3>
-<p>Simple application that allows a user to run search queries against the
-iTunes Music Store and presents the results in a table view.</p>
-<p><img src="itunes_search.png"></p>
-<br/>
-<div>
-Signed:&nbsp;
-<script>
-var url = "<%= codebase %>itunes_search.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>JSON Viewer</h3>
-<p>Allows users to visually browse a JSON structure using a TreeView component.</p>
-<p><img src="json_viewer.png"></p>
-<br/>
-<div>
-Signed:&nbsp;
-<script>
-var url = "<%= codebase %>json_viewer.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Scripting</h3>
-<p>Simple example of a Pivot application written using JavaScript.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>scripting.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>File Drag &amp; Drop</h3>
-<p>Demonstrates Pivot's support for drag and drop.</p>
-<br/>
-<div>
-Signed:&nbsp;
-<script>
-var url = "<%= codebase %>file_drag_drop.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Table Row Editor</h3>
-<p>Example of a table row editor that uses a "Family Feud"-like flip effect to
-edit rows.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>table_row_editor.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Animated Clock</h3>
-<p>Demonstrates Pivot's MovieView component, which is used to present a clock
-constructed using Pivot's drawing API.</p>
-<p><img src="clock.png"></p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>animated_clock.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Large Data Sets</h3>
-<p>Demonstrates Pivot's ability to handle large data sets of up to 1,000,000
-rows.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>large_data.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>RSS Feed</h3>
-<p>Demonstrates how to build a simple RSS client in Pivot.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>rss_feed.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Decorators</h3>
-<p>Demonstrates the use of "decorators" in Pivot. Decorators allow a developer to
-attach additional presentation to components, such as drop shadows, reflections,
-image effects, etc. This example shows a window with a reflection decorator and
-a frame with a fade decorator.</p>
-<p><img src="decorators.png"></p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>decorators.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Fixed Column Table</h3>
-<p>Explains how to create a table with fixed columns in Pivot. Fixed columns are
-handy when displaying tables with many columns.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>fixed_column_table.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<h3>Multiple Selection</h3>
-<p>Demonstrates Pivot's use of ranges to maintain selection state in a ListView
-component. This is more efficient than maintaining a list of individual
-selected indexes.</p>
-<br/>
-<div>
-Unsigned:&nbsp;
-<script>
-var url = "<%= codebase %>multiselect.jnlp";
-deployJava.createWebStartLaunchButton(url, '1.6');
-</script>
-&nbsp;&nbsp;&nbsp;
-</div>
-<hr/>
-
-<br/>
-
-<h3 align="center"><a href="index.html">Return to Pivot Demos Home Page</a></h3>
-<br/>
-
-</body>
-</html>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<html>
+<head>
+<title>Pivot Demos - Web Start</title>
+<link rel="stylesheet" href="demo.css" />
+<link rel="icon" href="favicon.png" type="image/png" />
+<link rel="shortcut icon" href="favicon.png" type="image/png" />
+<style>
+body {
+    font-family:Verdana;
+    font-size:11px;
+}
+
+p.caption {
+    font-style:italic;
+    padding-top:0px;
+}
+
+p.command {
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+    background-color:#E7E5DC;
+    padding-top:12px;
+    padding-left:24px;
+    padding-bottom:12px;
+    padding-right:24px;
+}
+
+pre.snippet {
+    padding:6px;
+    border:#E7E5DC solid 1px;
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+    font-size:1em;
+}
+
+tt {
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+}
+
+table {
+    font-size:11px;
+}
+
+img {
+    vertical-align: middle;
+}
+</style>
+<script src="http://java.com/js/deployJava.js"></script>
+<%@ include file="jnlp_common.jsp" %>
+</head>
+<body>
+<h2>Demos</h2>
+<p>This page contains a collection of Pivot demos, running with Java Web Start. All demos require Java 6 or greater.</p>
+<br/>
+
+<h3 align="center"><a href="index.html">Return to Pivot Demos Home Page</a></h3>
+<br/>
+
+<h3>"Kitchen Sink"</h3>
+<p>Demonstrates a number of commonly used Pivot components.</p>
+<p><img src="kitchen_sink.png"></p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;,&nbsp;
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.signed.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;,&nbsp;
+Signed with Custom Colors:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.custom_colors.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Component Explorer</h3>
+<p>An application that allows interaction with the properties, styles, and
+events offered by each stock Pivot component.</p>
+<p><img src="component_explorer.png"></p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>component_explorer.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Stock Tracker</h3>
+<p>An example of a simple but practical "real world" application built using
+Pivot. Monitors stock quotes provided by <a href="http://finance.yahoo.com/">Yahoo!
+Finance</a>.</p>
+<p><img src="stock_tracker.png"></p>
+<br/>
+<div>
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>stock_tracker.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;,&nbsp;
+Signed with French Locale (fr):&nbsp;
+<script>
+var url = "<%= codebase %>stock_tracker_fr.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>iTunes Search</h3>
+<p>Simple application that allows a user to run search queries against the
+iTunes Music Store and presents the results in a table view.</p>
+<p><img src="itunes_search.png"></p>
+<br/>
+<div>
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>itunes_search.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>JSON Viewer</h3>
+<p>Allows users to visually browse a JSON structure using a TreeView component.</p>
+<p><img src="json_viewer.png"></p>
+<br/>
+<div>
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>json_viewer.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Scripting</h3>
+<p>Simple example of a Pivot application written using JavaScript.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>scripting.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>File Drag &amp; Drop</h3>
+<p>Demonstrates Pivot's support for drag and drop.</p>
+<br/>
+<div>
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>file_drag_drop.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Table Row Editor</h3>
+<p>Example of a table row editor that uses a "Family Feud"-like flip effect to
+edit rows.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>table_row_editor.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Animated Clock</h3>
+<p>Demonstrates Pivot's MovieView component, which is used to present a clock
+constructed using Pivot's drawing API.</p>
+<p><img src="clock.png"></p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>animated_clock.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Large Data Sets</h3>
+<p>Demonstrates Pivot's ability to handle large data sets of up to 1,000,000
+rows.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>large_data.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>RSS Feed</h3>
+<p>Demonstrates how to build a simple RSS client in Pivot.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>rss_feed.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Decorators</h3>
+<p>Demonstrates the use of "decorators" in Pivot. Decorators allow a developer to
+attach additional presentation to components, such as drop shadows, reflections,
+image effects, etc. This example shows a window with a reflection decorator and
+a frame with a fade decorator.</p>
+<p><img src="decorators.png"></p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>decorators.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Fixed Column Table</h3>
+<p>Explains how to create a table with fixed columns in Pivot. Fixed columns are
+handy when displaying tables with many columns.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>fixed_column_table.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<h3>Multiple Selection</h3>
+<p>Demonstrates Pivot's use of ranges to maintain selection state in a ListView
+component. This is more efficient than maintaining a list of individual
+selected indexes.</p>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>multiselect.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<br/>
+
+<h3 align="center"><a href="index.html">Return to Pivot Demos Home Page</a></h3>
+<br/>
+
+</body>
+</html>

Propchange: incubator/pivot/trunk/demos/www/web_start.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/json/json_viewer.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentInspector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentInspectorListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentInspectorSkin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentPropertyInspector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentPropertyInspectorSkin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentStyleInspector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/ComponentStyleInspectorSkin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/EventLogger.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/EventLoggerListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/EventLoggerSkin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/EventLoggerSkin.json
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/event_logger_skin.wtkx
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tools/src/org/apache/pivot/tools/wtk/event_logger_skin.wtkx
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/alert.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/alerts.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/backgroundtasks/background_tasks.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons/checkboxes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons/link_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons/push_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons/radio_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/buttons/toggle_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calendars.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calendars/calendars.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/clipboard/clipboard.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/databinding/data_binding.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/dragdrop.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/dragdrop/drag_drop.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/drawing/rotate_line.wtkd
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/drawing/simple_drawing.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/effects/decorators.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/effects/transitions.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowsing/file_browsing.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/hello.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/hello_javascript.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/kitchen_sink.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/labels/labels.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/borders.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/box_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/flow_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/forms.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/panels.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/simple_table_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/split_panes.wtkx
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/split_panes.wtkx
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/stack_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/table_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/table_panes_configure_cell.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/table_panes_configure_column.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/table_panes_configure_row.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/lists.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/lists/list_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/lists/list_views.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/localization/localization.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menu_bar.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menu_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menu_section.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/context_menus.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/document.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/menu_bars.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/menu_buttons.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/meters.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/accordions.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/address.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/calendar.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/card_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/expanders.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/panoramas.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/payment.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/rollups.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/scroll_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/shipping.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/stocks.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/summary.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/weather.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/progress/activity_indicators.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/progress/meters.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/scripting/scripting.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/separators/separators.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/spinners.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/splitters.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/stocktracker/stocktracker.detail.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/stocktracker/stocktracker.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tables.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tableviews/basic_table_view.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tableviews/custom_table_view.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tableviews/json_table_view.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/text.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/text/text.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/trees.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/webqueries/web_queries.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/windows/dialog.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/windows/frame.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/windows/palette.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/windows/sheet.wtkx
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/web.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Nov  3 15:02:31 2009
@@ -1 +1 @@
-application/xml
+text/xml

Propchange: incubator/pivot/trunk/tutorials/www/effects.transitions.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/tutorials/www/summary.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/pivot/trunk/web/src/org/apache/pivot/web/DigestAuthentication.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java (original)
+++ incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java Tue Nov  3 15:02:31 2009
@@ -1,287 +1,287 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pivot.web.test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-
-import java.io.IOException;
-
-import org.apache.pivot.serialization.ByteArraySerializer;
-import org.apache.pivot.serialization.SerializationException;
-import org.apache.pivot.util.Resources;
-import org.apache.pivot.web.Authentication;
-import org.apache.pivot.web.BasicAuthentication;
-import org.apache.pivot.web.GetQuery;
-import org.apache.pivot.web.QueryException;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * Integration test of Client-side Authentication with the Basic method. <br/>
- * This is a JUnit 4 Test, but should be excluded from usual (Unit) Test Suite.
- * <br/>
- * To Run these tests, a local instance of Apache must be started and
- * configured with the required resources (by default folders /public , and /protected
- * protected with basic authentication) and files.
- * Then, before to run these tests, ensure basic authentication has been successfully setup
- * asking the same URLs from a Web Browser. <br/>
- * Note that now this class loads (in a standard Pivot way) some test parameters
- * from a json file that must be in the same folder of this class.
- * For example, to run this Class on another Server (for example on a local Tomcat instance),
- * some parameters have to be changed  inside the json file, then rerun the test.
- *
- * TODO:
- *   - test other HTTP methods ...
- *
- */
-public class WebQueryTestClientBasic {
-    static Resources resources = null;  // parametric resources, using the Pivot-way
-
-    String host = null;
-    int port = 0;
-    String path = null;
-    boolean secure = false;
-
-    Authentication authentication = null;
-
-    Object result = null;
-
-    public static final void log(String msg) {
-        System.out.println(msg);
-    }
-
-    @BeforeClass
-    public static void runBeforeClass() {
-        // run for one time before all test cases
-
-        // load Test Case parametric values
-        try {
-            resources = new Resources(WebQueryTestClientBasic.class.getName());
-        } catch (IOException e) {
-            e.printStackTrace();
-        } catch (SerializationException e) {
-            e.printStackTrace();
-        }
-
-        log("Loaded " + resources + " resources");
-    }
-
-    @AfterClass
-    public static void runAfterClass() {
-        // run for one time after all test cases
-    }
-
-    @Before
-    public void runBeforeEveryTest() {
-        // run before any single test case
-    }
-
-    @After
-    public void runAfterEveryTest() {
-        // run after any single test case
-        host = null;
-        port = 0;
-        path = null;
-
-        authentication = null;
-
-        result = null;
-    }
-
-    @Test(timeout = 10000, expected = QueryException.class)
-    public void public_noauth_NotExistingHost() throws QueryException {
-        log("public_noauth_NotExistingHost()");
-
-        host = "non_existing_host";
-        port = resources.getInteger("port");
-        path = resources.getString("folder_public");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        result = query.execute();
-        assertNull(result);
-
-        log("Query result: \n" + result);
-    }
-
-    @Test(timeout = 10000, expected = QueryException.class)
-    public void public_noauth_localhost_NotExistingResource() throws QueryException {
-        log("public_noauth_localhost_NotExistingResource()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        path = resources.getString("folder_public") + "non_existing_resource";
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        result = query.execute();
-        assertNull(result);
-
-        log("Query result: \n" + result);
-    }
-
-    @Test(timeout = 10000)
-    public void public_noauth_localhost_testFile() throws QueryException {
-        log("public_noauth_localhost_testFile()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        path = resources.getString("folder_public") + resources.getString("file_text");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-
-        // attention, don't use BinarySerializer here, but instead use the
-        // generic ByteArraySerializer
-        query.setSerializer(new ByteArraySerializer());
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        result = query.execute();
-        assertNotNull(result);
-
-        // dump content, but useful only for text resources ...
-        String dump = // result.toString()
-        // Arrays.toString((byte []) result);
-        new String((byte[]) result);
-        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
-    }
-
-    @Test(timeout = 10000)
-    public void public_basic_localhost_forceUnnecessaryAuthentication()
-        throws QueryException {
-        log("public_basic_localhost_forceUnnecessaryAuthentication()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        path = resources.getString("folder_public") + resources.getString("file_text");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-
-        // attention, don't use BinarySerializer here, but instead use the
-        // generic ByteArraySerializer
-        query.setSerializer(new ByteArraySerializer());
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        authentication = new BasicAuthentication(resources.getString("user_name"),
-            resources.getString("user_pass"));
-        authentication.authenticate(query);
-
-        result = query.execute();
-        assertNotNull(result);
-
-        // dump content, but useful only for text resources ...
-        String dump = // result.toString()
-        // Arrays.toString((byte []) result);
-        new String((byte[]) result);
-        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
-    }
-
-    // @Test(timeout = 10000, expected = QueryException.class)
-    @Test(timeout = 1000000, expected = QueryException.class)  // for debugging the execution
-    public void protected_basic_localhostWithoutAuthenticate() throws QueryException {
-        log("protected_basic_localhostWithoutAuthenticate()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        path = resources.getString("folder_protected") + resources.getString("file_text");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-        query.setSerializer(new ByteArraySerializer());
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        result = query.execute();
-        log("Query result: \n" + result);
-        assertNull(result);
-
-        int status = query.getStatus();
-        log("Query: status = " + status + ", result: \n" + result);
-        assertEquals(401, status);
-    }
-
-    @Test(timeout = 10000, expected = QueryException.class)
-    public void protected_basic_localhostWithWrongCredentials() throws QueryException {
-        log("protected_basic_localhostWithWrongCredentials()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        path = resources.getString("folder_protected") + resources.getString("file_text");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-        query.setSerializer(new ByteArraySerializer());
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        authentication = new BasicAuthentication("wrongUsername", "wrongPassword");
-        authentication.authenticate(query);
-
-        result = query.execute();
-        log("Query result: \n" + result);
-        assertNull(result);
-
-        int status = query.getStatus();
-        log("Query: status = " + status + ", result: \n" + result);
-        assertEquals(401, status);
-    }
-
-    @Test(timeout = 10000)
-    public void protected_basic_localhost() throws QueryException {
-        log("protected_basic_localhost()");
-
-        host = resources.getString("hostname");
-        port = resources.getInteger("port");
-        // path = resources.getString("folder_protected") + resources.getString("file_text");
-        // path = resources.getString("folder_protected") + resources.getString("file_binary");
-        path = resources.getString("folder_protected") + resources.getString("file_text");
-
-        GetQuery query = new GetQuery(host, port, path, secure);
-
-        // attention, don't use BinarySerializer here, but instead use the
-        // generic ByteArraySerializer
-        query.setSerializer(new ByteArraySerializer());
-        query.setTimeout(resources.getLong("timeout"));
-        log("GET Query to " + query.getLocation());
-
-        authentication = new BasicAuthentication(resources.getString("user_name"),
-            resources.getString("user_pass"));
-        authentication.authenticate(query);
-
-        result = query.execute();
-        assertNotNull(result);
-
-        int status = query.getStatus();
-        log("Query: status = " + status + ", result: \n" + result);
-        assertEquals(200, status);
-
-        // dump content, but useful only for text resources ...
-        String dump = // result.toString()
-        // Arrays.toString((byte []) result);
-        new String((byte[]) result);
-        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pivot.web.test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+
+import java.io.IOException;
+
+import org.apache.pivot.serialization.ByteArraySerializer;
+import org.apache.pivot.serialization.SerializationException;
+import org.apache.pivot.util.Resources;
+import org.apache.pivot.web.Authentication;
+import org.apache.pivot.web.BasicAuthentication;
+import org.apache.pivot.web.GetQuery;
+import org.apache.pivot.web.QueryException;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Integration test of Client-side Authentication with the Basic method. <br/>
+ * This is a JUnit 4 Test, but should be excluded from usual (Unit) Test Suite.
+ * <br/>
+ * To Run these tests, a local instance of Apache must be started and
+ * configured with the required resources (by default folders /public , and /protected
+ * protected with basic authentication) and files.
+ * Then, before to run these tests, ensure basic authentication has been successfully setup
+ * asking the same URLs from a Web Browser. <br/>
+ * Note that now this class loads (in a standard Pivot way) some test parameters
+ * from a json file that must be in the same folder of this class.
+ * For example, to run this Class on another Server (for example on a local Tomcat instance),
+ * some parameters have to be changed  inside the json file, then rerun the test.
+ *
+ * TODO:
+ *   - test other HTTP methods ...
+ *
+ */
+public class WebQueryTestClientBasic {
+    static Resources resources = null;  // parametric resources, using the Pivot-way
+
+    String host = null;
+    int port = 0;
+    String path = null;
+    boolean secure = false;
+
+    Authentication authentication = null;
+
+    Object result = null;
+
+    public static final void log(String msg) {
+        System.out.println(msg);
+    }
+
+    @BeforeClass
+    public static void runBeforeClass() {
+        // run for one time before all test cases
+
+        // load Test Case parametric values
+        try {
+            resources = new Resources(WebQueryTestClientBasic.class.getName());
+        } catch (IOException e) {
+            e.printStackTrace();
+        } catch (SerializationException e) {
+            e.printStackTrace();
+        }
+
+        log("Loaded " + resources + " resources");
+    }
+
+    @AfterClass
+    public static void runAfterClass() {
+        // run for one time after all test cases
+    }
+
+    @Before
+    public void runBeforeEveryTest() {
+        // run before any single test case
+    }
+
+    @After
+    public void runAfterEveryTest() {
+        // run after any single test case
+        host = null;
+        port = 0;
+        path = null;
+
+        authentication = null;
+
+        result = null;
+    }
+
+    @Test(timeout = 10000, expected = QueryException.class)
+    public void public_noauth_NotExistingHost() throws QueryException {
+        log("public_noauth_NotExistingHost()");
+
+        host = "non_existing_host";
+        port = resources.getInteger("port");
+        path = resources.getString("folder_public");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        result = query.execute();
+        assertNull(result);
+
+        log("Query result: \n" + result);
+    }
+
+    @Test(timeout = 10000, expected = QueryException.class)
+    public void public_noauth_localhost_NotExistingResource() throws QueryException {
+        log("public_noauth_localhost_NotExistingResource()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        path = resources.getString("folder_public") + "non_existing_resource";
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        result = query.execute();
+        assertNull(result);
+
+        log("Query result: \n" + result);
+    }
+
+    @Test(timeout = 10000)
+    public void public_noauth_localhost_testFile() throws QueryException {
+        log("public_noauth_localhost_testFile()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        path = resources.getString("folder_public") + resources.getString("file_text");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+
+        // attention, don't use BinarySerializer here, but instead use the
+        // generic ByteArraySerializer
+        query.setSerializer(new ByteArraySerializer());
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        result = query.execute();
+        assertNotNull(result);
+
+        // dump content, but useful only for text resources ...
+        String dump = // result.toString()
+        // Arrays.toString((byte []) result);
+        new String((byte[]) result);
+        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
+    }
+
+    @Test(timeout = 10000)
+    public void public_basic_localhost_forceUnnecessaryAuthentication()
+        throws QueryException {
+        log("public_basic_localhost_forceUnnecessaryAuthentication()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        path = resources.getString("folder_public") + resources.getString("file_text");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+
+        // attention, don't use BinarySerializer here, but instead use the
+        // generic ByteArraySerializer
+        query.setSerializer(new ByteArraySerializer());
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        authentication = new BasicAuthentication(resources.getString("user_name"),
+            resources.getString("user_pass"));
+        authentication.authenticate(query);
+
+        result = query.execute();
+        assertNotNull(result);
+
+        // dump content, but useful only for text resources ...
+        String dump = // result.toString()
+        // Arrays.toString((byte []) result);
+        new String((byte[]) result);
+        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
+    }
+
+    // @Test(timeout = 10000, expected = QueryException.class)
+    @Test(timeout = 1000000, expected = QueryException.class)  // for debugging the execution
+    public void protected_basic_localhostWithoutAuthenticate() throws QueryException {
+        log("protected_basic_localhostWithoutAuthenticate()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        path = resources.getString("folder_protected") + resources.getString("file_text");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+        query.setSerializer(new ByteArraySerializer());
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        result = query.execute();
+        log("Query result: \n" + result);
+        assertNull(result);
+
+        int status = query.getStatus();
+        log("Query: status = " + status + ", result: \n" + result);
+        assertEquals(401, status);
+    }
+
+    @Test(timeout = 10000, expected = QueryException.class)
+    public void protected_basic_localhostWithWrongCredentials() throws QueryException {
+        log("protected_basic_localhostWithWrongCredentials()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        path = resources.getString("folder_protected") + resources.getString("file_text");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+        query.setSerializer(new ByteArraySerializer());
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        authentication = new BasicAuthentication("wrongUsername", "wrongPassword");
+        authentication.authenticate(query);
+
+        result = query.execute();
+        log("Query result: \n" + result);
+        assertNull(result);
+
+        int status = query.getStatus();
+        log("Query: status = " + status + ", result: \n" + result);
+        assertEquals(401, status);
+    }
+
+    @Test(timeout = 10000)
+    public void protected_basic_localhost() throws QueryException {
+        log("protected_basic_localhost()");
+
+        host = resources.getString("hostname");
+        port = resources.getInteger("port");
+        // path = resources.getString("folder_protected") + resources.getString("file_text");
+        // path = resources.getString("folder_protected") + resources.getString("file_binary");
+        path = resources.getString("folder_protected") + resources.getString("file_text");
+
+        GetQuery query = new GetQuery(host, port, path, secure);
+
+        // attention, don't use BinarySerializer here, but instead use the
+        // generic ByteArraySerializer
+        query.setSerializer(new ByteArraySerializer());
+        query.setTimeout(resources.getLong("timeout"));
+        log("GET Query to " + query.getLocation());
+
+        authentication = new BasicAuthentication(resources.getString("user_name"),
+            resources.getString("user_pass"));
+        authentication.authenticate(query);
+
+        result = query.execute();
+        assertNotNull(result);
+
+        int status = query.getStatus();
+        log("Query: status = " + status + ", result: \n" + result);
+        assertEquals(200, status);
+
+        // dump content, but useful only for text resources ...
+        String dump = // result.toString()
+        // Arrays.toString((byte []) result);
+        new String((byte[]) result);
+        log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
+    }
+
+}

Propchange: incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.json
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.json?rev=832445&r1=832444&r2=832445&view=diff
==============================================================================
--- incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.json (original)
+++ incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.json Tue Nov  3 15:02:31 2009
@@ -1,22 +1,22 @@
-{
-    secure: false,
-    hostname: "localhost",
-
-    // enable this for Test on Apache
-    port: 80,  // for apache keep this on 80
-    webapp: "",  // for apache keep this empty
-    //
-    // or enable this for Test on Tomcat
-    // port: 8080,  // for tomcat enable this (default on 8080)
-    // webapp: "/pivot-test",  // for tomcat keep this to the test webapp name
-    // end customizations
-
-    folder_public: "/public/",
-    folder_protected: "/protected/",
-    file_binary: "test.jpg",
-    file_text: "test.txt",
-    user_name: "test",
-    user_pass: "test0",
-    timeout: 5000
-
-}
+{
+    secure: false,
+    hostname: "localhost",
+
+    // enable this for Test on Apache
+    port: 80,  // for apache keep this on 80
+    webapp: "",  // for apache keep this empty
+    //
+    // or enable this for Test on Tomcat
+    // port: 8080,  // for tomcat enable this (default on 8080)
+    // webapp: "/pivot-test",  // for tomcat keep this to the test webapp name
+    // end customizations
+
+    folder_public: "/public/",
+    folder_protected: "/protected/",
+    file_binary: "test.jpg",
+    file_text: "test.txt",
+    user_name: "test",
+    user_pass: "test0",
+    timeout: 5000
+
+}

Propchange: incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.json
------------------------------------------------------------------------------
    svn:eol-style = native