You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by sc...@apache.org on 2005/06/03 21:28:31 UTC
svn commit: r179865 [1/2] - in
/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service: ./
weatherClientConfig/ weatherStation/ weatherStation/callbacks/
weatherStationDir/
Author: scamp
Date: Fri Jun 3 12:28:30 2005
New Revision: 179865
URL: http://svn.apache.org/viewcvs?rev=179865&view=rev
Log: (empty)
Modified:
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropConstants.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigCustomOperationsPortType.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfig_jndi-config.xml
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/HumidityCallback.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/TemperatureCallback.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirCustomOperationsPortType.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirPropertyQNames.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDir_jndi-config.xml
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropConstants.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropConstants.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropConstants.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropConstants.java Fri Jun 3 12:28:30 2005
@@ -9,21 +9,31 @@
*/
public interface InteropConstants
{
- /** Resource Keys for the Weather Stations **/
+ /**
+ * Resource Keys for the Weather Stations *
+ */
String WS1_KEY = "weather-station-1";
String WS2_KEY = "weather-station-2";
- /** default relationship **/
+ /**
+ * default relationship *
+ */
QName RELATIONSHIP_RELATION = new QName(WeatherStationDirHome.SERVICE_NAME.getNamespaceURI(), "Contains", "wsdir");
- /** Directory service Muws ResourceID **/
+ /**
+ * Directory service Muws ResourceID *
+ */
String DIR_RESOURCEID = "urn:SINGLETON";
- /** Directory Service Location **/
- String DIR_SERVICE_ADDRESS = System.getProperty("DIRECTORY_SERVICE","http://localhost:8080/muse/services/WeatherStationDir");
+ /**
+ * Directory Service Location *
+ */
+ String DIR_SERVICE_ADDRESS = System.getProperty("DIRECTORY_SERVICE", "http://localhost:8080/muse/services/WeatherStationDir");
- /** BASE SERVICE ADDRESS **/
- String BASE_ADDRESS = System.getProperty("BASE_ADDRESS","http://localhost:8080/muse/services/WeatherStationDir");
+ /**
+ * BASE SERVICE ADDRESS *
+ */
+ String BASE_ADDRESS = System.getProperty("BASE_ADDRESS", "http://localhost:8080/muse/services/WeatherStationDir");
double MAX_HUMIDITY = 99.9;
double MIN_HUMIDITY = 02.0;
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java Fri Jun 3 12:28:30 2005
@@ -1,56 +1,58 @@
-
package org.wsdmdemo.service.weatherClientConfig;
import org.apache.ws.addressing.EndpointReference;
/**
- * **** WARNING: This file will be overwritten during generation ****
- *
+ * **** WARNING: This file will be overwritten during generation ****
+ * <p/>
* An abstract WeatherClientConfig WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractWeatherClientConfigResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
-
+public abstract class AbstractWeatherClientConfigResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource
+{
+
/**
* The resource ID of the instance.
*/
protected String m_id;
-
- /** The EndpointReference for this resource **/
+
+ /**
+ * The EndpointReference for this resource *
+ */
protected EndpointReference m_endpointReference;
- /**
+ /**
* The set of properties associated with this resource.
*/
protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
-
+
+
/**
* A list of termination listeners to be notified when the resource is terminated.
*/
- private java.util.List m_terminationListeners = new java.util.ArrayList();
-
-
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+
/**
* DOCUMENT_ME
*
* @param id DOCUMENT_ME
*/
- public void setID( Object id )
+ public void setID(Object id)
{
- if ( m_id != null )
+ if (m_id != null)
{
- throw new IllegalStateException( "This resource's ID has already been set." );
+ throw new IllegalStateException("This resource's ID has already been set.");
}
try
{
m_id = (String) id;
}
- catch ( ClassCastException cce )
+ catch (ClassCastException cce)
{
- throw new IllegalArgumentException( "Specified ID is not a String." );
+ throw new IllegalArgumentException("Specified ID is not a String.");
}
}
@@ -59,9 +61,9 @@
*
* @param listener DOCUMENT_ME
*/
- public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
- {
- m_terminationListeners.add(listener);
+ public void addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+ {
+ m_terminationListeners.add(listener);
}
/**
@@ -76,54 +78,53 @@
public void destroy()
{
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
- for (int i = 0; i < m_terminationListeners.size(); i++)
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
- resourceTerminationEventListener.terminationOccurred(rte);
- }
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(), "Resource Destroyed");
+ for (int i = 0; i < m_terminationListeners.size(); i++)
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+ resourceTerminationEventListener.terminationOccurred(rte);
+ }
return;
}
public void init()
{
-
- org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
-
-
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
- */
+
+ org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(propsDoc);
+
+
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
public EndpointReference getEndpointReference()
{
- return m_endpointReference;
+ return m_endpointReference;
}
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
- */
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
public void setEndpointReference(EndpointReference epr)
{
- m_endpointReference = epr;
+ m_endpointReference = epr;
}
-
+
/**
* @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
*/
- public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ public void setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet propSet)
{
m_propSet = propSet;
}
@@ -134,12 +135,13 @@
public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
{
return m_propSet;
- }
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
-
- public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
- {
- return m_topicSpaceSet;
- }
-
+ }
+
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java Fri Jun 3 12:28:30 2005
@@ -1,4 +1,3 @@
-
package org.wsdmdemo.service.weatherClientConfig;
import org.apache.ws.resource.AbstractPortType;
@@ -10,139 +9,135 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* This class should be generated on every "generation" against the WSDL.
* This will ensure it is always up-to-date with the WSDL.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractWeatherClientConfigService extends AbstractPortType
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType{
+ implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
+{
- public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-client-config";
- public static final String TARGET_NSPREFIX = "weather-client-config";
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-client-config";
+ public static final String TARGET_NSPREFIX = "weather-client-config";
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- public AbstractWeatherClientConfigService( ResourceContext resourceContext )
- {
- super(resourceContext);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestQname DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getMethodName( QName requestQname )
- {
- if ( !m_isInitialized )
- {
- init( );
- }
-
- return m_methodNameMap.getMethodName( requestQname );
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public final SoapMethodNameMap getMethodNameMap( )
- {
- return m_methodNameMap;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_isInitialized = true;
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- protected final boolean isInitialized( )
- {
- return m_isInitialized;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesResponseDocument setResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.SetResourcePropertiesPortTypeImpl( getResourceContext( ) ).setResourceProperties( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
- }
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).subscribe( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
- }
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeatherClientConfigService(ResourceContext resourceContext)
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestQname DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public String getMethodName(QName requestQname)
+ {
+ if (!m_isInitialized)
+ {
+ init();
+ }
+
+ return m_methodNameMap.getMethodName(requestQname);
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public final SoapMethodNameMap getMethodNameMap()
+ {
+ return m_methodNameMap;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+ m_methodNameMap = new ServiceSoapMethodNameMap(getResourceContext());
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized()
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesResponseDocument setResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.SetResourcePropertiesPortTypeImpl(getResourceContext()).setResourceProperties(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl(getResourceContext()).getMultipleResourceProperties(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl(getResourceContext()).getResourceProperty(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).subscribe(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
+ }
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigCustomOperationsPortType.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigCustomOperationsPortType.java Fri Jun 3 12:28:30 2005
@@ -1,16 +1,14 @@
-
package org.wsdmdemo.service.weatherClientConfig;
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* Custom operations portType.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherClientConfigCustomOperationsPortType
{
-
-
+
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java Fri Jun 3 12:28:30 2005
@@ -4,30 +4,29 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* QNames of the resource properties defined by WeatherClientConfig WSDL.
* <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherClientConfigPropertyQNames
{
-
- QName MANAGEABILITYCAPABILITY =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
- QName TOPICEXPRESSIONDIALECTS =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
- QName WEATHERSTATIONREFERENCE =
- new QName( "http://wsdmdemo.org/service/weather-client-config", "WeatherStationReference", "tns");
- QName RESOURCEID =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
- QName FIXEDTOPICSET =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
- QName OPERATIONALSTATUS =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
- QName WEATHERDATAREFRESHINTERVAL =
- new QName( "http://wsdmdemo.org/service/weather-client-config", "WeatherDataRefreshInterval", "tns");
- QName TOPIC =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
-
+
+ QName MANAGEABILITYCAPABILITY =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName WEATHERSTATIONREFERENCE =
+ new QName("http://wsdmdemo.org/service/weather-client-config", "WeatherStationReference", "tns");
+ QName RESOURCEID =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
+ QName FIXEDTOPICSET =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName OPERATIONALSTATUS =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
+ QName WEATHERDATAREFRESHINTERVAL =
+ new QName("http://wsdmdemo.org/service/weather-client-config", "WeatherDataRefreshInterval", "tns");
+ QName TOPIC =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java Fri Jun 3 12:28:30 2005
@@ -92,7 +92,7 @@
resourceProperty.addChangeListener(manageabilityCharacteristicsCapability);
resourceProperty.add(prop_manageabilitycapability);
- /** END CAPABILITIES **/
+ /** END CAPABILITIES **/
/** RESOURCE PROPERTIES **/
@@ -179,6 +179,6 @@
WeatherStationHome home = (WeatherStationHome) ic.lookup(WeatherStationHome.HOME_LOCATION);
Resource resource = home.find(new SimpleTypeResourceKey(WeatherStationHome.RESOURCE_KEY_NAME, InteropConstants.WS1_KEY));
//get the 2004 EPR
- return (EndpointReferenceType) ((XmlBeansEndpointReference)resource.getEndpointReference()).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
+ return (EndpointReferenceType) ((XmlBeansEndpointReference) resource.getEndpointReference()).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
}
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigService.java Fri Jun 3 12:28:30 2005
@@ -4,48 +4,47 @@
/**
* **** NOTE: This file will not be overwritten during generation ****
- *
+ * <p/>
* This class should be generated ONCE (and not overwritten) to maintain user-added code.
* If there is a change to the WSDL, then the generated implemented interfaces
* (representing the "base" portTypes) will change, thus showing a compile error to the
* user.
- *
+ * <p/>
* NOTE: This class is generated. However, it will not be overwritten by subsequent
- * calls to the code generator.
- *
+ * calls to the code generator.
*/
public class WeatherClientConfigService
- extends AbstractWeatherClientConfigService
- implements WeatherClientConfigCustomOperationsPortType
+ extends AbstractWeatherClientConfigService
+ implements WeatherClientConfigCustomOperationsPortType
{
-
-
- /**
- * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
- */
- public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
-
- /**
- * Creates a new {@link WeatherClientConfigService } object.
- *
- * @param resourceContext DOCUMENT_ME
- */
- public WeatherClientConfigService( ResourceContext resourceContext )
- {
- super(resourceContext);
- init();
- }
-
- /**
- * Returns a collection of Spec Namespaces associated with this Service
- *
- * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces
- * associated with this service.
- */
- protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
- {
- return SPEC_NAMESPACE_SET;
- }
-
-
+
+
+ /**
+ * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+ */
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+
+ /**
+ * Creates a new {@link WeatherClientConfigService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public WeatherClientConfigService(ResourceContext resourceContext)
+ {
+ super(resourceContext);
+ init();
+ }
+
+ /**
+ * Returns a collection of Spec Namespaces associated with this Service
+ *
+ * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces
+ * associated with this service.
+ */
+ protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
+ {
+ return SPEC_NAMESPACE_SET;
+ }
+
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfig_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfig_jndi-config.xml?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfig_jndi-config.xml (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfig_jndi-config.xml Fri Jun 3 12:28:30 2005
@@ -4,31 +4,31 @@
<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
- <service name="WeatherClientConfig">
- <resource name="home" type="org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigHome">
- <resourceParams>
- <parameter>
- <name>serviceClassName</name>
- <value>org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigService</value>
- </parameter>
- <parameter>
- <name>resourceClassName</name>
- <value>org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResource</value>
- </parameter>
- <parameter>
- <name>wsdlTargetNamespace</name>
- <value>http://wsdmdemo.org/service/weather-client-config</value>
- </parameter>
-
- <parameter>
- <name>resourceKeyName</name>
- <value>{http://wsdmdemo.org/service/weather-client-config}ResourceIdentifier</value>
- </parameter>
-
+ <service name="WeatherClientConfig">
+ <resource name="home" type="org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-client-config</value>
+ </parameter>
- </resourceParams>
- </resource>
- </service>
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://wsdmdemo.org/service/weather-client-config}ResourceIdentifier</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
</jndiConfig>
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java Fri Jun 3 12:28:30 2005
@@ -1,56 +1,58 @@
-
package org.wsdmdemo.service.weatherStation;
import org.apache.ws.addressing.EndpointReference;
/**
- * **** WARNING: This file will be overwritten during generation ****
- *
+ * **** WARNING: This file will be overwritten during generation ****
+ * <p/>
* An abstract WeatherStation WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractWeatherStationResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
-
+public abstract class AbstractWeatherStationResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource
+{
+
/**
* The resource ID of the instance.
*/
protected String m_id;
-
- /** The EndpointReference for this resource **/
+
+ /**
+ * The EndpointReference for this resource *
+ */
protected EndpointReference m_endpointReference;
- /**
+ /**
* The set of properties associated with this resource.
*/
protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
-
+
+
/**
* A list of termination listeners to be notified when the resource is terminated.
*/
- private java.util.List m_terminationListeners = new java.util.ArrayList();
-
-
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+
/**
* DOCUMENT_ME
*
* @param id DOCUMENT_ME
*/
- public void setID( Object id )
+ public void setID(Object id)
{
- if ( m_id != null )
+ if (m_id != null)
{
- throw new IllegalStateException( "This resource's ID has already been set." );
+ throw new IllegalStateException("This resource's ID has already been set.");
}
try
{
m_id = (String) id;
}
- catch ( ClassCastException cce )
+ catch (ClassCastException cce)
{
- throw new IllegalArgumentException( "Specified ID is not a String." );
+ throw new IllegalArgumentException("Specified ID is not a String.");
}
}
@@ -59,9 +61,9 @@
*
* @param listener DOCUMENT_ME
*/
- public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
- {
- m_terminationListeners.add(listener);
+ public void addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+ {
+ m_terminationListeners.add(listener);
}
/**
@@ -76,54 +78,53 @@
public void destroy()
{
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
- for (int i = 0; i < m_terminationListeners.size(); i++)
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
- resourceTerminationEventListener.terminationOccurred(rte);
- }
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(), "Resource Destroyed");
+ for (int i = 0; i < m_terminationListeners.size(); i++)
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+ resourceTerminationEventListener.terminationOccurred(rte);
+ }
return;
}
public void init()
{
-
- org.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
-
-
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
- */
+
+ org.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherStation.WeatherStationResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(propsDoc);
+
+
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
public EndpointReference getEndpointReference()
{
- return m_endpointReference;
+ return m_endpointReference;
}
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
- */
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
public void setEndpointReference(EndpointReference epr)
{
- m_endpointReference = epr;
+ m_endpointReference = epr;
}
-
+
/**
* @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
*/
- public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ public void setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet propSet)
{
m_propSet = propSet;
}
@@ -134,12 +135,13 @@
public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
{
return m_propSet;
- }
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
-
- public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
- {
- return m_topicSpaceSet;
- }
-
+ }
+
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java Fri Jun 3 12:28:30 2005
@@ -1,4 +1,3 @@
-
package org.wsdmdemo.service.weatherStation;
import org.apache.ws.resource.AbstractPortType;
@@ -10,128 +9,125 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* This class should be generated on every "generation" against the WSDL.
* This will ensure it is always up-to-date with the WSDL.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractWeatherStationService extends AbstractPortType
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType {
+ implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
+{
+
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station";
+ public static final String TARGET_NSPREFIX = "weather-station";
- public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station";
- public static final String TARGET_NSPREFIX = "weather-station";
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeatherStationService(ResourceContext resourceContext)
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestQname DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public String getMethodName(QName requestQname)
+ {
+ if (!m_isInitialized)
+ {
+ init();
+ }
+
+ return m_methodNameMap.getMethodName(requestQname);
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public final SoapMethodNameMap getMethodNameMap()
+ {
+ return m_methodNameMap;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+ m_methodNameMap = new ServiceSoapMethodNameMap(getResourceContext());
+ m_methodNameMap.addMapping(javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}Recalibrate"), "Recalibrate");
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized()
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl(getResourceContext()).getMultipleResourceProperties(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl(getResourceContext()).getResourceProperty(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).subscribe(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
+ }
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- public AbstractWeatherStationService( ResourceContext resourceContext )
- {
- super(resourceContext);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestQname DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getMethodName( QName requestQname )
- {
- if ( !m_isInitialized )
- {
- init( );
- }
-
- return m_methodNameMap.getMethodName( requestQname );
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public final SoapMethodNameMap getMethodNameMap( )
- {
- return m_methodNameMap;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}Recalibrate") , "Recalibrate" );
- m_isInitialized = true;
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- protected final boolean isInitialized( )
- {
- return m_isInitialized;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
- }
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).subscribe( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
- }
-
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java Fri Jun 3 12:28:30 2005
@@ -1,17 +1,15 @@
-
package org.wsdmdemo.service.weatherStation;
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* Custom operations portType.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherStationCustomOperationsPortType
{
-
- public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument Recalibrate( org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc ) ;
-
+
+ public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument Recalibrate(org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc);
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java Fri Jun 3 12:28:30 2005
@@ -73,7 +73,7 @@
public synchronized void init() throws Exception
{
super.init();
- try
+ try
{
//bootstrap the weather stations todo not sure we need to do this
SimpleTypeResourceKey ws1Key = new SimpleTypeResourceKey(RESOURCE_KEY_NAME, InteropConstants.WS1_KEY);
@@ -104,8 +104,8 @@
{
AddWeatherStationDocument addWeatherStationDocument = AddWeatherStationDocument.Factory.newInstance();
org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument.AddWeatherStation addWeatherStation = addWeatherStationDocument.addNewAddWeatherStation();
- addWeatherStation.setEndpointReference((org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType) ((XmlBeansEndpointReference)epr).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA));
- XmlObject xmlObject = InteropRequestUtils.sendRequest(addWeatherStationDocument,"http://wsdmdemo.org/service/weather-station-dir/AddWeatherStation", InteropConstants.DIR_SERVICE_ADDRESS);
+ addWeatherStation.setEndpointReference((org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType) ((XmlBeansEndpointReference) epr).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA));
+ XmlObject xmlObject = InteropRequestUtils.sendRequest(addWeatherStationDocument, "http://wsdmdemo.org/service/weather-station-dir/AddWeatherStation", InteropConstants.DIR_SERVICE_ADDRESS);
}
/**
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java Fri Jun 3 12:28:30 2005
@@ -4,40 +4,39 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* QNames of the resource properties defined by WeatherStation WSDL.
* <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherStationPropertyQNames
{
-
- QName TEMPERATURE =
- new QName( "http://wsdmdemo.org/service/weather-station", "Temperature", "tns");
- QName TOPICEXPRESSIONDIALECTS =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
- QName RESOURCEID =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
- QName VISIBILITY =
- new QName( "http://wsdmdemo.org/service/weather-station", "Visibility", "tns");
- QName MANAGEABILITYCAPABILITY =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
- QName HUMIDITY =
- new QName( "http://wsdmdemo.org/service/weather-station", "Humidity", "tns");
- QName PRICE =
- new QName( "http://wsdmdemo.org/service/weather-station", "Price", "tns");
- QName NAME =
- new QName( "http://wsdmdemo.org/service/weather-station", "Name", "tns");
- QName OPERATIONALSTATUS =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
- QName FIXEDTOPICSET =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
- QName CURRENTTIME =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");
- QName OWNER =
- new QName( "http://wsdmdemo.org/service/weather-station", "Owner", "tns");
- QName TOPIC =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
-
+
+ QName TEMPERATURE =
+ new QName("http://wsdmdemo.org/service/weather-station", "Temperature", "tns");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName RESOURCEID =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
+ QName VISIBILITY =
+ new QName("http://wsdmdemo.org/service/weather-station", "Visibility", "tns");
+ QName MANAGEABILITYCAPABILITY =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ QName HUMIDITY =
+ new QName("http://wsdmdemo.org/service/weather-station", "Humidity", "tns");
+ QName PRICE =
+ new QName("http://wsdmdemo.org/service/weather-station", "Price", "tns");
+ QName NAME =
+ new QName("http://wsdmdemo.org/service/weather-station", "Name", "tns");
+ QName OPERATIONALSTATUS =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
+ QName FIXEDTOPICSET =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName CURRENTTIME =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");
+ QName OWNER =
+ new QName("http://wsdmdemo.org/service/weather-station", "Owner", "tns");
+ QName TOPIC =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java Fri Jun 3 12:28:30 2005
@@ -10,9 +10,9 @@
import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
import org.wsdmdemo.service.InteropConstants;
-import org.wsdmdemo.service.weatherStation.callbacks.VisibilityCallback;
-import org.wsdmdemo.service.weatherStation.callbacks.TemperatureCallback;
import org.wsdmdemo.service.weatherStation.callbacks.HumidityCallback;
+import org.wsdmdemo.service.weatherStation.callbacks.TemperatureCallback;
+import org.wsdmdemo.service.weatherStation.callbacks.VisibilityCallback;
import org.wsdmdemo.service.weatherStationDir.WeatherStationDirPropertyQNames;
import java.util.Calendar;
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java Fri Jun 3 12:28:30 2005
@@ -86,7 +86,7 @@
//set status to unavailable
changeOperationalStatus(OperationalStatusDocument.OperationalStatus.UNAVAILABLE);
- //todo spawn thread with timer to reset the op status to avail
+ //todo spawn thread with timer to reset the op status to avail
return responseDocument;
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml Fri Jun 3 12:28:30 2005
@@ -4,31 +4,31 @@
<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
- <service name="WeatherStation">
- <resource name="home" type="org.wsdmdemo.service.weatherStation.WeatherStationHome">
- <resourceParams>
- <parameter>
- <name>serviceClassName</name>
- <value>org.wsdmdemo.service.weatherStation.WeatherStationService</value>
- </parameter>
- <parameter>
- <name>resourceClassName</name>
- <value>org.wsdmdemo.service.weatherStation.WeatherStationResource</value>
- </parameter>
- <parameter>
- <name>wsdlTargetNamespace</name>
- <value>http://wsdmdemo.org/service/weather-station</value>
- </parameter>
-
- <parameter>
- <name>resourceKeyName</name>
- <value>{http://wsdmdemo.org/service/weather-station}ResourceIdentifier</value>
- </parameter>
-
+ <service name="WeatherStation">
+ <resource name="home" type="org.wsdmdemo.service.weatherStation.WeatherStationHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.WeatherStationService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.WeatherStationResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-station</value>
+ </parameter>
- </resourceParams>
- </resource>
- </service>
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://wsdmdemo.org/service/weather-station}ResourceIdentifier</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
</jndiConfig>
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/HumidityCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/HumidityCallback.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/HumidityCallback.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/HumidityCallback.java Fri Jun 3 12:28:30 2005
@@ -19,7 +19,7 @@
public ResourceProperty refreshProperty(ResourceProperty resourceProperty) throws CallbackFailedException
{
Calendar resetAt = Calendar.getInstance();
- HumidityMetricType prop_humidity = (HumidityMetricType) resourceProperty.get(0);
+ HumidityMetricType prop_humidity = (HumidityMetricType) resourceProperty.get(0);
prop_humidity.setDoubleValue(CallbackUtils.getNextRandomValue(m_lastTemp, InteropConstants.MAX_HUMIDITY, InteropConstants.MIN_HUMIDITY));
prop_humidity.setResetAt(resetAt);
return resourceProperty;
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/TemperatureCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/TemperatureCallback.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/TemperatureCallback.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/callbacks/TemperatureCallback.java Fri Jun 3 12:28:30 2005
@@ -19,7 +19,7 @@
public ResourceProperty refreshProperty(ResourceProperty resourceProperty) throws CallbackFailedException
{
Calendar resetAt = Calendar.getInstance();
- TemperatureMetricType prop_temperature = (TemperatureMetricType) resourceProperty.get(0);
+ TemperatureMetricType prop_temperature = (TemperatureMetricType) resourceProperty.get(0);
prop_temperature.setDoubleValue(CallbackUtils.getNextRandomValue(m_lastTemp, InteropConstants.MAX_TEMP, InteropConstants.MIN_TEMP));
prop_temperature.setResetAt(resetAt);
return resourceProperty;
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirService.java Fri Jun 3 12:28:30 2005
@@ -1,6 +1,6 @@
-
package org.wsdmdemo.service.weatherStationDir;
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
import org.apache.ws.resource.AbstractPortType;
import org.apache.ws.resource.ResourceContext;
import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
@@ -10,130 +10,131 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* This class should be generated on every "generation" against the WSDL.
* This will ensure it is always up-to-date with the WSDL.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractWeatherStationDirService extends AbstractPortType
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType {
+ implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType, RelationshipsCapability
+{
- public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station-dir";
- public static final String TARGET_NSPREFIX = "weather-station-dir";
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station-dir";
+ public static final String TARGET_NSPREFIX = "weather-station-dir";
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- public AbstractWeatherStationDirService( ResourceContext resourceContext )
- {
- super(resourceContext);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestQname DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public String getMethodName( QName requestQname )
- {
- if ( !m_isInitialized )
- {
- init( );
- }
-
- return m_methodNameMap.getMethodName( requestQname );
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public final SoapMethodNameMap getMethodNameMap( )
- {
- return m_methodNameMap;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station-dir}RemoveWeatherStation") , "RemoveWeatherStation" );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station-dir}AddWeatherStation") , "AddWeatherStation" );
- m_isInitialized = true;
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- protected final boolean isInitialized( )
- {
- return m_isInitialized;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
- }
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).subscribe( requestDoc );
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
- }
-
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeatherStationDirService(ResourceContext resourceContext)
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestQname DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public String getMethodName(QName requestQname)
+ {
+ if (!m_isInitialized)
+ {
+ init();
+ }
+
+ return m_methodNameMap.getMethodName(requestQname);
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public final SoapMethodNameMap getMethodNameMap()
+ {
+ return m_methodNameMap;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+ m_methodNameMap = new ServiceSoapMethodNameMap(getResourceContext());
+ m_methodNameMap.addMapping(javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station-dir}RemoveWeatherStation"), "RemoveWeatherStation");
+ m_methodNameMap.addMapping(javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station-dir}AddWeatherStation"), "AddWeatherStation");
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized()
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl(getResourceContext()).getMultipleResourceProperties(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc)
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl(getResourceContext()).getResourceProperty(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).subscribe(requestDoc);
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc)
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
+ }
+
+ public org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument queryRelationshipsByType(org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument requestDoc)
+ {
+ return new org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl(getResourceContext()).queryRelationshipsByType(requestDoc);
+ }
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirCustomOperationsPortType.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirCustomOperationsPortType.java Fri Jun 3 12:28:30 2005
@@ -1,18 +1,17 @@
-
package org.wsdmdemo.service.weatherStationDir;
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* Custom operations portType.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherStationDirCustomOperationsPortType
{
-
- public org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument RemoveWeatherStation( org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationDocument requestDoc ) ;
- public org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument AddWeatherStation( org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument requestDoc ) ;
-
+
+ public org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument RemoveWeatherStation(org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationDocument requestDoc);
+
+ public org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument AddWeatherStation(org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument requestDoc);
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java Fri Jun 3 12:28:30 2005
@@ -51,6 +51,7 @@
org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
public WeatherStationDirResource m_resource;
+
/**
* @param resourceContext
* @return A Resource
@@ -64,12 +65,12 @@
ResourceUnknownException
{
- if(m_resource == null)
+ if (m_resource == null)
{
m_resource = new WeatherStationDirResource();
m_resource.setEndpointReference(getEndpointReference(resourceContext.getBaseURL() + "/" + getServiceName().getLocalPart(), null, SPEC_NAMESPACE_SET.getAddressingNamespace()));
m_resource.init();
- add(null,m_resource);
+ add(null, m_resource);
}
return m_resource;
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirPropertyQNames.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirPropertyQNames.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirPropertyQNames.java Fri Jun 3 12:28:30 2005
@@ -4,26 +4,25 @@
/**
* **** WARNING: This file will be overwritten during generation ****
- *
+ * <p/>
* QNames of the resource properties defined by WeatherStationDir WSDL.
* <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface WeatherStationDirPropertyQNames
{
-
- QName MANAGEABILITYCAPABILITY =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
- QName TOPICEXPRESSIONDIALECTS =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
- QName RESOURCEID =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
- QName FIXEDTOPICSET =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
- QName RELATIONSHIP =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-p2-xs");
- QName TOPIC =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
-
+
+ QName MANAGEABILITYCAPABILITY =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName RESOURCEID =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
+ QName FIXEDTOPICSET =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName RELATIONSHIP =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-p2-xs");
+ QName TOPIC =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
}
Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java?rev=179865&r1=179864&r2=179865&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java Fri Jun 3 12:28:30 2005
@@ -167,7 +167,7 @@
GetResourcePropertyResponseDocument response = (GetResourcePropertyResponseDocument) xmlObject;
GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = response.getGetResourcePropertyResponse();
XmlObject[] childElements = XmlBeanUtils.getChildElements(getResourcePropertyResponse);
- String resourceid = ((org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument)childElements[0]).getResourceId();
+ String resourceid = ((org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument) childElements[0]).getResourceId();
return resourceid;
}
else
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org