You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by sc...@apache.org on 2005/02/09 22:11:50 UTC

svn commit: r153118 [5/5] - in incubator/apollo/site: ./ apidocs/org/apache/ws/resource/ apidocs/org/apache/ws/resource/class-use/ apidocs/org/apache/ws/resource/faults/v1_2/ apidocs/org/apache/ws/resource/impl/ apidocs/org/apache/ws/resource/impl/class-use/ apidocs/org/apache/ws/resource/lifetime/callback/ apidocs/org/apache/ws/resource/lifetime/v1_2/ apidocs/org/apache/ws/resource/properties/ apidocs/org/apache/ws/resource/properties/class-use/ apidocs/org/apache/ws/resource/properties/v1_2/ apidocs/org/apache/ws/resource/properties/v1_3/ apidocs/org/apache/ws/resource/servicegroup/ apidocs/org/apache/ws/resource/tool/ skin/ tutorial/ tutorial/method_impls/ tutorial/requests/ tutorial/src/example/filesystem/callback/

Added: incubator/apollo/site/tutorial/method_impls/filesys_resource_init.txt
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/method_impls/filesys_resource_init.txt?view=auto&rev=153118
==============================================================================
--- incubator/apollo/site/tutorial/method_impls/filesys_resource_init.txt (added)
+++ incubator/apollo/site/tutorial/method_impls/filesys_resource_init.txt Wed Feb  9 13:11:35 2005
@@ -0,0 +1,64 @@
+    public void init()
+    {
+
+        super.init();
+
+        /*
+         * This is where you should associate the backend instance with
+         * the resource instance for a given id.
+         */
+        example.filesystem.backend.FileSystem m_fileSystem = new example.filesystem.backend.UnixFileSystem( m_id );
+
+        /*
+         * Initialize each of our properties by calling prop.add(propElem) and/or prop.setCallback(callback)...
+         */
+        org.apache.ws.resource.properties.ResourceProperty prop = m_propSet.get( FilesystemPropertyQNames.DEVICESPECIALFILE );
+        DeviceSpecialFileDocument deviceDocXBean = DeviceSpecialFileDocument.Factory.newInstance();
+        deviceDocXBean.setDeviceSpecialFile( m_fileSystem.getDeviceSpecialFile() );
+        prop.add( deviceDocXBean );
+
+        prop = m_propSet.get( FilesystemPropertyQNames.TYPE );
+        TypeDocument typeDocXBean = TypeDocument.Factory.newInstance();
+        typeDocXBean.setType( m_fileSystem.getType() );
+        prop.add( typeDocXBean );
+
+        BackupFrequencyDocument backupDocXBean = BackupFrequencyDocument.Factory.newInstance();
+        backupDocXBean.setBackupFrequency( m_fileSystem.getBackupFrequency() );
+        prop = m_propSet.get( FilesystemPropertyQNames.BACKUPFREQUENCY );
+        prop.add( backupDocXBean );
+        prop.setCallback( new example.filesystem.callback.BackupFrequencyCallback( m_fileSystem ) );
+
+        CommentDocument commentDocXBean = CommentDocument.Factory.newInstance();
+        commentDocXBean.setComment( m_fileSystem.getComment() );
+        prop = m_propSet.get( FilesystemPropertyQNames.COMMENT );
+        prop.add( commentDocXBean );
+        prop.setCallback( new example.filesystem.callback.CommentCallback( m_fileSystem ) );
+
+        FsckPassNumberDocument fsckDocXBean = FsckPassNumberDocument.Factory.newInstance();
+        fsckDocXBean.setFsckPassNumber( m_fileSystem.getFsckPassNumber() );
+        prop = m_propSet.get( FilesystemPropertyQNames.FSCKPASSNUMBER );
+        prop.add( fsckDocXBean );
+        prop.setCallback( new example.filesystem.callback.FsckPassNumberCallback( m_fileSystem ) );
+
+        MountPointDirectoryDocument mountPointDocXBean = MountPointDirectoryDocument.Factory.newInstance();
+        mountPointDocXBean.setMountPointDirectory( m_fileSystem.getMountPoint() );
+        prop = m_propSet.get( FilesystemPropertyQNames.MOUNTPOINTDIRECTORY );
+        prop.add( mountPointDocXBean );
+        prop.setCallback( new example.filesystem.callback.MountPointCallback( m_fileSystem ) );
+
+        OptionsDocument optionsDocXBean =
+                OptionsDocument.Factory.newInstance();
+        org.apache.ws.resource.example.filesystem.OptionsDocument.Options options =
+                optionsDocXBean.addNewOptions();
+        java.util.List backendOptions =
+                m_fileSystem.getOptions();
+        for ( int i = 0; i < backendOptions.size(); i++ )
+        {
+            options.addOption( (String) backendOptions.get( i ) );
+        }
+
+        prop = m_propSet.get( FilesystemPropertyQNames.OPTIONS );
+        prop.add( optionsDocXBean );
+        prop.setCallback( new example.filesystem.callback.OptionsCallback( m_fileSystem ) );
+
+    }

Added: incubator/apollo/site/tutorial/method_impls/filesys_service_methods.txt
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/method_impls/filesys_service_methods.txt?view=auto&rev=153118
==============================================================================
--- incubator/apollo/site/tutorial/method_impls/filesys_service_methods.txt (added)
+++ incubator/apollo/site/tutorial/method_impls/filesys_service_methods.txt Wed Feb  9 13:11:35 2005
@@ -0,0 +1,8 @@
+   public org.apache.ws.resource.example.filesystem.UnmountResponseDocument Unmount( org.apache.ws.resource.example.filesystem.UnmountDocument resp)
+   {
+		return UnmountResponseDocument.Factory.newInstance();
+   }
+   public org.apache.ws.resource.example.filesystem.MountResponseDocument Mount( org.apache.ws.resource.example.filesystem.MountDocument resp)
+   {
+	    return MountResponseDocument.Factory.newInstance();		     
+   }
\ No newline at end of file

Added: incubator/apollo/site/tutorial/method_impls/syspros_home_getinstance.txt
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/method_impls/syspros_home_getinstance.txt?view=auto&rev=153118
==============================================================================
--- incubator/apollo/site/tutorial/method_impls/syspros_home_getinstance.txt (added)
+++ incubator/apollo/site/tutorial/method_impls/syspros_home_getinstance.txt Wed Feb  9 13:11:35 2005
@@ -0,0 +1,32 @@
+public Resource getInstance( ResourceContext resourceContext )
+            throws ResourceException,
+            ResourceContextException,
+            ResourceUnknownException
+    {
+        ResourceKey key = resourceContext.getResourceKey();
+        Resource resource = null;
+        try
+        {
+            resource = find( key );
+        }
+        catch ( ResourceException re )
+        {
+            //todo add any checking for key validity
+        }
+
+        if ( resource == null )
+            {
+               try
+               {
+                  resource = createInstance( key );
+               }
+               catch ( Exception e )
+               {
+                  throw new ResourceException( e );
+               }
+
+               add( key, resource );
+            }
+
+        return resource;
+    }

Added: incubator/apollo/site/tutorial/method_impls/syspros_resource_init.txt
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/method_impls/syspros_resource_init.txt?view=auto&rev=153118
==============================================================================
--- incubator/apollo/site/tutorial/method_impls/syspros_resource_init.txt (added)
+++ incubator/apollo/site/tutorial/method_impls/syspros_resource_init.txt Wed Feb  9 13:11:35 2005
@@ -0,0 +1,29 @@
+public void init()
+    {
+        super.init();
+      //create a resource metadata and resource property
+      org.apache.ws.resource.properties.ResourcePropertyMetaData propMetaData = new org.apache.ws.resource.properties.impl.AnyResourcePropertyMetaData( new javax.xml.namespace.QName( SyspropsService.TARGET_NSURI, "property" ) );
+      org.apache.ws.resource.properties.ResourceProperty prop = new org.apache.ws.resource.properties.impl.XmlBeansResourceProperty( propMetaData, (org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet) m_propSet );
+      //add the property to the prop set
+      m_propSet.add( prop );
+
+      //get the current sys properties
+      java.util.Properties sysProps = System.getProperties();
+      java.util.Iterator iterator = sysProps.keySet().iterator();
+      //iterate the sysprops and add to property set
+      while ( iterator.hasNext() )
+      {
+         String sysPropKey = (String) iterator.next();
+         String sysPropValue = sysProps.getProperty( sysPropKey );
+         try
+         {
+            //build an arbitrary XmlObject out of the sysprop data
+            org.apache.xmlbeans.XmlObject propElem = org.apache.xmlbeans.XmlObject.Factory.parse( "<" + SyspropsService.TARGET_NSPREFIX + ":" + "property" + " name=\"" + sysPropKey + "\" value=\"" + sysPropValue + "\" xmlns:" + SyspropsService.TARGET_NSPREFIX + "=\"" + SyspropsService.TARGET_NSURI + "\"/>" );
+            prop.add( propElem );
+         }
+         catch ( org.apache.xmlbeans.XmlException e )
+         {
+            e.printStackTrace();
+         }
+        }
+    }
\ No newline at end of file

Modified: incubator/apollo/site/tutorial/requests/Destroy.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/Destroy.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/Destroy.soap (original)
+++ incubator/apollo/site/tutorial/requests/Destroy.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/GetMultipleResourceProperties.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/GetMultipleResourceProperties.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/GetMultipleResourceProperties.soap (original)
+++ incubator/apollo/site/tutorial/requests/GetMultipleResourceProperties.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/GetResourceProperty_invalidProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/GetResourceProperty_invalidProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/GetResourceProperty_invalidProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/GetResourceProperty_invalidProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/GetResourcePropertyRequest</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/GetResourceProperty_validProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/GetResourceProperty_validProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/GetResourceProperty_validProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/GetResourceProperty_validProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/GetResourcePropertyRequest</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/QueryResourceProperties_allProps.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/QueryResourceProperties_allProps.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/QueryResourceProperties_allProps.soap (original)
+++ incubator/apollo/site/tutorial/requests/QueryResourceProperties_allProps.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/QueryResourceProperties_oneProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/QueryResourceProperties_oneProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/QueryResourceProperties_oneProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/QueryResourceProperties_oneProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_deleteCommentProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_deleteCommentProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_deleteCommentProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_deleteCommentProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_insertCommentProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_insertCommentProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_insertCommentProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_insertCommentProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_updateBackupFreqProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_updateBackupFreqProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_updateBackupFreqProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_updateBackupFreqProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_updateCommentProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_updateCommentProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_updateCommentProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_updateCommentProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_updateFsckPassNumProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_updateFsckPassNumProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_updateFsckPassNumProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_updateFsckPassNumProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_updateMountPointProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_updateMountPointProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_updateMountPointProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_updateMountPointProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetResourceProperties_updateOptionsProp.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetResourceProperties_updateOptionsProp.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetResourceProperties_updateOptionsProp.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetResourceProperties_updateOptionsProp.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/requests/SetTerminationTime.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/SetTerminationTime.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/SetTerminationTime.soap (original)
+++ incubator/apollo/site/tutorial/requests/SetTerminationTime.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/SetTerminationTimeRequest</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Added: incubator/apollo/site/tutorial/requests/Sysprops_QueryResourceProperties_allProps.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/Sysprops_QueryResourceProperties_allProps.soap?view=auto&rev=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/Sysprops_QueryResourceProperties_allProps.soap (added)
+++ incubator/apollo/site/tutorial/requests/Sysprops_QueryResourceProperties_allProps.soap Wed Feb  9 13:11:35 2005
@@ -0,0 +1,19 @@
+<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" 
+          xmlns:sys="http://ws.apache.org/resource/example/sysprops">
+
+   <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+      <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/sysprops</wsa:To>
+      <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/sysprops/FileSystemPortType/yourWsdlRequestName</wsa:Action>
+      <!-- Empty ResourceID is a Singleton  -->
+      <sys:ResourceID mustUnderstand="1"></sys:ResourceID>
+   </Header>
+
+   <Body>
+      <wsrp:QueryResourceProperties xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd">
+         <wsrp:QueryExpression Dialect="http://www.w3.org/TR/1999/REC-xpath-19991116">*</wsrp:QueryExpression>
+      </wsrp:QueryResourceProperties>
+   </Body>
+
+</Envelope>
+
+

Modified: incubator/apollo/site/tutorial/requests/_TEMPLATE.soap
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/requests/_TEMPLATE.soap?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/requests/_TEMPLATE.soap (original)
+++ incubator/apollo/site/tutorial/requests/_TEMPLATE.soap Wed Feb  9 13:11:35 2005
@@ -4,7 +4,7 @@
    <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
       <wsa:To mustUnderstand="1">http://localhost:8080/wsrf/services/filesystem</wsa:To>
       <wsa:Action mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/yourWsdlRequestName</wsa:Action>
-      <fs:ResourceId mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceId>
+      <fs:ResourceID mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceID>
    </Header>
 
    <Body>

Modified: incubator/apollo/site/tutorial/resource.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/resource.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/resource.html (original)
+++ incubator/apollo/site/tutorial/resource.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>
@@ -188,24 +194,27 @@
          header which contains the resource id. When Apollo receives the request it
          will use the resource id to look up the corresponding resource instance to
          service the request.</p>
-<p>This section will discuss how to write a resource class. Please note that the eventual
-         goal will be to generate most of this code for you via code generation. Currently,
-         however, you will need to write this class by hand.</p>
-<p>Initially, you should model your resource off of the included FileSystemResource example.
+<p>This section will discuss how to write a resource class.
+         Initially, you should model your resource off of the included FileSystemResource example.
          This will ensure you will write a valid resource class.</p>
 </div>
 
     
-<a name="N1001F"></a><a name="class-declaration"></a>
+<a name="N1001C"></a><a name="class-declaration"></a>
 <h2 class="boxed">Class Declaration</h2>
 <div class="section">
-<p>When declaring your Resource class you MUST implement org.apache.ws.resource.Resource which provides the necessary operations for dealing with the ResourcePropertySet and the resource's id.  When defining a singleton service</p>
+<p>When declaring your Resource class you MUST implement org.apache.ws.resource.Resource which
+         provides the necessary operations for dealing with the ResourcePropertySet and the
+         resource's id.  When defining a singleton service</p>
 <div class="frame note">
 <div class="label">Note</div>
-<div class="content">The resource id is a custom WS-Addressing header element which you will define in your configuration information for your service.</div>
+<div class="content">The resource id is a custom WS-Addressing header element which you will define in your configuration
+            information for your service.</div>
 </div>
-<p>Optionally, you may also implement PersistentResource, for providing hooks for persistence, and ScheduledResourceTerminationResource, for adding the ability to schedule when the resource should be terminated.</p>
-<p>The FileSystemResource's class declarations is as follows:</p>
+<p>Optionally, you may also implement PersistentResource, for providing hooks for persistence,
+         and ScheduledResourceTerminationResource, for adding the ability to schedule when the resource
+         should be terminated.</p>
+<p>The FileSystemResource's class declaration is as follows:</p>
 <pre class="code">public class FileSystemResource extends
       AbstractFileSystemResource</pre>
 <p>Notice that we've extended a base abstract class.  This allows us to focus solely on the init() operation for registering callback objects and initializing the values of our ResourceProperties.</p>
@@ -213,12 +222,12 @@
 </div>
 
     
-<a name="N1003C"></a><a name="vars"></a>
+<a name="N10039"></a><a name="vars"></a>
 <h2 class="boxed">Instance Variables</h2>
 <div class="section">
 <p>	The instance variables of AbstractFileSystemResource should include the resource id and the
-          ResourcePropertySet. The ResourcePropertySet will be the instance of the ResourceProperties
-          Document associated with this resource instance.</p>
+          ResourcePropertySet. The ResourcePropertySet is the object representation of the resource
+          properties document associated with this resource instance.</p>
 <div class="frame note">
 <div class="label">Note</div>
 <div class="content">Since it is not a requirement to have resource properties in your service,
@@ -227,21 +236,14 @@
 </div>
 
     
-<a name="N10049"></a><a name="methods"></a>
+<a name="N10046"></a><a name="methods"></a>
 <h2 class="boxed">Methods</h2>
 <div class="section">
 <p>The methods are defined by the interfaces you implement and are mainly setters and
          getters for the ResourcePropertySet and the resource id.  There are also operations
          which allow you to initialize your resource or destroy your resource (init(..) and
          destroy()).  The operations allow you to do setup, initializing your resource properties,
-         adding callback objects, and cleanup in your resource class.  The exception, seen in the
-         AbstractFileSystemResource, are the operations for ScheduledResourceTerminationResource
-         in which we've provided a utility class (ResourcePropertyUtils) to help you implement
-         these methods.</p>
-<div class="frame note">
-<div class="label">Note</div>
-<div class="content">The use of ResourcePropertyUtils is purely optional and is meant to help the implementor.</div>
-</div>
+         adding callback objects, and cleanup in your resource class.</p>
 </div>
 
   

Modified: incubator/apollo/site/tutorial/service.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/service.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/service.html (original)
+++ incubator/apollo/site/tutorial/service.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>
@@ -196,15 +202,13 @@
        The public methods in the service class correspond to the SOAP operations
        exposed by your Web service.
       </p>
-<p>This section will discuss how to write a service class.  Please note that
-         the eventual goal will be to generate most of this code for you via code generation.
-         Currently, however, you will need to implement these classes by hand.</p>
-<p>Initially, you should model your service off of the included FileSystemService example.
+<p>This section will discuss how to write a service class.
+         Initially, you should model your service off of the included FileSystemService example.
          This will ensure you will write a valid service.</p>
 </div>
 
     
-<a name="N1001C"></a><a name="classes"></a>
+<a name="N10019"></a><a name="classes"></a>
 <h2 class="boxed">What classes will need to be written?</h2>
 <div class="section">
 <p>The provided example "FileSystem" includes a FileSystemService class.
@@ -218,9 +222,11 @@
        the service however you like. Our description will describe the use of the abstract
        class to separate the functionality.
       </p>
-<a name="N10028"></a><a name="abstract"></a>
+<a name="N10025"></a><a name="abstract"></a>
 <h3 class="boxed">The AbstractService class.</h3>
-<p>The abstract class is the superclass for your service and will contain most of the specification-specific operations and utility operations.  Our description of writing the class will be based on the example.filesystem.AbstractFileSystemService class.</p>
+<p>The abstract class is the superclass for your service and will contain most of the
+           specification-specific operations and utility operations.  Our description of writing
+           the class will be based on the example.filesystem.AbstractFileSystemService class.</p>
 <p>We will describe the class in sections:</p>
 <ol>
           
@@ -249,10 +255,14 @@
 </li>
         
 </ol>
-<a name="N10053"></a><a name="class-declaration"></a>
+<a name="N10050"></a><a name="class-declaration"></a>
 <h4>Class Declaration</h4>
 <p>When declaring your abstract class, you must implement
-            <span class="codefrag">org.apache.ws.resource.handler.WsrfService</span>.  This interface provides methods for initialization, obtaining the ResourceContext and getting the SoapMethodNameMap use for mapping incoming request QName's to method name for a given object.  It basically ensures that Apollo can interact with your service class.
+            <span class="codefrag">org.apache.ws.resource.handler.WsrfService</span>.  This interface provides
+                  methods for initialization, obtaining the ResourceContext and getting the
+                  SoapMethodNameMap used for mapping incoming request QName's to method name
+                  for a given object. It basically ensures that Apollo can interact with your
+                  service class.
           </p>
 <p>The AbstractFileSystemService's class declaration is as follows:</p>
 <pre class="code">
@@ -267,18 +277,21 @@
               ScheduledResourceTerminationPortType</strong>
           
 </pre>
-<p>You should notice that the class implements WsrfService (described above) and various *PortType inerfaces.  Each PortType interface is a Java representation of a specification's WSDL portType declaration.  By implementing the PortType interface corresponding to the specification's/portTypes you are interested in, you will ensure you get the correct method signature for the method call. </p>
-<div class="frame note">
-<div class="label">Note</div>
-<div class="content">As per the Web Services Resource 1.2 specification, a resource must expose resource properties and if you expose properties you MUST, at least, implement GetResourceProperty.  This means your service must implement the GetResourcePropertyPortType.</div>
-</div>
+<p>You should notice that the class implements WsrfService (described above) and various *PortType
+             inerfaces. Each PortType interface is a Java representation of a specification's WSDL portType
+             declaration. By implementing the PortType interface corresponding to the specification's/portTypes
+             you are interested in, you will ensure you get the correct method signature for the method call. </p>
 <p>The packages:
             <strong>org.apache.ws.resource.properties.porttype</strong> and
-            <strong>org.apache.ws.resource.lifetime.porttype</strong> contain the interfaces for the specifications.  You should refer to these packages when selecting the operations you'd like to support.
+            <strong>org.apache.ws.resource.lifetime.porttype</strong> contain the interfaces for the
+            specifications. You should refer to these packages when selecting the operations you'd like
+            to support.
           </p>
-<a name="N10079"></a><a name="wsrfservice"></a>
+<a name="N10073"></a><a name="wsrfservice"></a>
 <h4>WsrfService Interface</h4>
-<p>All services in Apollo need to implement the WsrfService interface.  The interface provides operation "hooks" which will allow Apollo to interact with your service.  There are currenty three operations defined by the interface:</p>
+<p>All Apollo services must implement the WsrfService interface. The interface provides operation
+             "hooks" which will allow Apollo to interact with your service. There are currenty three operations defined
+             by the interface:</p>
 <pre class="code">   /**
     * Returns the SoapMethodNameMap for the Service, to determine
     * which method to invoke for an incoming request.
@@ -300,8 +313,8 @@
    public void init(  );</pre>
 <p>The getMethodNameMap() returns a SoapMethodNameMap implementation which contains mappings of WSDL operation QNames to Java method names.  If you have custom operations you will need to create an instance of ServiceSoapMethodName and add mappings for you operations.</p>
 <p>The getResourceContext() operation returns the ResourceContext associated with this service.  This method may be left abstract in this class and later implemented in the Service extension of your abstract class.</p>
-<p>The init() method is provided to give you an opportunity to initialize members for your Service (i.e. ServiceSoapMethodName )</p>
-<a name="N10090"></a><a name="classvars"></a>
+<p>The init() method is provided to give you an opportunity to initialize members for your Service (e.g. ServiceSoapMethodName )</p>
+<a name="N1008A"></a><a name="classvars"></a>
 <h4>Class Variables</h4>
 <p>The class variables which should be defined are:</p>
 <ol>
@@ -322,7 +335,7 @@
 public static final String TARGET_NSPREFIX = "fs";</pre>
 <p>Notice the fields are "public static final" since they should not change and are easily accessible.
           </p>
-<a name="N100B3"></a><a name="ops"></a>
+<a name="N100AD"></a><a name="ops"></a>
 <h4>Operations</h4>
 <p>The operations which are defined in the abstract class should be operations which typically should not need to be touched.  The specification operations are a prime example.  Upon looking at the AbstractFileSystem class, we see the operations defined for methods like: getMultipleResourceProperties(..).  The body of these methods are similar in that they hand the invocation off to a Provider class:</p>
 <pre class="code">public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
@@ -334,7 +347,7 @@
             <strong>org.apache.ws.resource.properties.porttype.impl</strong> and
             <strong>org.apache.ws.resource.lifetime.porttype.impl</strong> contain the Providers for the methods of the specifications.  You should refer to these packages when implementing the specification operations.
           </p>
-<a name="N100CE"></a><a name="service"></a>
+<a name="N100C8"></a><a name="service"></a>
 <h3 class="boxed">The Service class.</h3>
 <p>The service class is the extension of the abstract class we previously outlined.  Because of the extension you will need to implement the required method getResourceContext().  The ResourceContext should be passed in the constructor to the class and be maintained as a class variable.  The ResourceContext will be passed, upon construction, to the Service via the Home class.  </p>
 <p>The Service class should contain any custom operations as were defined in the WSDL for the service.  The safest way to handle the parameters and return type of the methods is to simply use XmlObject:</p>
@@ -350,7 +363,10 @@
       }
    }
         </pre>
-<p>XmlBeans will generate strongly-typed objects for the types defined in the schema section of your WSDL document, and these types may be used, however if you are unsure which type will get passed to your operation you can be sure it will be XmlObject since it is the base class for all objects in XmlBeans.</p>
+<p>XmlBeans will generate strongly-typed objects for the types defined in the schema section of
+           your WSDL document, and these types may be used, however if you are unsure which type will get
+           passed to your operation, you can be sure it will implement the XmlObject interface, since
+           all XmlBeans implement this interface.</p>
 </div>
 
   

Modified: incubator/apollo/site/tutorial/soapclient.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/soapclient.xml?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/soapclient.xml (original)
+++ incubator/apollo/site/tutorial/soapclient.xml Wed Feb  9 13:11:35 2005
@@ -8,21 +8,15 @@
 
    <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
    <property name="ant.home" value="env.ANT_HOME"/>
-
-   <property name="dist.home"             location="../.." />
-   <property name="dev.home"              location="../../../.." />
+   
 
    <target name="init">
           
-     <available file="${dist.home}/webapps/wsrf" type="dir" property="dist.wsrf.webapp.dir" value="${dist.home}/webapps/wsrf" />         
+     <available file="../../webapps/wsrf" type="dir" property="dist.wsrf.webapp.dir" value="../../webapps/wsrf" />         
      <condition property="wsrf.webapp.dir" value="${dist.wsrf.webapp.dir}">
         <isset property="dist.wsrf.webapp.dir"/>
-     </condition>     
-     <available file="${dev.home}/target/wsrf"   type="dir" property="dev.wsrf.webapp.dir"  value="${dev.home}/target/wsrf" />
-     <condition property="wsrf.webapp.dir" value="${dev.wsrf.webapp.dir}">
-        <isset property="dev.wsrf.webapp.dir"/>
-     </condition>
-     <fail unless="wsrf.webapp.dir" message="webapp dir ${dist.home}/webapps/wsrf does not exist." />    
+     </condition>          
+     <fail unless="wsrf.webapp.dir" message="webapp dir ../../webapps/wsrf does not exist." />    
      <echo>Using webapp dir: ${wsrf.webapp.dir}</echo>         
      
      <path id="apollo.classpath.id">

Modified: incubator/apollo/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java (original)
+++ incubator/apollo/site/tutorial/src/example/filesystem/callback/BackupFrequencyCallback.java Wed Feb  9 13:11:35 2005
@@ -9,9 +9,8 @@
 
 import example.filesystem.backend.FileSystem;
 
-
 /**
- * @author Sal Campana
+ * A callback for the BackupFrequency resource property.
  */
 public class BackupFrequencyCallback implements SetResourcePropertyCallback
 {
@@ -24,22 +23,19 @@
 
     public void deleteProperty(QName propQName)
     {
-        //can't delete!
-        throw new UnsupportedOperationException("Min Occurs is !, You cannot Delete!");
+        return; // no need to implement - Apollo will never call delete for a prop whose minOccurs != 0
     }
 
     public void insertProperty(Object[] prop)
     {
-        for (int i = 0; i < prop.length; i++)
-        {
-            XmlInt xInt = (XmlInt) prop[i];            
-            m_fileSystem.setBackupFrequency(xInt.getIntValue());
-        }
+        return; // no need to implement - Apollo will never call insert for a prop whose minOccurs == its maxOccurs
     }
 
     public void updateProperty(Object[] prop)
     {
-        insertProperty(prop);
+        // 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)

Modified: incubator/apollo/site/tutorial/src/example/filesystem/callback/CommentCallback.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/src/example/filesystem/callback/CommentCallback.java?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/src/example/filesystem/callback/CommentCallback.java (original)
+++ incubator/apollo/site/tutorial/src/example/filesystem/callback/CommentCallback.java Wed Feb  9 13:11:35 2005
@@ -8,7 +8,7 @@
 import javax.xml.namespace.QName;
 
 /**
- * Callback for the fs:Callback RP.
+ * A callback for the Comment resource property.
  */
 public class CommentCallback implements SetResourcePropertyCallback
 {
@@ -26,6 +26,7 @@
 
     public void insertProperty( Object[] propElems )
     {
+        // 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() );
     }

Modified: incubator/apollo/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java (original)
+++ incubator/apollo/site/tutorial/src/example/filesystem/callback/FsckPassNumberCallback.java Wed Feb  9 13:11:35 2005
@@ -11,7 +11,7 @@
 
 
 /**
- * @author Sal Campana
+ * A callback for the FsckPassNumber resource property.
  */
 public class FsckPassNumberCallback implements SetResourcePropertyCallback
 {
@@ -24,22 +24,19 @@
 
     public void deleteProperty(QName propQName)
     {
-        //can't delete!
-        throw new UnsupportedOperationException("Min Occurs is !, You cannot Delete!");
+        return; // no need to implement - Apollo will never call delete for a prop whose minOccurs != 0
     }
 
-    public void insertProperty(Object[] prop)
+    public void insertProperty(Object[] propElems)
     {
-        updateProperty(prop);
+        return; // no need to implement - Apollo will never call insert for a prop whose minOccurs == its maxOccurs
     }
 
-    public void updateProperty(Object[] prop)
+    public void updateProperty(Object[] propElems)
     {
-        for (int i = 0; i < prop.length; i++)
-        {
-            XmlInt xInt = (XmlInt) prop[i];
-            m_fileSystem.setFsckPassNumber(xInt.getIntValue());
-        }
+        // 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)

Modified: incubator/apollo/site/tutorial/src/example/filesystem/callback/MountPointCallback.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/src/example/filesystem/callback/MountPointCallback.java?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/src/example/filesystem/callback/MountPointCallback.java (original)
+++ incubator/apollo/site/tutorial/src/example/filesystem/callback/MountPointCallback.java Wed Feb  9 13:11:35 2005
@@ -6,9 +6,8 @@
 import org.apache.xmlbeans.XmlString;
 import example.filesystem.backend.FileSystem;
 
-
 /**
- * @author Sal Campana
+ * A callback for the MountPoint resource property.
  */
 public class MountPointCallback  implements ResourcePropertyCallback
 {
@@ -21,7 +20,6 @@
 
     public ResourceProperty refreshProperty(ResourceProperty prop)
     {
-
         XmlString xString = (XmlString) prop.get( 0 );
         xString.setStringValue( m_fileSystem.getMountPoint() );
         return prop;

Modified: incubator/apollo/site/tutorial/src/example/filesystem/callback/OptionsCallback.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/src/example/filesystem/callback/OptionsCallback.java?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/src/example/filesystem/callback/OptionsCallback.java (original)
+++ incubator/apollo/site/tutorial/src/example/filesystem/callback/OptionsCallback.java Wed Feb  9 13:11:35 2005
@@ -19,100 +19,101 @@
 import org.apache.ws.resource.example.filesystem.OptionsDocument;
 import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+
 import javax.xml.namespace.QName;
 import java.util.Iterator;
 import java.util.List;
 
 /**
- * @author Sal Campana
+ * A callback for the Options resource property.
  */
 public class OptionsCallback
-   implements SetResourcePropertyCallback
+        implements SetResourcePropertyCallback
 {
-   /** DOCUMENT_ME */
-   FileSystem m_fileSystem;
-
-   /**
-    * Creates a new {@link OptionsCallback} object.
-    *
-    * @param fileSystem DOCUMENT_ME
-    */
-   public OptionsCallback( FileSystem fileSystem )
-   {
-      m_fileSystem = fileSystem;
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param propQName DOCUMENT_ME
-    */
-   public void deleteProperty( QName propQName )
-   {
-      m_fileSystem.getOptions(  ).clear(  );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param prop DOCUMENT_ME
-    */
-   public void insertProperty( Object[] prop )
-   {
-       updateProperty(prop);
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param prop DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public ResourceProperty refreshProperty( ResourceProperty prop )
-   {
-      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 )
-   {
-      List backendOptions = m_fileSystem.getOptions(  );
-      for ( int i = 0; i < prop.length; i++ )
-      {
-         OptionsDocument.Options o           = (OptionsDocument.Options) prop[i];
-         String[]                optionArray = o.getOptionArray(  );
-         for ( int j = 0; j < optionArray.length; j++ )
-         {
+    /**
+     * DOCUMENT_ME
+     */
+    FileSystem m_fileSystem;
+
+    /**
+     * Creates a new {@link OptionsCallback} object.
+     *
+     * @param fileSystem DOCUMENT_ME
+     */
+    public OptionsCallback( FileSystem fileSystem )
+    {
+        m_fileSystem = fileSystem;
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param propQName DOCUMENT_ME
+     */
+    public void deleteProperty( QName propQName )
+    {
+        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 )
+    {
+        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 )
+    {
+        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 )
+    {
+        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 );
-      }
-   }
+        }
+    }
+
+    private void clearOptionsFromProperty( OptionsDocument.Options o )
+    {
+        //remove the options...
+        for ( int i = 0; i < o.sizeOfOptionArray(); i++ )
+        {
+            o.removeOption( i );
+        }
+    }
 }

Modified: incubator/apollo/site/tutorial/test.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/test.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/test.html (original)
+++ incubator/apollo/site/tutorial/test.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>
@@ -175,7 +181,7 @@
 <a name="N1000C"></a><a name="intro"></a>
 <h2 class="boxed">Introduction</h2>
 <div class="section">
-<p>This section will describe how to test your service running in the Tomcat container.</p>
+<p>This section will describe how to test your service running in the Tomcat servlet container.</p>
 </div>
 
     

Modified: incubator/apollo/site/tutorial/webapp.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/webapp.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/webapp.html (original)
+++ incubator/apollo/site/tutorial/webapp.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>

Modified: incubator/apollo/site/tutorial/wsdl.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/wsdl.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/wsdl.html (original)
+++ incubator/apollo/site/tutorial/wsdl.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>

Modified: incubator/apollo/site/tutorial/wsdl2java.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/tutorial/wsdl2java.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/tutorial/wsdl2java.html (original)
+++ incubator/apollo/site/tutorial/wsdl2java.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="../release.html">Releases</a>
+</div>
+</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="../wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="../apidocs/index.html">API Docs</a>
 </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>

Modified: incubator/apollo/site/version_control.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/version_control.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/version_control.html (original)
+++ incubator/apollo/site/version_control.html Wed Feb  9 13:11:35 2005
@@ -108,9 +108,15 @@
 <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="release.html">Releases</a>
+</div>
+</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="wsrf.html">WSRF</a>
 </div>
 <div class="menuitem">
@@ -120,8 +126,8 @@
 <a title="" href="apidocs/index.html">API Docs</a>
 </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>
@@ -168,6 +174,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>
   
@@ -216,6 +225,18 @@
         <a class="external" href="https://svn.apache.org/repos/asf/incubator/apollo/">https://svn.apache.org/repos/asf/incubator/apollo/</a>.
         Instructions for committer SVN access are 
         <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>
     

Modified: incubator/apollo/site/wsrf.html
URL: http://svn.apache.org/viewcvs/incubator/apollo/site/wsrf.html?view=diff&r1=153117&r2=153118
==============================================================================
--- incubator/apollo/site/wsrf.html (original)
+++ incubator/apollo/site/wsrf.html Wed Feb  9 13:11:35 2005
@@ -108,8 +108,14 @@
 <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">WSRF</div>
 </div>
@@ -120,8 +126,8 @@
 <a title="" href="apidocs/index.html">API Docs</a>
 </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: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org