svn commit: r178512 [26/26] - in /incubator/hermes/site: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/ws/ apidocs/org/apache/ws/notification/ apidocs/org/apache/ws/notification/base/ apidocs/org/apache/ws/notification/base/class-use/ apidocs/org/apache/ws/notification/base/impl/ apidocs/org/apache/ws/notification/base/impl/class-use/ apidocs/org/apache/ws/notification/base/v1_2/ apidocs/org/apache/ws/notification/base/v1_2/class-use/ apidocs/org/apache/ws/notification/base/v1_2/impl/ apidocs/org/apache/ws/notification/base/v1_2/impl/class-use/ apidocs/org/apache/ws/notification/base/v1_2/porttype/ apidocs/org/apache/ws/notification/base/v1_2/porttype/class-use/ apidocs/org/apache/ws/notification/base/v1_2/porttype/impl/ apidocs/org/apache/ws/notification/base/v1_2/porttype/impl/class-use/ apidocs/org/apache/ws/notification/tool/ apidocs/org/apache/ws/notification/tool/class-use/ apidocs/org/apache/ws/notification/tool/v1_2/ apidocs/org/apache/ws/notification/tool/v1_2/class-use/ apidocs/org/apache/ws/notification/topics/ apidocs/org/apache/ws/notification/topics/class-use/ apidocs/org/apache/ws/notification/topics/impl/ apidocs/org/apache/ws/notification/topics/impl/class-use/ apidocs/org/apache/ws/notification/topics/topicexpression/ apidocs/org/apache/ws/notification/topics/topicexpression/impl/ apidocs/org/apache/ws/notification/topics/topicexpression/impl/class-use/ apidocs/org/apache/ws/notification/topics/util/ apidocs/org/apache/ws/notification/topics/util/class-use/ apidocs/org/apache/ws/notification/topics/v1_2/ apidocs/org/apache/ws/notification/topics/v1_2/class-use/ apidocs/resources/ tutorial/ tutorial/method_impls/ tutorial/requests/ tutorial/src/ tutorial/src/example/ tutorial/src/example/filesystem/ tutorial/src/example/filesystem/backend/ tutorial/src/example/filesystem/callback/

Wed, 25 May 2005 12:09:05 -0700

Added: 
incubator/hermes/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java?rev=178512&view=auto
==============================================================================
--- 
incubator/hermes/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java
 (added)
+++ 
incubator/hermes/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java
 Wed May 25 12:01:42 2005
@@ -0,0 +1,48 @@
+package example.filesystem.callback;
+
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.ws.resource.example.filesystem.BackupFrequencyDocument;
+import org.apache.xmlbeans.XmlInt;
+
+import javax.xml.namespace.QName;
+
+import example.filesystem.backend.FileSystem;
+
+/**
+ * A callback for the BackupFrequency resource property.
+ */
+public class BackupFrequencyCallback implements SetResourcePropertyCallback
+{
+    FileSystem m_fileSystem;
+
+    public BackupFrequencyCallback(FileSystem fileSystem)
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    public void deleteProperty(QName propQName) throws CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call delete for a 
prop whose minOccurs != 0
+    }
+
+    public void insertProperty(Object[] prop) throws CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call insert for a 
prop whose minOccurs == its maxOccurs
+    }
+
+    public void updateProperty(Object[] prop) throws CallbackFailedException
+    {
+        // BackupFrequency prop has cardinality of 1, so passed array will 
always have exactly one element
+        XmlInt xInt = (XmlInt) prop[0];
+        m_fileSystem.setBackupFrequency(xInt.getIntValue());
+    }
+
+    public ResourceProperty refreshProperty(ResourceProperty prop)  throws 
CallbackFailedException
+    {
+        XmlInt xInt = (XmlInt) prop.get( 0 );
+        xInt.setIntValue( m_fileSystem.getBackupFrequency() );
+        return prop;
+    }
+}

Added: 
incubator/hermes/site/tutorial/src/example/filesystem/callback/CommentCallback.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/tutorial/src/example/filesystem/callback/CommentCallback.java?rev=178512&view=auto
==============================================================================
--- 
incubator/hermes/site/tutorial/src/example/filesystem/callback/CommentCallback.java
 (added)
+++ 
incubator/hermes/site/tutorial/src/example/filesystem/callback/CommentCallback.java
 Wed May 25 12:01:42 2005
@@ -0,0 +1,46 @@
+package example.filesystem.callback;
+
+import example.filesystem.backend.FileSystem;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.xmlbeans.XmlString;
+
+import javax.xml.namespace.QName;
+
+/**
+ * A callback for the Comment resource property.
+ */
+public class CommentCallback implements SetResourcePropertyCallback
+{
+    FileSystem m_fileSystem;
+
+    public CommentCallback( FileSystem fileSystem )
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    public void deleteProperty( QName propQName ) throws 
CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call delete for a 
prop whose minOccurs != 0
+    }
+
+    public void insertProperty( Object[] propElems ) throws 
CallbackFailedException
+    {
+        // Comment prop has cardinality of 1, so passed array will always have 
exactly one element 
+        XmlString xString = (XmlString) propElems[0];
+        m_fileSystem.setComment( xString.getStringValue() );
+    }
+
+    public void updateProperty( Object[] prop ) throws CallbackFailedException
+    {
+        insertProperty( prop );
+    }
+
+    public ResourceProperty refreshProperty( ResourceProperty prop )  throws 
CallbackFailedException
+    {
+        XmlString xString = (XmlString) prop.get( 0 );
+        xString.setStringValue( m_fileSystem.getComment() );
+        return prop;
+    }
+}

Added: 
incubator/hermes/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java?rev=178512&view=auto
==============================================================================
--- 
incubator/hermes/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java
 (added)
+++ 
incubator/hermes/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java
 Wed May 25 12:01:42 2005
@@ -0,0 +1,49 @@
+package example.filesystem.callback;
+
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.ws.resource.example.filesystem.FsckPassNumberDocument;
+import org.apache.xmlbeans.XmlInt;
+
+import javax.xml.namespace.QName;
+
+import example.filesystem.backend.FileSystem;
+
+
+/**
+ * A callback for the FsckPassNumber resource property.
+ */
+public class FsckPassNumberCallback implements SetResourcePropertyCallback
+{
+    FileSystem m_fileSystem;
+
+    public FsckPassNumberCallback(FileSystem fileSystem)
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    public void deleteProperty(QName propQName) throws CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call delete for a 
prop whose minOccurs != 0
+    }
+
+    public void insertProperty(Object[] propElems) throws 
CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call insert for a 
prop whose minOccurs == its maxOccurs
+    }
+
+    public void updateProperty(Object[] propElems) throws 
CallbackFailedException
+    {
+        // FsckPassNumber prop has cardinality of 1, so passed array will 
always have exactly one element
+        XmlInt xInt = (XmlInt) propElems[0];
+        m_fileSystem.setFsckPassNumber(xInt.getIntValue());
+    }
+
+    public ResourceProperty refreshProperty(ResourceProperty prop)  throws 
CallbackFailedException
+    {
+        XmlInt xInt = (XmlInt) prop.get( 0 );
+        xInt.setIntValue( m_fileSystem.getFsckPassNumber() );
+        return prop;
+    }
+}

Added: 
incubator/hermes/site/tutorial/src/example/filesystem/callback/MountPointCallback.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/tutorial/src/example/filesystem/callback/MountPointCallback.java?rev=178512&view=auto
==============================================================================
--- 
incubator/hermes/site/tutorial/src/example/filesystem/callback/MountPointCallback.java
 (added)
+++ 
incubator/hermes/site/tutorial/src/example/filesystem/callback/MountPointCallback.java
 Wed May 25 12:01:42 2005
@@ -0,0 +1,28 @@
+package example.filesystem.callback;
+
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.ws.resource.example.filesystem.MountPointDirectoryDocument;
+import org.apache.xmlbeans.XmlString;
+import example.filesystem.backend.FileSystem;
+
+/**
+ * A callback for the MountPoint resource property.
+ */
+public class MountPointCallback  implements ResourcePropertyCallback
+{
+    FileSystem m_fileSystem;
+
+    public MountPointCallback(FileSystem fileSystem)
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    public ResourceProperty refreshProperty(ResourceProperty prop)  throws 
CallbackFailedException
+    {
+        XmlString xString = (XmlString) prop.get( 0 );
+        xString.setStringValue( m_fileSystem.getMountPoint() );
+        return prop;
+    }
+}

Added: 
incubator/hermes/site/tutorial/src/example/filesystem/callback/OptionsCallback.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/tutorial/src/example/filesystem/callback/OptionsCallback.java?rev=178512&view=auto
==============================================================================
--- 
incubator/hermes/site/tutorial/src/example/filesystem/callback/OptionsCallback.java
 (added)
+++ 
incubator/hermes/site/tutorial/src/example/filesystem/callback/OptionsCallback.java
 Wed May 25 12:01:42 2005
@@ -0,0 +1,120 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed 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 example.filesystem.callback;
+
+import example.filesystem.backend.FileSystem;
+import org.apache.ws.resource.example.filesystem.OptionsDocument;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+
+import javax.xml.namespace.QName;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * A callback for the Options resource property.
+ */
+public class OptionsCallback
+        implements SetResourcePropertyCallback
+{
+    /**
+     * DOCUMENT_ME
+     */
+    FileSystem m_fileSystem;
+
+    /**
+     * Creates a new [EMAIL PROTECTED] OptionsCallback} object.
+     *
+     * @param fileSystem DOCUMENT_ME
+     */
+    public OptionsCallback( FileSystem fileSystem )
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param propQName DOCUMENT_ME
+     */
+    public void deleteProperty( QName propQName )  throws 
CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call delete for a 
prop whose minOccurs != 0
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param prop DOCUMENT_ME
+     */
+    public void insertProperty( Object[] prop )  throws CallbackFailedException
+    {
+        return; // no need to implement - Apollo will never call insert for a 
prop whose minOccurs == its maxOccurs
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param prop DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public ResourceProperty refreshProperty( ResourceProperty prop )  throws 
CallbackFailedException
+    {
+        Iterator iterator = prop.iterator();
+        while ( iterator.hasNext() )
+        {
+            OptionsDocument.Options o = (OptionsDocument.Options) 
iterator.next();
+            clearOptionsFromProperty( o );
+
+            //add current options...
+            List options = m_fileSystem.getOptions();
+            for ( int i = 0; i < options.size(); i++ )
+            {
+                o.addOption( options.get( i ).toString() );
+            }
+        }
+
+        return prop;
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param prop DOCUMENT_ME
+     */
+    public void updateProperty( Object[] prop )  throws CallbackFailedException
+    {
+        List backendOptions = m_fileSystem.getOptions();
+        // Options prop has cardinality of 1, so passed array will always have 
exactly one element
+        OptionsDocument.Options o = (OptionsDocument.Options) prop[0];
+        String[] optionArray = o.getOptionArray();
+        for ( int j = 0; j < optionArray.length; j++ )
+        {
+            backendOptions.add( optionArray[j] );
+        }
+    }
+
+    private void clearOptionsFromProperty( OptionsDocument.Options o )
+    {
+        //remove the options...
+        for ( int i = 0; i < o.sizeOfOptionArray(); i++ )
+        {
+            o.removeOption( i );
+        }
+    }
+}
\ No newline at end of file

Modified: incubator/hermes/site/version_control.html
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/version_control.html?rev=178512&r1=178511&r2=178512&view=diff
==============================================================================
--- incubator/hermes/site/version_control.html (original)
+++ incubator/hermes/site/version_control.html Wed May 25 12:01:42 2005
@@ -102,15 +102,21 @@
 <a title="" href="release_notes.html">Release Notes</a>
 </div>
 </div>
-<div onclick="SwitchMenu('menu_1.2', 'skin/')" id="menu_1.2Title" 
class="menutitle">Documentation</div>
+<div onclick="SwitchMenu('menu_1.2', 'skin/')" id="menu_1.2Title" 
class="menutitle">Downloads</div>
 <div id="menu_1.2" class="menuitemgroup">
 <div class="menuitem">
-<a title="" href="wsn.html">WSN</a>
+<a title="" href="release.html">Releases</a>
 </div>
 </div>
-<div onclick="SwitchMenu('menu_1.3', 'skin/')" id="menu_1.3Title" 
class="menutitle">Related Projects</div>
+<div onclick="SwitchMenu('menu_1.3', 'skin/')" id="menu_1.3Title" 
class="menutitle">Documentation</div>
 <div id="menu_1.3" class="menuitemgroup">
 <div class="menuitem">
+<a title="" href="wsn.html">WSN</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.4', 'skin/')" id="menu_1.4Title" 
class="menutitle">Related Projects</div>
+<div id="menu_1.4" class="menuitemgroup">
+<div class="menuitem">
 <a title="" href="http://ws.apache.org/axis/";>Axis</a>
 </div>
 <div class="menuitem">
@@ -156,6 +162,9 @@
 <li>
 <a href="#Committer+Access+%28read-write%29">Committer Access (read-write)</a>
 </li>
+<li>
+<a href="#Access+Via+a+Proxy">Access Via a Proxy</a>
+</li>
 </ul>
 </div>
   
@@ -206,6 +215,18 @@
         <a class="external" 
href="http://www.apache.org/dev/version-control.html#https-svn";>here</a>.
       </p>
 </div>
+    
+    
+<a name="N1005C"></a><a name="Access+Via+a+Proxy"></a>
+<h2 class="boxed">Access Via a Proxy</h2>
+<div class="section">
+<p>
+        SVN clients can go through a proxy, if you configure them to do so. 
The 
+        <a class="external" 
href="http://subversion.tigris.org/faq.html#proxy";>Subversion FAQ</a>
+        describes how to configure the command-line client to use a proxy. To 
+        configure TortoiseSVN to use a proxy, go to "TortoiseSVN Settings &gt; 
Network".
+      </p>
+</div>    
     
   
 </div>

Modified: incubator/hermes/site/wsn.html
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/site/wsn.html?rev=178512&r1=178511&r2=178512&view=diff
==============================================================================
--- incubator/hermes/site/wsn.html (original)
+++ incubator/hermes/site/wsn.html Wed May 25 12:01:42 2005
@@ -102,14 +102,20 @@
 <a title="" href="release_notes.html">Release Notes</a>
 </div>
 </div>
-<div onclick="SwitchMenu('menu_selected_1.2', 'skin/')" 
id="menu_selected_1.2Title" class="menutitle" style="background-image: 
url('skin/images/chapter_open.gif');">Documentation</div>
-<div id="menu_selected_1.2" class="selectedmenuitemgroup" style="display: 
block;">
+<div onclick="SwitchMenu('menu_1.2', 'skin/')" id="menu_1.2Title" 
class="menutitle">Downloads</div>
+<div id="menu_1.2" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="release.html">Releases</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_selected_1.3', 'skin/')" 
id="menu_selected_1.3Title" class="menutitle" style="background-image: 
url('skin/images/chapter_open.gif');">Documentation</div>
+<div id="menu_selected_1.3" class="selectedmenuitemgroup" style="display: 
block;">
 <div class="menupage">
 <div class="menupagetitle">WSN</div>
 </div>
 </div>
-<div onclick="SwitchMenu('menu_1.3', 'skin/')" id="menu_1.3Title" 
class="menutitle">Related Projects</div>
-<div id="menu_1.3" class="menuitemgroup">
+<div onclick="SwitchMenu('menu_1.4', 'skin/')" id="menu_1.4Title" 
class="menutitle">Related Projects</div>
+<div id="menu_1.4" class="menuitemgroup">
 <div class="menuitem">
 <a title="" href="http://ws.apache.org/axis/";>Axis</a>
 </div>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to