You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by sc...@apache.org on 2005/05/23 20:55:51 UTC
svn commit: r178003 - in /incubator/hermes/trunk: ./
src/site/content/tutorial/method_impls/ src/site/content/tutorial/requests/
Author: scamp
Date: Mon May 23 11:55:49 2005
New Revision: 178003
URL: http://svn.apache.org/viewcvs?rev=178003&view=rev
Log: (empty)
Added:
incubator/hermes/trunk/src/site/content/tutorial/method_impls/
incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt
incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_resource_init.txt
Modified:
incubator/hermes/trunk/maven.xml
incubator/hermes/trunk/project.xml
incubator/hermes/trunk/src/site/content/tutorial/requests/BadGetCurrentMessage.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/GetCurrentMessage.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/Pause_Subscription.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/Resume_Subscription.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/SetResourceProperties_updateMountPointProp.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/Subscribe_updateMountPointProp.soap
incubator/hermes/trunk/src/site/content/tutorial/requests/_TEMPLATE.soap
Modified: incubator/hermes/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/maven.xml?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/maven.xml (original)
+++ incubator/hermes/trunk/maven.xml Mon May 23 11:55:49 2005
@@ -105,7 +105,7 @@
<postGoal name="war:webapp">
<!-- Delete the Hermes classes that war:webapp copied into WEB-INF/classes/. -->
- <delete><fileset dir="${maven.war.webapp.dir}/WEB-INF/classes" excludes="*.*, wsdl" /></delete>
+ <delete includeEmptyDirs="true"><fileset dir="${maven.war.webapp.dir}/WEB-INF/classes" excludes="*.*,**/QSWSDLHandler.class" /></delete>
<!-- Build Hermes jar and copy it into WEB-INF/lib/. -->
<j:set var="maven.test.skip" value="true" />
Modified: incubator/hermes/trunk/project.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/project.xml?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/project.xml (original)
+++ incubator/hermes/trunk/project.xml Mon May 23 11:55:49 2005
@@ -102,8 +102,7 @@
<artifactId>ant</artifactId>
<version>1.6.2</version>
<url>http://ant.apache.org/</url>
- <properties>
- <license>ApacheLicense-2.0.txt</license>
+ <properties>
<scope>compile-time-only</scope>
<usage>Needed for various custom Tasks we've defined for updating a Wsdd and running WsdmWsdl2Java.</usage>
</properties>
@@ -390,8 +389,7 @@
<artifactId>servletapi</artifactId>
<version>2.3</version>
<url>http://java.sun.com/products/servlet/</url>
- <properties>
- <license>BinaryCodeLicense-ServletApi.txt</license>
+ <properties>
<scope>compile-time-only</scope>
<usage>Needed to compile our servlet.</usage>
<war.bundle>false</war.bundle>
Added: incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt?rev=178003&view=auto
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt (added)
+++ incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt Mon May 23 11:55:49 2005
@@ -0,0 +1,37 @@
+ public Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ ResourceKey key = resourceContext.getResourceKey();
+ Resource resource = null;
+ try
+ {
+ resource = find( key );
+ }
+ catch ( ResourceException re )
+ {
+ Object id = key.getValue();
+ /**
+ * Determine if the passed-in key is, in fact, something we expect.
+ */
+ if ( id.equals( "/dev/vg00/lvol1" ) || id.equals( "/dev/vg00/lvol2" ) )
+ {
+ try
+ {
+ resource = createInstance( key);
+ }
+ catch ( Exception e )
+ {
+ throw new ResourceException( e );
+ }
+ add( key, resource );
+ }
+ else
+ {
+ throw new ResourceUnknownException( id,
+ resourceContext.getServiceName() );
+ }
+ }
+ return resource;
+ }
Added: incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_resource_init.txt
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_resource_init.txt?rev=178003&view=auto
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_resource_init.txt (added)
+++ incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_resource_init.txt Mon May 23 11:55:49 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 ) );
+
+ }
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/BadGetCurrentMessage.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/BadGetCurrentMessage.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/BadGetCurrentMessage.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/BadGetCurrentMessage.soap Mon May 23 11:55:49 2005
@@ -5,7 +5,7 @@
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/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:ResourceIdentifier mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/GetCurrentMessage.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/GetCurrentMessage.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/GetCurrentMessage.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/GetCurrentMessage.soap Mon May 23 11:55:49 2005
@@ -5,7 +5,7 @@
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/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:ResourceIdentifier mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/Pause_Subscription.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/Pause_Subscription.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/Pause_Subscription.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/Pause_Subscription.soap Mon May 23 11:55:49 2005
@@ -5,7 +5,7 @@
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/services/SubscriptionManager</wsa:To>
<wsa:Action mustUnderstand="1">http://localhost:8080/hermes/services/SubscriptionManager/yourWsdlRequestName</wsa:Action>
- <sub:ResourceID mustUnderstand="1">4623a820-7483-11d9-9a53-fe396408008d</sub:ResourceID>
+ <sub:ResourceIdentifier mustUnderstand="1">4623a820-7483-11d9-9a53-fe396408008d</sub:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/Resume_Subscription.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/Resume_Subscription.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/Resume_Subscription.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/Resume_Subscription.soap Mon May 23 11:55:49 2005
@@ -5,7 +5,7 @@
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/services/SubscriptionManager</wsa:To>
<wsa:Action mustUnderstand="1">http://localhost:8080/hermes/services/SubscriptionManager/yourWsdlRequestName</wsa:Action>
- <sub:ResourceID mustUnderstand="1">4623a820-7483-11d9-9a53-fe396408008d</sub:ResourceID>
+ <sub:ResourceIdentifier mustUnderstand="1">4623a820-7483-11d9-9a53-fe396408008d</sub:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/SetResourceProperties_updateMountPointProp.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/SetResourceProperties_updateMountPointProp.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/SetResourceProperties_updateMountPointProp.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/SetResourceProperties_updateMountPointProp.soap Mon May 23 11:55:49 2005
@@ -4,7 +4,7 @@
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/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:ResourceIdentifier mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/Subscribe_updateMountPointProp.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/Subscribe_updateMountPointProp.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/Subscribe_updateMountPointProp.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/Subscribe_updateMountPointProp.soap Mon May 23 11:55:49 2005
@@ -7,7 +7,7 @@
<Header>
<wsa:To mustUnderstand="1">http://localhost:8080/hermes/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:ResourceIdentifier mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
</Header>
<Body>
Modified: incubator/hermes/trunk/src/site/content/tutorial/requests/_TEMPLATE.soap
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/requests/_TEMPLATE.soap?rev=178003&r1=178002&r2=178003&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/requests/_TEMPLATE.soap (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/requests/_TEMPLATE.soap Mon May 23 11:55:49 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:ResourceIdentifier mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
</Header>
<Body>
---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org