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/05/24 20:34:59 UTC
svn commit: r178231 [1/3] - in /incubator/muse/trunk: ./
src/site/content/interop/
src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/
src/site/content/interop/src/java/org/apache/ws/resource/example/
src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/
src/site/content/interop/src/java/org/everest/
src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/
src/site/content/interop/src/test/org/apache/ws/muws/interop/client/
Author: scamp
Date: Tue May 24 11:34:57 2005
New Revision: 178231
URL: http://svn.apache.org/viewcvs?rev=178231&view=rev
Log: (empty)
Modified:
incubator/muse/trunk/maven.xml
incubator/muse/trunk/project.xml
incubator/muse/trunk/src/site/content/interop/build.xml
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverService.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverCustomOperationsPortType.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverHome.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverService.java
incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/Ipmiserver_jndi-config.xml
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/InteropConstants.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryCustomOperationsPortType.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryHome.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryPropertyQNames.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/Blackberry_jndi-config.xml
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationCustomOperationsPortType.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationHome.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationPropertyQNames.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationService.java
incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/Weatherstation_jndi-config.xml
incubator/muse/trunk/src/site/content/interop/src/test/org/apache/ws/muws/interop/client/AbstractWsdmInteropTestCase.java
incubator/muse/trunk/src/site/content/interop/src/test/org/apache/ws/muws/interop/client/ResourceStub.java
Modified: incubator/muse/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/maven.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/maven.xml (original)
+++ incubator/muse/trunk/maven.xml Tue May 24 11:34:57 2005
@@ -105,7 +105,7 @@
<postGoal name="war:webapp">
<!-- Delete the Muse 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="*.*, wsdl" /></delete>
<!-- Delete empty WEB-INF/tld/ dir that war plugin created -->
<delete dir="${maven.war.webapp.dir}/WEB-INF/tld" />
@@ -181,8 +181,7 @@
<fileset dir="${site.dest.dir}" />
</copy>
- <property name="tutorial.assembly.dir" location="${docs.assembly.dir}/tutorial" />
- <mkdir dir="${maven.dist.bin.assembly.dir}/usr" />
+ <property name="tutorial.assembly.dir" location="${docs.assembly.dir}/tutorial" />
<copy todir="${maven.dist.bin.assembly.dir}">
<fileset dir="${basedir}">
Modified: incubator/muse/trunk/project.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/project.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/project.xml (original)
+++ incubator/muse/trunk/project.xml Tue May 24 11:34:57 2005
@@ -440,8 +440,7 @@
<artifactId>servletapi</artifactId>
<version>2.3</version>
<url>http://java.sun.com/products/servlet/</url>
- <properties>
- <license>BinaryCodeLicense-ServletApi.txt</license>
+ <properties>
<war.bundle>false</war.bundle>
<usage>Needed to compile our servlet.</usage>
</properties>
Modified: incubator/muse/trunk/src/site/content/interop/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/build.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/build.xml (original)
+++ incubator/muse/trunk/src/site/content/interop/build.xml Tue May 24 11:34:57 2005
@@ -30,7 +30,7 @@
<property name="muse.classpath" refid="muse.classpath.id" />
</target>
-
+ <!--
<target name="generate"
depends="init"
description="generate service classes and XMLBeans types for the Interop WSDLs...Note this has already been done and the classes have been implemented.">
@@ -60,7 +60,7 @@
<delete dir="${tmp.dir}" />
</target>
-
+ -->
<target name="compile"
depends="init"
description="compile all classes below classes directory">
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java Tue May 24 11:34:57 2005
@@ -1,49 +1,56 @@
-
package com.dell.wsdm.demos.interop.x2005.x04;
+import org.apache.ws.addressing.EndpointReference;
+
/**
* An abstract Ipmiserver 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 AbstractIpmiserverResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
-
+public abstract class AbstractIpmiserverResource 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 *
+ */
+ 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.");
}
}
@@ -52,9 +59,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);
}
/**
@@ -69,38 +76,38 @@
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()
{
-
- com.dell.wsdm.demos.interop.x2005.x04.IPMIServerPropertiesDocument propsDoc = com.dell.wsdm.demos.interop.x2005.x04.IPMIServerPropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
-
- // initialize wsrl:Topic property
- // TODO
-
- // initialize wsrl:FixedTopicSet property
- // TODO
-
- // initialize wsrl:TopicExpressionDialects property
- // TODO
-
-
+
+ com.dell.wsdm.demos.interop.x2005.x04.IPMIServerPropertiesDocument propsDoc = com.dell.wsdm.demos.interop.x2005.x04.IPMIServerPropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(propsDoc);
+
+
+ // initialize wsrl:Topic property
+ // TODO
+
+ // initialize wsrl:FixedTopicSet property
+ // TODO
+
+ // initialize wsrl:TopicExpressionDialects property
+ // TODO
+
+
}
/**
* @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;
}
@@ -111,12 +118,36 @@
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();
-
- 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;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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;
+ }
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverService.java Tue May 24 11:34:57 2005
@@ -1,4 +1,3 @@
-
package com.dell.wsdm.demos.interop.x2005.x04;
import org.apache.ws.resource.ResourceContext;
@@ -10,127 +9,123 @@
/**
* 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 AbstractIpmiserverService
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v1_2.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.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
+{
- public static final String TARGET_NSURI = "http://dell.com/wsdm/demos/interop/2005/04";
- public static final String TARGET_NSPREFIX = "04";
+ public static final String TARGET_NSURI = "http://dell.com/wsdm/demos/interop/2005/04";
+ public static final String TARGET_NSPREFIX = "04";
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- /**
- * 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 abstract ResourceContext getResourceContext( );
-
- /**
- * 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://dell.com/wsdm/demos/interop/2005/04}Reset") , "Reset" );
- 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.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.v1_2.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.v1_2.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
- }
-
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ /**
+ * 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 abstract ResourceContext getResourceContext();
+
+ /**
+ * 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://dell.com/wsdm/demos/interop/2005/04}Reset"), "Reset");
+ 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.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/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverCustomOperationsPortType.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverCustomOperationsPortType.java Tue May 24 11:34:57 2005
@@ -1,15 +1,13 @@
-
package com.dell.wsdm.demos.interop.x2005.x04;
/**
* Custom operations portType.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface IpmiserverCustomOperationsPortType
{
-
- public com.dell.wsdm.demos.interop.x2005.x04.ResetResponseDocument Reset( com.dell.wsdm.demos.interop.x2005.x04.ResetDocument requestDoc ) ;
-
+
+ public com.dell.wsdm.demos.interop.x2005.x04.ResetResponseDocument Reset(com.dell.wsdm.demos.interop.x2005.x04.ResetDocument requestDoc);
+
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverHome.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverHome.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverHome.java Tue May 24 11:34:57 2005
@@ -6,9 +6,9 @@
import org.apache.ws.resource.ResourceException;
import org.apache.ws.resource.ResourceKey;
import org.apache.ws.resource.ResourceUnknownException;
-import org.apache.ws.resource.JndiConstants;
import org.apache.ws.resource.impl.AbstractResourceHome;
+import javax.xml.namespace.QName;
import java.io.Serializable;
/**
@@ -19,37 +19,59 @@
implements Serializable
{
- private static final String SERVICE_NAME = "ipmiserver";
+ /**
+ * The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. *
+ */
+ public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://dell.com/wsdm/demos/interop/2005/04}ipmiserver");
+
+ /**
+ * The management PortType associated with this resource. This is useful for building EPR's.*
+ */
+ public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://dell.com/wsdm/demos/interop/2005/04}IPMIServerPortType");
+
+ /**
+ * The WSDL Port name associated with the resource. This is useful for building EPR's. *
+ */
+ public static final String PORT_NAME = "ipmiserver";
- public static final String HOME_LOCATION =
- JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+ /**
+ * The name of the resource key for this resource. *
+ */
+ public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}");
+ /**
+ * 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();
+ /**
+ * A constant for the JNDI Lookup name for this home. *
+ */
+ public static final String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
/**
* TODO
*
* @param resourceContext DOCUMENT_ME
- *
* @return DOCUMENT_ME
- *
* @throws ResourceException DOCUMENT_ME
* @throws ResourceContextException DOCUMENT_ME
* @throws ResourceUnknownException DOCUMENT_ME
*/
- public Resource getInstance( ResourceContext resourceContext )
+ public Resource getInstance(ResourceContext resourceContext)
throws ResourceException,
- ResourceContextException,
- ResourceUnknownException
+ ResourceContextException,
+ ResourceUnknownException
{
ResourceKey key = resourceContext.getResourceKey();
Resource resource = null;
try
{
- resource = find( key );
+ resource = find(key);
}
- catch ( ResourceException re )
+ catch (ResourceException re)
{
- Object id = key.getValue();
+ Object id = key.getValue();
/**
* Determine if the passed-in key is, in fact, something we expect.
*/
@@ -74,4 +96,23 @@
return resource;
}
+ public QName getServiceName()
+ {
+ return SERVICE_NAME;
+ }
+
+ public QName getPortType()
+ {
+ return PORT_TYPE;
+ }
+
+ public String getServicePortName()
+ {
+ return PORT_NAME;
+ }
+
+ public QName getResourceKeyNameQName()
+ {
+ return RESOURCE_KEY_NAME;
+ }
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java Tue May 24 11:34:57 2005
@@ -1,9 +1,8 @@
package com.dell.wsdm.demos.interop.x2005.x04;
+import org.apache.ws.muws.v1_0.capability.ConfigurationCapability;
import org.apache.ws.muws.v1_0.capability.IdentityCapability;
import org.apache.ws.muws.v1_0.capability.OperationalStatusCapability;
-import org.apache.ws.muws.v1_0.capability.ConfigurationCapability;
-import org.apache.ws.resource.properties.ResourceProperty;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CurrentTimeDocument;
@@ -19,11 +18,10 @@
public class IpmiserverResource extends AbstractIpmiserverResource
{
-
/**
* A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
*/
- public static final org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl();
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
/**
* Initializes this resource's state (properties, etc.).
@@ -33,102 +31,141 @@
super.init();
/**
+ * The ResourcePropertySet which contains all the defined ResourceProperties
+ */
+ org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+ org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+
+ try
+ {
+
+ /*===== Capabilities =====*/
+ //Management Characteristics
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.MANAGEABILITYCAPABILITY);
+
+ //muws:Identity Capability
+ ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ //muws:OperationalStatus Capability
+ manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ //muws:Configuration Capability
+ manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ //Server Configuration
+ manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerConfiguration");
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ //Server Chassis Configuration
+ manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerChassisConfiguration");
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ //Server Alert Status
+ manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+ manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerAlertStatus");
+ resourceProperty.add(manageabilityCapabilityDocument);
+
+ /*===== Properties =====*/
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.RESOURCEID);
+ ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
+ resourceIdDocument.setResourceId("urn:" + (String) getID());
+ resourceProperty.add(resourceIdDocument);
+
+ // CurrentTime is done like in Apollo
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CURRENTTIME);
+ CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
+ currentTimeDocument.setCurrentTime(Calendar.getInstance());
+ resourceProperty.add(currentTimeDocument);
+ resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.OPERATIONALSTATUS);
+ OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+ operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+ resourceProperty.add(operationalStatusDocument);
+
+ /*============= Custom props =============*/
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.ATTENTIONLEDON);
+ AttentionLedOnDocument attentionLedOnDoc = AttentionLedOnDocument.Factory.newInstance();
+ attentionLedOnDoc.setAttentionLedOn(false); // NOTE: in an ideal world, we would make an IPMI API call to get the value for this prop
+ resourceProperty.add(attentionLedOnDoc);
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.COVEROPEN);
+ CoverOpenDocument coverOpenDoc = CoverOpenDocument.Factory.newInstance();
+ coverOpenDoc.setCoverOpen(false); // NOTE: in an ideal world, we would make an IPMI API call to get the value for this prop
+ resourceProperty.add(coverOpenDoc);
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.IPNAME);
+ IpNameDocument ipNameDoc = IpNameDocument.Factory.newInstance();
+ ipNameDoc.setIpName("MuwsMama");
+ resourceProperty.add(ipNameDoc);
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.MODELNAME);
+ ModelNameDocument modelNameDoc = ModelNameDocument.Factory.newInstance();
+ modelNameDoc.setModelName("PowerEdge 2850");
+ resourceProperty.add(modelNameDoc);
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.SERIALNUMBER);
+ SerialNumberDocument serialNumberDoc = SerialNumberDocument.Factory.newInstance();
+ serialNumberDoc.setSerialNumber("Z10007986D");
+ resourceProperty.add(serialNumberDoc);
+
+ resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.SYSCONTACT);
+ SysContactDocument sysContactDoc = SysContactDocument.Factory.newInstance();
+ sysContactDoc.setSysContact("Eric Cartman");
+ resourceProperty.add(sysContactDoc);
+
+ }
+ catch (Exception e)
+ {
+ throw new javax.xml.rpc.JAXRPCException("There was a problem in initializing your resource properties. Please check your init() method. Cause: " + e.getLocalizedMessage());
+ }
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic is implemented by the framework.
+ // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects is implemented by the framework.
+
+
+
+ /**
* This method call will make all resource properties be exposed
* as Topics. If you would like to change that behaviour you can
* call TopicUtils.addResourcePropertyValueChangeTopic for each
* Topic you'd like to expose property change notifications for.
*/
- org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics(
- getResourcePropertySet(), getTopicSpaceSet() );
-
- org.apache.ws.resource.properties.ResourcePropertySet propSet = getResourcePropertySet();
-
- /*===== Capabilities =====*/
- //Management Characteristics
- ResourceProperty prop = propSet.get( IpmiserverPropertyQNames.MANAGEABILITYCAPABILITY );
-
- //muws:Identity Capability
- ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability( IdentityCapability.URI );
- prop.add( manageabilityCapabilityDocument );
-
- //muws:OperationalStatus Capability
- manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability( OperationalStatusCapability.URI );
- prop.add( manageabilityCapabilityDocument );
-
- //muws:Configuration Capability
- manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability( ConfigurationCapability.URI );
- prop.add( manageabilityCapabilityDocument );
-
- //Server Configuration
- manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability(
- IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerConfiguration" );
- prop.add( manageabilityCapabilityDocument );
-
- //Server Chassis Configuration
- manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability(
- IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerChassisConfiguration" );
- prop.add( manageabilityCapabilityDocument );
-
- //Server Alert Status
- manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
- manageabilityCapabilityDocument.setManageabilityCapability(
- IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerAlertStatus" );
- prop.add( manageabilityCapabilityDocument );
-
- /*===== Properties =====*/
- prop = propSet.get( IpmiserverPropertyQNames.RESOURCEID );
- ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
- resourceIdDocument.setResourceId( "urn:" + (String) getID() );
- prop.add( resourceIdDocument );
-
- // CurrentTime is done like in Apollo
- prop = propSet.get( IpmiserverPropertyQNames.CURRENTTIME );
- CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
- currentTimeDocument.setCurrentTime( Calendar.getInstance() );
- prop.add( currentTimeDocument );
- prop.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback() );
-
- prop = propSet.get( IpmiserverPropertyQNames.OPERATIONALSTATUS );
- OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
- operationalStatusDocument.setOperationalStatus( OperationalStatusDocument.OperationalStatus.AVAILABLE );
- prop.add( operationalStatusDocument );
-
- /*============= Custom props =============*/
- prop = propSet.get( IpmiserverPropertyQNames.ATTENTIONLEDON );
- AttentionLedOnDocument attentionLedOnDoc = AttentionLedOnDocument.Factory.newInstance();
- attentionLedOnDoc.setAttentionLedOn( false ); // NOTE: in an ideal world, we would make an IPMI API call to get the value for this prop
- prop.add( attentionLedOnDoc );
-
- prop = propSet.get( IpmiserverPropertyQNames.COVEROPEN );
- CoverOpenDocument coverOpenDoc = CoverOpenDocument.Factory.newInstance();
- coverOpenDoc.setCoverOpen( false ); // NOTE: in an ideal world, we would make an IPMI API call to get the value for this prop
- prop.add( coverOpenDoc );
-
- prop = propSet.get( IpmiserverPropertyQNames.IPNAME );
- IpNameDocument ipNameDoc = IpNameDocument.Factory.newInstance();
- ipNameDoc.setIpName( "MuwsMama" );
- prop.add( ipNameDoc );
-
- prop = propSet.get( IpmiserverPropertyQNames.MODELNAME );
- ModelNameDocument modelNameDoc = ModelNameDocument.Factory.newInstance();
- modelNameDoc.setModelName( "PowerEdge 2850");
- prop.add( modelNameDoc );
-
- prop = propSet.get( IpmiserverPropertyQNames.SERIALNUMBER );
- SerialNumberDocument serialNumberDoc = SerialNumberDocument.Factory.newInstance();
- serialNumberDoc.setSerialNumber( "Z10007986D" );
- prop.add( serialNumberDoc );
-
- prop = propSet.get( IpmiserverPropertyQNames.SYSCONTACT );
- SysContactDocument sysContactDoc = SysContactDocument.Factory.newInstance();
- sysContactDoc.setSysContact( "Eric Cartman" );
- prop.add( sysContactDoc );
+ try
+ {
+ org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics(getResourcePropertySet(), getTopicSpaceSet());
+ }
+ catch (Exception e)
+ {
+ throw new javax.xml.rpc.JAXRPCException("Unable to init the ResourceProperty Changed topics. Cause: " + e.getLocalizedMessage(), e);
+ }
+ /**
+ * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+ *
+ * </br>
+ * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
+ * </br>
+ * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+ * </br>
+ * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
+ * Concrete dialect.
+ * </br>
+ *
+ * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+ *
+ * @param topicSpaceSet
+ * @param propSet
+ */
+ org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet(), getResourcePropertySet());
}
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverService.java Tue May 24 11:34:57 2005
@@ -7,45 +7,44 @@
* 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 IpmiserverService
- extends AbstractIpmiserverService
- implements IpmiserverCustomOperationsPortType
+ extends AbstractIpmiserverService
+ implements IpmiserverCustomOperationsPortType
{
- private ResourceContext m_resourceContext;
+ private ResourceContext m_resourceContext;
+
+ /**
+ * Creates a new {@link IpmiserverService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public IpmiserverService(ResourceContext resourceContext)
+ {
+ m_resourceContext = resourceContext;
+ init();
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public ResourceContext getResourceContext()
+ {
+ return m_resourceContext;
+ }
+
+
+ public com.dell.wsdm.demos.interop.x2005.x04.ResetResponseDocument Reset(com.dell.wsdm.demos.interop.x2005.x04.ResetDocument requestDoc)
+ {
+ //todo implement
+ return null;
+ }
+
- /**
- * Creates a new {@link IpmiserverService } object.
- *
- * @param resourceContext DOCUMENT_ME
- */
- public IpmiserverService( ResourceContext resourceContext )
- {
- m_resourceContext = resourceContext;
- init();
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public ResourceContext getResourceContext( )
- {
- return m_resourceContext;
- }
-
-
- public com.dell.wsdm.demos.interop.x2005.x04.ResetResponseDocument Reset( com.dell.wsdm.demos.interop.x2005.x04.ResetDocument requestDoc )
- {
- //todo implement
- return null;
- }
-
-
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/Ipmiserver_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/Ipmiserver_jndi-config.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/Ipmiserver_jndi-config.xml (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/Ipmiserver_jndi-config.xml Tue May 24 11:34:57 2005
@@ -2,31 +2,31 @@
<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
- <service name="ipmiserver">
- <resource name="home" type="com.dell.wsdm.demos.interop.x2005.x04.IpmiserverHome">
- <resourceParams>
- <parameter>
- <name>serviceClassName</name>
- <value>com.dell.wsdm.demos.interop.x2005.x04.IpmiserverService</value>
- </parameter>
- <parameter>
- <name>resourceClassName</name>
- <value>com.dell.wsdm.demos.interop.x2005.x04.IpmiserverResource</value>
- </parameter>
- <parameter>
- <name>wsdlTargetNamespace</name>
- <value>http://dell.com/wsdm/demos/interop/2005/04</value>
- </parameter>
-
- <parameter>
- <name>resourceKeyName</name>
- <value>{http://dell.com/wsdm/demos/interop/2005/04}ResourceID</value>
- </parameter>
-
+ <service name="ipmiserver">
+ <resource name="home" type="com.dell.wsdm.demos.interop.x2005.x04.IpmiserverHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>com.dell.wsdm.demos.interop.x2005.x04.IpmiserverService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>com.dell.wsdm.demos.interop.x2005.x04.IpmiserverResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://dell.com/wsdm/demos/interop/2005/04</value>
+ </parameter>
- </resourceParams>
- </resource>
- </service>
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://dell.com/wsdm/demos/interop/2005/04}ResourceID</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
</jndiConfig>
Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/InteropConstants.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/InteropConstants.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/InteropConstants.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/InteropConstants.java Tue May 24 11:34:57 2005
@@ -13,7 +13,7 @@
static
{
- initIp();
+ initIp();
}
public static final String WEATHERSTATION_SERVICE_NAME = "weatherstation";
@@ -38,5 +38,5 @@
}
}
}
-
+
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java Tue May 24 11:34:57 2005
@@ -1,49 +1,56 @@
-
package org.apache.ws.resource.example.blackberry;
+import org.apache.ws.addressing.EndpointReference;
+
/**
* An abstract Blackberry 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 AbstractBlackberryResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
-
+public abstract class AbstractBlackberryResource 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 *
+ */
+ 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.");
}
}
@@ -52,9 +59,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);
}
/**
@@ -69,38 +76,38 @@
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.apache.ws.resource.example.blackberry.BlackberryPropertiesDocument propsDoc = org.apache.ws.resource.example.blackberry.BlackberryPropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
-
- // initialize wsrl:Topic property
- // TODO
-
- // initialize wsrl:FixedTopicSet property
- // TODO
-
- // initialize wsrl:TopicExpressionDialects property
- // TODO
-
-
+
+ org.apache.ws.resource.example.blackberry.BlackberryPropertiesDocument propsDoc = org.apache.ws.resource.example.blackberry.BlackberryPropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(propsDoc);
+
+
+ // initialize wsrl:Topic property
+ // TODO
+
+ // initialize wsrl:FixedTopicSet property
+ // TODO
+
+ // initialize wsrl:TopicExpressionDialects property
+ // TODO
+
+
}
/**
* @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;
}
@@ -111,12 +118,36 @@
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();
-
- 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;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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;
+ }
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryService.java Tue May 24 11:34:57 2005
@@ -1,4 +1,3 @@
-
package org.apache.ws.resource.example.blackberry;
import org.apache.ws.resource.ResourceContext;
@@ -10,126 +9,122 @@
/**
* 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 AbstractBlackberryService
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v1_2.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.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
+{
- public static final String TARGET_NSURI = "http://ws.apache.org/resource/example/blackberry";
- public static final String TARGET_NSPREFIX = "blackberry";
+ public static final String TARGET_NSURI = "http://ws.apache.org/resource/example/blackberry";
+ public static final String TARGET_NSPREFIX = "blackberry";
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- /**
- * 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 abstract ResourceContext getResourceContext( );
-
- /**
- * 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.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.v1_2.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.v1_2.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
- }
-
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ /**
+ * 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 abstract ResourceContext getResourceContext();
+
+ /**
+ * 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.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/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryCustomOperationsPortType.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryCustomOperationsPortType.java Tue May 24 11:34:57 2005
@@ -1,14 +1,12 @@
-
package org.apache.ws.resource.example.blackberry;
/**
* Custom operations portType.
- *
+ * <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface BlackberryCustomOperationsPortType
{
-
-
+
+
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryHome.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryHome.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryHome.java Tue May 24 11:34:57 2005
@@ -6,9 +6,9 @@
import org.apache.ws.resource.ResourceException;
import org.apache.ws.resource.ResourceKey;
import org.apache.ws.resource.ResourceUnknownException;
-import org.apache.ws.resource.JndiConstants;
import org.apache.ws.resource.impl.AbstractResourceHome;
+import javax.xml.namespace.QName;
import java.io.Serializable;
/**
@@ -18,34 +18,57 @@
extends AbstractResourceHome
implements Serializable
{
- private static final String SERVICE_NAME = "blackberry";
+ /**
+ * The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. *
+ */
+ public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/resource/example/blackberry}blackberry");
+
+ /**
+ * The management PortType associated with this resource. This is useful for building EPR's.*
+ */
+ public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/resource/example/blackberry}BlackberryPortType");
+
+ /**
+ * The WSDL Port name associated with the resource. This is useful for building EPR's. *
+ */
+ public static final String PORT_NAME = "blackberry";
+
+ /**
+ * The name of the resource key for this resource. *
+ */
+ public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}");
- public static final String HOME_LOCATION =
- JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+ /**
+ * 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();
+ /**
+ * A constant for the JNDI Lookup name for this home. *
+ */
+ public static final String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
/**
* TODO
*
* @param resourceContext DOCUMENT_ME
- *
* @return DOCUMENT_ME
- *
* @throws ResourceException DOCUMENT_ME
* @throws ResourceContextException DOCUMENT_ME
* @throws ResourceUnknownException DOCUMENT_ME
*/
- public Resource getInstance( ResourceContext resourceContext )
+ public Resource getInstance(ResourceContext resourceContext)
throws ResourceException,
- ResourceContextException,
- ResourceUnknownException
+ ResourceContextException,
+ ResourceUnknownException
{
ResourceKey key = resourceContext.getResourceKey();
Resource resource = null;
try
{
- resource = find( key );
+ resource = find(key);
}
- catch ( ResourceException re )
+ catch (ResourceException re)
{
Object id = key.getValue();
/**
@@ -72,4 +95,23 @@
return resource;
}
+ public QName getServiceName()
+ {
+ return SERVICE_NAME;
+ }
+
+ public QName getPortType()
+ {
+ return PORT_TYPE;
+ }
+
+ public String getServicePortName()
+ {
+ return PORT_NAME;
+ }
+
+ public QName getResourceKeyNameQName()
+ {
+ return RESOURCE_KEY_NAME;
+ }
}
Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryPropertyQNames.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryPropertyQNames.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryPropertyQNames.java Tue May 24 11:34:57 2005
@@ -6,34 +6,33 @@
* QNames of the resource properties defined by Blackberry WSDL.
* <p/>
* NOTE: This class is generated and is NOT meant to be modified.
- *
*/
public interface BlackberryPropertyQNames
{
-QName MANAGEABILITYCAPABILITY =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-xs1");
- QName TIME =
- new QName( "http://pda.rim", "time", "bbry");
- QName TOPICEXPRESSIONDIALECTS =
- new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
- QName TOTALCODEMODULESIZE =
- new QName( "http://pda.rim", "TotalCodeModuleSize", "bbry");
- QName ALLOCATEDSTORAGE =
- new QName( "http://pda.rim", "AllocatedStorage", "bbry");
- QName RESOURCEID =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-xs1");
- 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-xs2");
- QName CURRENTTIME =
- new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-xs2");
- QName FREESTORAGE =
- new QName( "http://pda.rim", "FreeStorage", "bbry");
- QName DATE =
- new QName( "http://pda.rim", "date", "bbry");
- 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-xs1");
+ QName TIME =
+ new QName("http://pda.rim", "time", "bbry");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName TOTALCODEMODULESIZE =
+ new QName("http://pda.rim", "TotalCodeModuleSize", "bbry");
+ QName ALLOCATEDSTORAGE =
+ new QName("http://pda.rim", "AllocatedStorage", "bbry");
+ QName RESOURCEID =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-xs1");
+ 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-xs2");
+ QName CURRENTTIME =
+ new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-xs2");
+ QName FREESTORAGE =
+ new QName("http://pda.rim", "FreeStorage", "bbry");
+ QName DATE =
+ new QName("http://pda.rim", "date", "bbry");
+ QName TOPIC =
+ new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org